Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.18MB] [CPU: ▲12.52ms] Passed 4 tests
A check of server-side resources used by Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.81 | 46.62 ▲8.36 |
Dashboard /wp-admin | 4.66 ▲1.31 | 67.17 ▲7.97 |
Posts /wp-admin/edit.php | 4.72 ▲1.35 | 78.27 ▲34.02 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.31 | 104.34 ▲3.75 |
Media Library /wp-admin/upload.php | 4.54 ▲1.31 | 65.54 ▲29.98 |
Visits Chart /wp-admin/admin.php?page=stopbadbots_my-custom-submenu-page-stats | 4.60 | 63.13 |
More Tools Same Author /wp-admin/admin.php?page=stopbadbots_new_more_plugins | 4.52 | 54.25 |
Go Pro /wp-admin/admin.php?page=sbb_my-custom-submenu-page9 | 4.52 | 56.44 |
Visits Log /wp-admin/admin.php?page=stopbadbots_my-custom-submenu-page | 4.53 | 63.75 |
Settings /wp-admin/admin.php?page=settings-stop-bad-bots | 4.52 | 55.18 |
Bad Bots Table /wp-admin/admin.php?page=sbb_my-custom-submenu-page | 4.53 | 56.58 |
Bad Referer Table /wp-admin/admin.php?page=sbb_my-custom-submenu-page3 | 4.53 | 56.28 |
Server storage [IO: ▲5.17MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 369 new files
Database: 7 new tables, 21 new options
New tables |
---|
wp_sbb_visitorslog |
wp_sbb_stats |
wp_sbb_http_tools |
wp_sbb_badips |
wp_sbb_blacklist |
wp_sbb_badref |
wp_sbb_fingerprint |
New WordPress options |
---|
sbb_was_activated |
can_compress_scripts |
stopbadbots_tables_empty |
stopbadbots_http_tools |
stopbadbots_last_checked |
stopbadbots_last_checked2 |
bill_go_pro_hide |
stopbadbots_block_false_google |
theysaidso_admin_options |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲271 | 15.42 ▲1.08 | 7.86 ▲6.36 | 36.81 ▼3.07 |
Dashboard /wp-admin | 2,318 ▲137 | 6.17 ▲0.47 | 110.49 ▼1.72 | 92.06 ▲46.01 |
Posts /wp-admin/edit.php | 2,236 ▲133 | 3.07 ▲1.13 | 47.33 ▲5.55 | 58.89 ▲22.75 |
Add New Post /wp-admin/post-new.php | 1,799 ▲273 | 23.95 ▲0.72 | 623.32 ▼10.30 | 32.92 ▼14.90 |
Media Library /wp-admin/upload.php | 1,531 ▲134 | 5.31 ▲1.12 | 110.77 ▲11.70 | 82.80 ▲37.61 |
Add Bad Referer to Table /wp-admin/admin.php?page=Add New Bad Referer | 941 | 2.56 | 37.56 | 32.10 |
Visits Chart /wp-admin/admin.php?page=stopbadbots_my-custom-submenu-page-stats | 1,441 | 3.39 | 93.43 | 69.08 |
More Tools Same Author /wp-admin/admin.php?page=stopbadbots_new_more_plugins | 1,116 | 3.06 | 58.37 | 33.43 |
Go Pro /wp-admin/admin.php?page=sbb_my-custom-submenu-page9 | 2,126 | 6.05 | 132.14 | 75.89 |
Visits Log /wp-admin/admin.php?page=stopbadbots_my-custom-submenu-page | 1,560 | 3.41 | 68.61 | 63.15 |
Add Bad Bot to Table /wp-admin/admin.php?page=Add New Bad Bot | 967 | 2.67 | 45.25 | 30.04 |
Add Bad IP to Table /wp-admin/admin.php?page=Add New Bad IP | 988 | 2.62 | 44.97 | 30.78 |
Settings /wp-admin/admin.php?page=settings-stop-bad-bots | 1,101 | 2.66 | 41.90 | 66.42 |
Bad Bots Table /wp-admin/admin.php?page=sbb_my-custom-submenu-page | 1,278 | 2.77 | 46.70 | 31.99 |
Bad Referer Table /wp-admin/admin.php?page=sbb_my-custom-submenu-page3 | 1,305 | 2.76 | 46.00 | 30.37 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- sbb_loaded_timestamp
- db_upgraded
- widget_recent-posts
- stopbadbots_last_checked2
- bill_go_pro_hide
- widget_theysaidso_widget
- can_compress_scripts
- stopbadbots_was_activated
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/stopbadbots/functions/class-sbb-catch-errors.php
- > /wp-content/plugins/stopbadbots/functions/bill-catch-errors.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/stopbadbots/dashboard/circle_status.php:26
- > PHP Fatal error
require_once(): Failed opening required 'STOPBADBOTSPATH/includes/tgm/class-tgm-plugin-activation.php' (include_path='.:/usr/share/php') in wp-content/plugins/stopbadbots/includes/tgm/pinstaller.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/stopbadbots/template/content_stopbadbots.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/stopbadbots/dashboard/circle_memory.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function bill_banners\\get_transient() in wp-content/plugins/stopbadbots/dashboard/mybanners.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function StopBadBotsPlugin_activate\\is_multisite() in wp-content/plugins/stopbadbots/includes/feedback/activated-manager.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/stopbadbots/includes/tgm/class-tgm-plugin-activation.php:2109
- > PHP Warning
Use of undefined constant STOPBADBOTSPATH - assumed 'STOPBADBOTSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/stopbadbots/includes/tgm/pinstaller.php on line 36
- > PHP Warning
require_once(STOPBADBOTSPATH/includes/tgm/class-tgm-plugin-activation.php): failed to open stream: No such file or directory in wp-content/plugins/stopbadbots/includes/tgm/pinstaller.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'StopBadBotsWPSettings\\Page' not found in wp-content/plugins/stopbadbots/settings/options/plugin_options_tabbed.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=sbb_my-custom-submenu-page9
- > Network (severe)
https://stopbadbots.com/wp-admin/admin-ajax.php?action=stopbadbots_grava_fingerprint&fingerprint=%23Europe%2FBucharest%23-120%23linux%20x86_64%23Linux%230%2Cfalse%2Cfalse%231%231 - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Dashboard), #2 (Dashboard), #3 (Settings Page), #4 (Default Bot Table), #5 (Visitors Log Ajax Page), #6 (Visitors Chart)
- Tags: There are too many tags (29 tag instead of maximum 10)
stopbadbots/stopbadbots.php Passed 13 tests
"Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection" version 9.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Stop Bad Bots, SPAM bots and spiders. No DNS or Cloud Traffic Redirection. No Slow Down Your Site!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin32,556 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 2,808 | 3,493 | 14,257 |
PO File | 6 | 2,906 | 3,780 | 8,688 |
JavaScript | 24 | 1,812 | 1,063 | 6,943 |
CSS | 12 | 246 | 199 | 2,668 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 21 | 9.81% |
▷ Public methods | 170 | 79.44% |
▷ Protected methods | 44 | 20.56% |
▷ Private methods | 0 | 0.00% |
Functions | 219 | |
▷ Named functions | 218 | 99.54% |
▷ Anonymous functions | 1 | 0.46% |
Constants | 36 | |
▷ Global constants | 33 | 91.67% |
▷ Class constants | 3 | 8.33% |
▷ Public constants | 3 | 100.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
238 compressed PNG files occupy 0.93MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/it.png | 0.09KB | 0.10KB | 0.00% |
assets/images/flags/bg.png | 0.12KB | 0.13KB | 0.00% |
assets/images/flags/et.png | 0.35KB | 0.35KB | 0.00% |
assets/images/flags/tm.png | 0.56KB | 0.68KB | 0.00% |
assets/images/flags/sr.png | 0.20KB | 0.21KB | 0.00% |