Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.43ms] Passed 4 tests
An overview of server-side resources used by Botnet Attack Blocker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.73 ▲4.60 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.38 ▼6.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.98 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.34 ▼7.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.51 ▲4.80 |
Botnet Blocker /wp-admin/options-general.php?page=bab | 3.21 | 31.15 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_botnetblocker |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
bab_options |
widget_recent-comments |
bab_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Botnet Attack Blocker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▼0.03 | 1.71 ▲0.11 | 42.11 ▼4.93 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▼0.02 | 91.54 ▲3.48 | 41.89 ▲0.27 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.03 | 41.59 ▲0.46 | 39.12 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.26 ▼0.13 | 682.87 ▲5.22 | 52.69 ▲2.35 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▲0.01 | 106.07 ▲0.07 | 46.38 ▲3.60 |
Botnet Blocker /wp-admin/options-general.php?page=bab | 1,245 | 2.00 | 22.91 | 33.02 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=bab
- > Notice in wp-content/plugins/botnet-attack-blocker/botnet-attack-blocker.php+267
Undefined offset: 0
- > GET request to /wp-admin/options-general.php?page=bab
- > Notice in wp-content/plugins/botnet-attack-blocker/botnet-attack-blocker.php+267
Trying to get property 'timestamp' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/botnet-attack-blocker/botnet-attack-blocker.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== botnet-attack-blocker ===
) - Screenshots: Please add an image for screenshot #1 (Simple admin screen to change plugin options.)
botnet-attack-blocker/botnet-attack-blocker.php Passed 13 tests
The entry point to "Botnet Attack Blocker" version 2.0.0 is a PHP file that has certain tags in its header comment area
139 characters long description:
Temporarily block all admin logins after multiple failed attempts - helps to prevent brute force botnet attacks from multiple IP addresses.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected693 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 135 | 135 | 405 |
PHP | 1 | 11 | 29 | 288 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin