Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.49ms] Passed 4 tests
Analyzing server-side resources used by Another Comments Cleaner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 46.18 ▲5.94 |
Dashboard /wp-admin | 3.32 ▲0.01 | 54.44 ▲1.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.02 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 103.33 ▼6.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.23 ▼2.18 |
All Comments /wp-admin/edit-comments.php | 3.26 | 42.79 |
Cleaner /wp-admin/edit-comments.php?page=ancc | 3.28 | 37.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Another Comments Cleaner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.34 ▲0.11 | 1.82 ▼0.09 | 43.72 ▼0.49 |
Dashboard /wp-admin | 2,212 ▲38 | 5.62 ▲0.02 | 91.22 ▲3.98 | 38.85 ▼7.86 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.95 ▼0.00 | 34.41 ▼10.65 | 34.09 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.14 ▼0.02 | 590.20 ▼38.47 | 48.96 ▼12.10 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.18 ▲0.03 | 99.54 ▼9.85 | 42.36 ▼6.39 |
All Comments /wp-admin/edit-comments.php | 1,825 | 2.26 | 38.71 | 38.44 |
Cleaner /wp-admin/edit-comments.php?page=ancc | 1,102 | 1.70 | 33.45 | 31.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended 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 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=ancc
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/another-comments-cleaner/comments-cleaner.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: clean database, spam delete, comments, spam, comments delete
another-comments-cleaner/comments-cleaner.php 92% from 13 tests
The main file in "Another Comments Cleaner" v. 0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("another-comments-cleaner.php" instead of "comments-cleaner.php")
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 detected606 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 67 | 431 |
JavaScript | 1 | 11 | 18 | 163 |
Markdown | 1 | 7 | 0 | 9 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 78.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 5.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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
No PNG files were detected