Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.92ms] Passed 4 tests
Server-side resources used by Auto-Close Comments, Pingbacks and Trackbacks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.05 ▼4.78 |
Dashboard /wp-admin | 3.49 ▲0.18 | 49.33 ▼3.00 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.43 ▼2.22 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.53 ▼5.69 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.70 ▲7.45 |
AutoClose Tools /wp-admin/tools.php?page=acc_tools_page | 3.37 | 32.85 |
AutoClose /wp-admin/options-general.php?page=acc_options_page | 3.36 | 40.46 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
acc_settings |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto-Close Comments, Pingbacks and Trackbacks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.74 ▲0.16 | 1.90 ▼0.23 | 38.88 ▼2.44 |
Dashboard /wp-admin | 2,208 ▲31 | 5.58 ▼0.02 | 90.20 ▼1.69 | 46.82 ▲7.51 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.98 ▼0.05 | 39.55 ▼1.52 | 36.77 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.64 ▲0.71 | 649.34 ▼20.76 | 56.62 ▲0.13 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.19 ▼0.01 | 95.81 ▼8.81 | 45.06 ▼0.87 |
AutoClose Tools /wp-admin/tools.php?page=acc_tools_page | 1,090 | 2.17 | 27.65 | 26.43 |
AutoClose /wp-admin/options-general.php?page=acc_options_page | 1,695 | 5.12 | 113.18 | 81.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/autoclose/autoclose.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autoclose/includes/admin/sidebar.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autoclose/includes/main.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: revisions, autoclose, pingback, spam, anti-spam...
autoclose/autoclose.php Passed 13 tests
"Auto-Close Comments, Pingbacks and Trackbacks" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Automatically close Comments, Pingbacks and Trackbacks. Manage and delete revisions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,545 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 612 | 1,297 | 1,897 |
PO File | 1 | 112 | 126 | 311 |
JavaScript | 8 | 60 | 18 | 273 |
Markdown | 1 | 31 | 0 | 40 |
XML | 1 | 8 | 6 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 6 | 7.69% |
▷ Public methods | 77 | 98.72% |
▷ Protected methods | 1 | 1.28% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/fb.png | 1.51KB | 1.59KB | 0.00% |