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
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-ban-manager/framework/admin-page-framework.min.php+4201
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲1.21MB] [CPU: ▼42.31ms] Passed 4 tests
This is a short check of server-side resources used by WP ban manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.20 ▲1.73 | 14.58 ▼22.96 |
Dashboard /wp-admin | 5.22 ▲1.91 | 17.32 ▼33.48 |
Posts /wp-admin/edit.php | 5.22 ▲1.86 | 13.87 ▼37.41 |
Add New Post /wp-admin/post-new.php | 5.22 ▼0.67 | 13.99 ▼75.37 |
Media Library /wp-admin/upload.php | 5.22 ▲1.99 | 15.94 ▼20.08 |
General settings /wp-admin/admin.php?page=wp_ban_manager_general | 5.22 | 14.61 |
Ban definitions /wp-admin/admin.php?page=wp_ban_manager_definitions | 5.22 | 18.15 |
Current bans /wp-admin/admin.php?page=wp_ban_manager_current | 5.22 | 12.76 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP ban manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.28 ▼0.30 | 1.90 ▼0.06 | 46.48 ▲1.37 |
Dashboard /wp-admin | 2,229 ▲49 | 5.63 ▼0.03 | 84.25 ▼6.65 | 39.18 ▼2.59 |
Posts /wp-admin/edit.php | 2,134 ▲37 | 1.98 ▼0.01 | 34.10 ▼3.10 | 33.82 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.07 ▼0.58 | 685.05 ▲3.96 | 59.28 ▲1.50 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▼0.01 | 95.93 ▼5.45 | 41.24 ▼5.42 |
General settings /wp-admin/admin.php?page=wp_ban_manager_general | 1,730 | 6.71 | 130.62 | 61.65 |
Ban definitions /wp-admin/admin.php?page=wp_ban_manager_definitions | 862 | 2.00 | 26.08 | 22.12 |
Current bans /wp-admin/admin.php?page=wp_ban_manager_current | 872 | 2.00 | 21.88 | 18.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-ban-manager/framework/admin-page-framework.min.php+4201
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_ban_manager_current
- > Deprecated in wp-content/plugins/wp-ban-manager/framework/admin-page-framework.min.php+4201
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-ban-manager/templates/current.tpl.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-ban-manager/templates/current.tpl.php:34
- > PHP Notice
Undefined variable: current_bans in wp-content/plugins/wp-ban-manager/templates/current.tpl.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-ban-manager/templates/definitions.tpl.php:4
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-ban-manager/framework/admin-page-framework.min.php:228
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-ban-manager/framework/admin-page-framework.min.php:228
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-ban-manager ===
)
wp-ban-manager/wp_ban_manager.php 92% from 13 tests
This is the main PHP file of "WP ban manager" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-ban-manager.php" instead of "wp_ban_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,696 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 924 | 552 | 6,696 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 15.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 93 | |
▷ Abstract classes | 27 | 29.03% |
▷ Concrete classes | 66 | 70.97% |
▷ Final classes | 0 | 0.00% |
Methods | 623 | |
▷ Static methods | 50 | 8.03% |
▷ Public methods | 457 | 73.35% |
▷ Protected methods | 93 | 14.93% |
▷ Private methods | 73 | 11.72% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin