Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.46ms] Passed 4 tests
An overview of server-side resources used by WP Spam Comments from BlashO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.95 ▼0.82 |
Dashboard /wp-admin | 3.35 ▼0.00 | 48.54 ▼21.44 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.45 ▼7.62 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 105.78 ▲11.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.40 ▲0.05 |
Spam Comments /wp-admin/options-general.php?page=wpspamcomments_option | 3.21 | 29.98 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
wpspamcommscheduled_val |
wpspamcommhours_val |
can_compress_scripts |
wpspamcommtotal_val |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Spam Comments from BlashO
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.24 ▼1.14 | 1.81 ▼0.15 | 45.47 ▲3.27 |
Dashboard /wp-admin | 2,216 ▲25 | 5.81 ▲0.87 | 101.54 ▼19.85 | 30.75 ▼10.84 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.01 ▼0.02 | 40.12 ▼2.32 | 32.20 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 17.74 ▼5.44 | 649.49 ▲55.98 | 54.04 ▲5.96 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.01 | 95.71 ▼0.68 | 42.66 ▲0.31 |
Spam Comments /wp-admin/options-general.php?page=wpspamcomments_option | 894 | 2.05 | 24.99 | 32.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- wpspamcommtotal_val
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- wpspamcommscheduled_val
- widget_theysaidso_widget
- wpspamcommhours_val
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wpspamcomments_option
- > Notice in wp-content/plugins/wp-spam-comments/wpspamcomments.php+129
Undefined index: _wpnonce
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spam-comments/wpspamcomments.php:11
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Different modes of spam comments removal) image missing
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
wp-spam-comments/wpspamcomments.php 92% from 13 tests
The main file in "WP Spam Comments from BlashO" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-spam-comments.php" instead of "wpspamcomments.php")
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
Success! There were no dangerous files found in this plugin224 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 34 | 224 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.49KB | 11.86KB | ▼ 39.14% |