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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.47ms] Passed 4 tests
Server-side resources used by Comment Expirator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.59 ▼2.10 |
Dashboard /wp-admin | 3.33 ▲0.02 | 54.61 ▲0.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.25 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.28 ▲4.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.00 ▲4.85 |
Comment Expirator /wp-admin/options-general.php?page=comment-expirator | 3.19 | 29.34 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment Expirator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.94 ▲0.22 | 42.15 ▼3.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▼0.02 | 92.04 ▼8.70 | 46.84 ▲2.98 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.00 | 39.51 ▲3.17 | 34.92 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.09 ▼0.01 | 628.97 ▼51.54 | 65.31 ▲11.36 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.02 | 102.17 ▼11.04 | 43.46 ▼4.52 |
Comment Expirator /wp-admin/options-general.php?page=comment-expirator | 840 | 2.00 | 25.80 | 30.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=comment-expirator
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=comment-expirator
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=comment-expirator
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(COMMENT_EXPIRATOR_PLUGIN_PATH/classes/settings.php): failed to open stream: No such file or directory in wp-content/plugins/comment-expirator/classes/comment.php on line 14
- > PHP Warning
Use of undefined constant COMMENT_EXPIRATOR_PLUGIN_PATH - assumed 'COMMENT_EXPIRATOR_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/comment-expirator/classes/comment.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'COMMENT_EXPIRATOR_PLUGIN_PATH/classes/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/comment-expirator/classes/comment.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: schedule, posts, scheduling, comments, expire...
comment-expirator/comment-expirator.php Passed 13 tests
The main file in "Comment Expirator" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
The plugin lets you set a specific closing date and time for comments on any post type.
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
No dangerous file extensions were detected1,531 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 219 | 195 | 1,143 |
PHP | 4 | 237 | 203 | 344 |
CSS | 2 | 14 | 15 | 44 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 5 | 18.52% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin