Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.23ms] Passed 4 tests
Server-side resources used by Always Allow Admin Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.59 ▼3.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.57 ▼5.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 53.29 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 96.70 ▼14.36 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.49 ▼1.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Always Allow Admin Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.72 ▼0.53 | 44.06 ▼1.04 |
Dashboard /wp-admin | 2,195 ▲18 | 5.49 ▼0.13 | 84.77 ▼5.64 | 39.74 ▲2.37 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.00 | 40.19 ▲2.85 | 35.76 ▲0.04 |
Add New Post /wp-admin/post-new.php | 6,224 ▲4,698 | 25.93 ▲2.90 | 929.30 ▲229.29 | 52.99 ▲4.92 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.10 | 100.57 ▼17.25 | 43.62 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/always-allow-admin-comments/tests/phpunit/bootstrap.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/always-allow-admin-comments/tests/phpunit/bootstrap.php on line 29
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/always-allow-admin-comments/tests/phpunit/bootstrap.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: comment, page, comments_open, comments, commenting...
always-allow-admin-comments/always-allow-admin-comments.php Passed 13 tests
The entry point to "Always Allow Admin Comments" version 1.3.2 is a PHP file that has certain tags in its header comment area
118 characters long description:
Allow an admin user (when logged in) to always be able to comment on a post, even if comments are closed for the post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected577 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 139 | 242 | 377 |
Markdown | 4 | 53 | 0 | 165 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.98% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin