Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼11.62ms] Passed 4 tests
Server-side resources used by BotScout Comment Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.56 ▼0.37 |
Dashboard /wp-admin | 3.38 ▲0.04 | 46.57 ▼18.54 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.04 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.20 ▼24.46 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.29 ▼2.96 |
BotScout Comment Protection /wp-admin/options-general.php?page=botscout-comment-protection | 3.27 | 33.76 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
bscp |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by BotScout Comment Protection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.73 ▲0.37 | 1.81 ▲0.11 | 45.62 ▲1.74 |
Dashboard /wp-admin | 2,202 ▲25 | 5.69 ▲0.04 | 85.92 ▼2.12 | 38.84 ▼10.01 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.03 | 34.34 ▼3.98 | 29.73 ▼6.77 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.25 ▲5.06 | 658.36 ▲23.85 | 55.20 ▲1.99 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.00 | 100.44 ▼6.25 | 42.53 ▼7.59 |
BotScout Comment Protection /wp-admin/options-general.php?page=botscout-comment-protection | 883 | 2.21 | 26.01 | 40.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/botscout-comment-protection/botscout-comment-protection.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: comment, antispam, botscout
botscout-comment-protection/botscout-comment-protection.php Passed 13 tests
The primary PHP file in "BotScout Comment Protection" version 0.0.6 is used by WordPress to initiate all plugin functionality
80 characters long description:
Pass comments through the BotScout API and flag spam comments where appropriate.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin303 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 16 | 58 | 298 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prot.png | 3.52KB | 2.93KB | ▼ 16.76% |
images/settings.png | 2.11KB | 2.31KB | 0.00% |
images/support.png | 5.03KB | 2.79KB | ▼ 44.54% |