Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.63ms] Passed 4 tests
Server-side resources used by Delete Old Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.24 ▼1.10 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.96 ▲0.37 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.73 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 79.58 ▼9.61 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.50 ▲2.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Delete Old Comments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.06 | 1.68 ▲0.01 | 43.86 ▼1.45 |
Dashboard /wp-admin | 2,198 ▲18 | 5.52 ▼0.11 | 83.95 ▼6.70 | 37.54 ▼6.72 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.04 | 32.67 ▼2.06 | 35.64 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.30 ▼0.15 | 663.54 ▼27.35 | 49.89 ▼14.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.31 ▲0.08 | 109.96 ▲7.62 | 48.29 ▲4.32 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
Everything seems fine on the user side
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
4 plugin tags: gdpr, cleanup, comments, maintanance
delete-old-comments/delete-old-comments.php Passed 13 tests
The principal PHP file in "Delete Old Comments" v. 1.0.0 is loaded by WordPress automatically on each request
125 characters long description:
Delete from database old comments automatically. The plugin will add options to the discussion settings page to control this.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin672 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 168 | 294 | 664 |
Markdown | 1 | 6 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 36 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin