Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.34ms] Passed 4 tests
Server-side resources used by Blackhole for Bad Bots
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 39.53 ▼2.72 |
Dashboard /wp-admin | 3.73 ▲0.43 | 50.76 ▲4.02 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 48.05 ▼1.92 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 89.59 ▼0.66 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 36.18 ▼0.07 |
Bad Bots /wp-admin/admin.php?page=blackhole_badbots | 3.61 | 33.46 |
Settings /wp-admin/admin.php?page=blackhole_settings | 3.63 | 35.18 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Blackhole for Bad Bots
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.35 ▼0.02 | 1.82 ▼0.15 | 44.17 ▼4.29 |
Dashboard /wp-admin | 2,222 ▲42 | 5.65 ▼0.01 | 96.54 ▼4.78 | 44.15 ▲0.70 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.02 | 34.62 ▼2.67 | 36.35 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.23 ▲0.27 | 624.07 ▼74.17 | 58.63 ▼1.92 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.23 ▲0.03 | 94.79 ▼23.79 | 43.44 ▼5.66 |
Bad Bots /wp-admin/admin.php?page=blackhole_badbots | 1,057 | 2.11 | 34.45 | 44.46 |
Settings /wp-admin/admin.php?page=blackhole_settings | 1,519 | 2.17 | 35.58 | 44.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt 94% 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:
- Tags: There are too many tags (18 tag instead of maximum 10)
blackhole-bad-bots/blackhole.php 92% from 13 tests
"Blackhole for Bad Bots" version 3.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blackhole-bad-bots.php" instead of "blackhole.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,232 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 886 | 53 | 1,461 |
PO File | 1 | 212 | 220 | 665 |
CSS | 1 | 12 | 1 | 59 |
JavaScript | 1 | 5 | 1 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 74 | |
▷ Named functions | 74 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bbb-icon-88.png | 3.30KB | 1.47KB | ▼ 55.36% |