Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/brutebank/includes/db_upgrade.php+34
Undefined variable: charset_collate
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.88ms] Passed 4 tests
A check of server-side resources used by BruteBank - WP Security & Firewall
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.67 ▼5.80 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.99 ▼2.67 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.67 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.21 ▲3.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.82 ▲1.48 |
Server storage [IO: ▲0.36MB] [DB: ▲0.33MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_brutebank_settings |
wp_brutebank_blocks |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
brutebank_db_version |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by BruteBank - WP Security & Firewall
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲96 | 13.67 ▼1.09 | 1.79 ▼0.23 | 43.62 ▼0.31 |
Dashboard /wp-admin | 2,247 ▲59 | 4.83 ▼0.09 | 137.93 ▲29.09 | 65.50 ▲24.89 |
Posts /wp-admin/edit.php | 2,142 ▲56 | 2.04 ▲0.02 | 40.97 ▲2.12 | 35.69 ▲4.98 |
Add New Post /wp-admin/post-new.php | 1,532 ▼0 | 23.44 ▲0.13 | 644.61 ▼45.68 | 50.74 ▼1.69 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.26 ▼0.04 | 95.77 ▼3.01 | 44.88 ▼0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- brutebank_db_version
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/brutebank/brutebank.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brutebank/includes/db_upgrade.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/brutebank/admin/settings.php:79
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/brutebank/admin/settings.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/brutebank/includes/plugin_setup.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Configuration of plugin) image not found
brutebank/brutebank.php 92% from 13 tests
This is the main PHP file of "BruteBank - WP Security & Firewall" version 1.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
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 plugin1,191 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 146 | 176 | 1,127 |
SVG | 2 | 0 | 2 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin