Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/automatic-ban-ip/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.51ms] Passed 4 tests
An overview of server-side resources used by Automatic Ban IP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.97 ▼1.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.02 ▼2.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.56 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.07 ▼11.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.24 ▲2.03 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 163 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pluginSL_automatic_ban_ip |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
automatic_ban_ip_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Automatic Ban IP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.68 ▼0.69 | 1.89 ▼0.32 | 44.58 ▲0.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.02 | 99.91 ▼17.57 | 40.85 ▼3.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 33.83 ▼4.76 | 34.37 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.16 ▲5.64 | 670.12 ▲30.91 | 67.43 ▲16.32 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.00 | 112.67 ▼16.79 | 50.77 ▲1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/automatic-ban-ip/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 | 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
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/automatic-ban-ip/automatic-ban-ip.php
- > /wp-content/plugins/automatic-ban-ip/core.class.php
- > /wp-content/plugins/automatic-ban-ip/core.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/automatic-ban-ip/core/templates/my-plugin.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/automatic-ban-ip/core/templates/my-plugin.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (The world map of banned spammers), #2 (An extract of list of banned spammers)
automatic-ban-ip/automatic-ban-ip.php 92% from 13 tests
Analyzing the main PHP file in "Automatic Ban IP" version 1.0.7
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 745 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16,908 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 33 | 3,916 | 0 | 8,546 |
PHP | 19 | 976 | 1,783 | 6,973 |
JavaScript | 7 | 206 | 235 | 781 |
CSS | 11 | 88 | 13 | 493 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 52.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 7.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 36 | 23.08% |
▷ Public methods | 153 | 98.08% |
▷ Protected methods | 3 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.55MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/tree_node_plus.png | 0.15KB | 0.13KB | ▼ 12.50% |
core/img/title_popup.png | 2.72KB | 0.20KB | ▼ 92.65% |
img/icon-256x256.png | 38.39KB | 15.17KB | ▼ 60.49% |
core/img/tab_mail.png | 0.66KB | 0.62KB | ▼ 6.63% |
core/img/tab_empty.png | 0.08KB | 0.09KB | 0.00% |