Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs_DB_Website.php+309
trim() expects parameter 1 to be string, array given
Server metrics [RAM: ▲2.83MB] [CPU: ▲23.13ms] Passed 4 tests
A check of server-side resources used by BotBanish by Randem Systems
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.30 ▲2.84 | 75.81 ▲34.63 |
Dashboard /wp-admin | 6.17 ▲2.86 | 76.59 ▲19.99 |
Posts /wp-admin/edit.php | 6.22 ▲2.86 | 74.87 ▲25.73 |
Add New Post /wp-admin/post-new.php | 8.68 ▲2.80 | 117.53 ▲12.18 |
Media Library /wp-admin/upload.php | 6.03 ▲2.80 | 81.40 ▲43.59 |
Download Tables /wp-admin/admin.php?page=botbanishfirewall-download | 6.24 | 207.82 |
Settings /wp-admin/admin.php?page=botbanishfirewall-client | 5.99 | 58.23 |
View Logs /wp-admin/admin.php?page=botbanishfirewall-viewlogs | 6.02 | 62.38 |
Analytics /wp-admin/admin.php?page=botbanishfirewall-analytics | 6.57 | 64.63 |
Help /wp-admin/admin.php?page=botbanishfirewall-help | 5.99 | 60.60 |
Server storage [IO: ▲4.54MB] [DB: ▲0.21MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification detected: 34 files (406.33KB) outside of "wp-content/plugins/botbanish-firewall-client/" and "wp-content/uploads/"
- (new file) favicon-16x16.png
- (new file) .htaccess102200
- (new file) android-chrome-192x192.png
- (new file) data/wp.com/potrivit-data_2023-10-12_.sql.gz
- (new file) BotBanishRootIndex.php
- (new file) BotBanish_RegisterAccount.html
- (new file) apple-touch-icon.png
- (new file) android-chrome-512x512.png
- (modified) .htaccess
- (new file) AddCountry.log
- ...
Filesystem: 585 new files
Database: 17 new tables, 7 new options
New tables |
---|
bbc_botbanishclient_htaccess |
bbc_botbanishclient_ip |
bbc_botbanishclient_spiders_good |
bbc_botbanishclient_spiders_bad |
bbc_botbanish_language_text |
bbc_botbanishclient_website_downloads |
bbc_botbanishclient_website_visits |
bbc_botbanish_language |
bbc_botbanishclient_doc_errors |
bbc_botbanishclient_ip_dnb |
... |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
botbanishfirewall_client_option_name |
Browser metrics Passed 4 tests
BotBanish by Randem Systems: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.43 ▲0.03 | 1.75 ▼0.30 | 44.01 ▲1.94 |
Dashboard /wp-admin | 2,238 ▲47 | 4.87 ▼0.02 | 108.93 ▼4.93 | 43.55 ▼3.33 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.99 ▼0.06 | 35.67 ▼5.11 | 31.29 ▼8.90 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 22.06 ▲4.41 | 669.14 ▲60.38 | 56.95 ▲2.30 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.22 ▼0.05 | 102.68 ▼2.21 | 43.24 ▼4.45 |
Download Tables /wp-admin/admin.php?page=botbanishfirewall-download | 798 | 2.22 | 34.58 | 28.64 |
Settings /wp-admin/admin.php?page=botbanishfirewall-client | 946 | 2.03 | 26.10 | 28.07 |
View Logs /wp-admin/admin.php?page=botbanishfirewall-viewlogs | 993 | 2.05 | 23.78 | 28.05 |
Analytics /wp-admin/admin.php?page=botbanishfirewall-analytics | 1,678 | 2.06 | 22.70 | 28.35 |
Help /wp-admin/admin.php?page=botbanishfirewall-help | 709 | 1.37 | 7.78 | 22.19 |
Uninstaller [IO: ▲0.37MB] [DB: ▲0.21MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 17 tables in the database
- bbc_botbanishclient_website_downloads
- bbc_botbanishclient_website_visits
- bbc_botbanishclient_domain_bad
- bbc_botbanishclient_url_dnc
- bbc_botbanishclient_ip
- bbc_botbanishclient_spiders_bad
- bbc_botbanishclient_settings
- bbc_botbanish_language
- bbc_botbanishclient_htaccess
- bbc_botbanishclient_domain_good
- ...
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 123× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/parser/issue60.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/creator/count_distinct.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/parser/issue33.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/creator/issue101.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/parser/issue38.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/creator/insert.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/parser/issue55.php
- > /wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/tests/cases/parser/nested.php
- > /wp-content/plugins/botbanish-firewall-client/bot/Analytics/BotBanishDownload.php
- > /wp-content/plugins/botbanish-firewall-client/bot/Client/BotBanishClient.php
- 261× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: as in wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/src/builders/CreateTableSelectOptionBuilder.php on line 59
- > PHP Notice
Undefined index: as in wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/src/builders/CreateTableSelectOptionBuilder.php on line 59
- > PHP Notice
unserialize(): Error at offset 132 of 143 bytes in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs.php on line 3055
- > PHP Notice
Undefined index: as in wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/src/builders/CreateTableSelectOptionBuilder.php on line 59
- > PHP Notice
Undefined index: duplicates in wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/src/builders/CreateTableSelectOptionBuilder.php on line 58
- > PHP Notice
Undefined index: duplicates in wp-content/plugins/botbanish-firewall-client/bot/vendor/PHP-SQL-Parser/src/builders/CreateTableSelectOptionBuilder.php on line 58
- > PHP Notice
Undefined index: location in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs.php on line 880
- > PHP Notice
Undefined index: php_error in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs.php on line 791
- > PHP Notice
Undefined index: cause in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs.php on line 946
- > PHP Notice
Undefined index: called_from in wp-content/plugins/botbanish-firewall-client/bot/Subs/BotBanish_Subs.php on line 811
- > PHP Notice
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)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=botbanishfirewall-analytics
- > Network (severe)
wp-content/plugins/botbanish-firewall-client/Analytics/css/BotBanishAnalytics.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (None)
- Tags: There are too many tags (11 tag instead of maximum 10)
botbanish-firewall-client/BotBanish.php 85% from 13 tests
The entry point to "BotBanish by Randem Systems" version 4.1.04 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("botbanish-firewall-client.php" instead of "BotBanish.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 265 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin28,955 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 297 | 7,811 | 10,175 | 27,022 |
CSS | 2 | 43 | 2 | 801 |
SQL | 58 | 114 | 233 | 371 |
HTML | 2 | 8 | 0 | 341 |
XML | 4 | 4 | 1 | 289 |
JavaScript | 1 | 43 | 9 | 106 |
JSON | 1 | 0 | 0 | 25 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 167)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 554.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 167.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 130 | |
▷ Abstract classes | 1 | 0.77% |
▷ Concrete classes | 129 | 99.23% |
▷ Final classes | 0 | 0.00% |
Methods | 526 | |
▷ Static methods | 11 | 2.09% |
▷ Public methods | 268 | 50.95% |
▷ Protected methods | 245 | 46.58% |
▷ Private methods | 13 | 2.47% |
Functions | 403 | |
▷ Named functions | 401 | 99.50% |
▷ Anonymous functions | 2 | 0.50% |
Constants | 176 | |
▷ Global constants | 122 | 69.32% |
▷ Class constants | 54 | 30.68% |
▷ Public constants | 54 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.63MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bot/Images/install/banner.png | 108.99KB | 28.26KB | ▼ 74.07% |
bot/Images/icons/BotBanish.png | 4.26KB | 1.09KB | ▼ 74.49% |
bot/favicon-16x16.png | 0.78KB | 0.82KB | 0.00% |
bot/Images/icons/favicon-16x16.png | 0.78KB | 0.82KB | 0.00% |
bot/Images/icons/android-chrome-192x192.png | 38.36KB | 11.90KB | ▼ 68.99% |