Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼39.77ms] Passed 4 tests
Analyzing server-side resources used by WP Comments Remover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.46 ▲3.29 |
Dashboard /wp-admin | 2.99 ▼0.31 | 22.85 ▼26.64 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 24.19 ▼41.62 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 22.63 ▼79.97 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 25.23 ▼10.86 |
WP Comments Remover /wp-admin/edit-comments.php?page=darklich_wp_comments_remover | 3.00 | 22.46 |
All Comments /wp-admin/edit-comments.php | 2.99 | 23.16 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Comments Remover
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 13.23 ▼0.91 | 2.52 ▲0.88 | 53.66 ▲12.82 |
Dashboard /wp-admin | 2,241 ▲41 | 5.86 ▼0.04 | 101.41 ▼2.29 | 42.53 ▼0.36 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.01 ▼0.03 | 40.20 ▼4.03 | 36.53 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 23.06 ▲4.62 | 679.24 ▲56.76 | 59.64 ▲7.28 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.26 ▲0.00 | 97.29 ▼1.69 | 41.22 ▼3.21 |
WP Comments Remover /wp-admin/edit-comments.php?page=darklich_wp_comments_remover | 964 | 2.02 | 23.64 | 25.27 |
All Comments /wp-admin/edit-comments.php | 1,824 | 2.29 | 34.65 | 34.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
- > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+94
Undefined index: btnTest
- > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
- > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+104
Undefined index: btnRemove
- > GET request to /wp-admin/edit-comments.php?page=darklich_wp_comments_remover
- > Notice in wp-content/plugins/wp-comments-remover/wp-comments-remover.php+114
Undefined index: btnRemoveAll
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-comments-remover/wp-comments-remover.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: delete comments by keyword, delete comments, remove comments, mass remove comments, mass delete comments
wp-comments-remover/wp-comments-remover.php Passed 13 tests
The main file in "WP Comments Remover" v. 1.0.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
A small plug-in to remove pending comments using a search keyword.
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
There were no executable files found in this plugin198 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 39 | 139 |
CSS | 1 | 3 | 1 | 59 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin