Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.06ms] Passed 4 tests
A check of server-side resources used by Batch Comment Spam Deletion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.87 ▲2.02 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.07 ▼4.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.15 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.94 ▲13.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.33 ▲0.04 |
Empty Spam /wp-admin/edit-comments.php?page=pw-bcpd-process | 3.20 | 29.42 |
All Comments /wp-admin/edit-comments.php | 3.25 | 36.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Batch Comment Spam Deletion: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.25 ▼0.10 | 1.81 ▲0.27 | 45.77 ▲2.57 |
Dashboard /wp-admin | 2,205 ▲24 | 5.55 ▼0.18 | 84.69 ▼16.60 | 38.32 ▼4.70 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.98 ▼0.02 | 34.76 ▼2.83 | 33.53 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 18.49 ▼4.74 | 612.64 ▼73.80 | 67.47 ▲8.32 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.18 ▼0.05 | 96.60 ▼4.63 | 41.28 ▼1.89 |
Empty Spam /wp-admin/edit-comments.php?page=pw-bcpd-process | 2,480 | 3.02 | 38.05 | 50.12 |
All Comments /wp-admin/edit-comments.php | 1,820 | 2.27 | 35.93 | 34.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: comments, comment, spam
batch-comment-spam-deletion/batch-comment-spam-deletion.php 92% from 13 tests
The main PHP script in "Batch Comment Spam Deletion" version 1.0.6 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected117 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 72 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin