10% brutebank

Code Review | BruteBank - WP Security & Firewall

WordPress plugin BruteBank - WP Security & Firewall scored10%from 54 tests.

About plugin

  • Plugin page: brutebank
  • Plugin version: 1.10
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: May 29, 2020
  • Latest release: Feb 15, 2023
  • Number of updates: 54
  • Update frequency: every 18.4 days
  • Top authors: brutebank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,257 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.67 ▼5.80
Dashboard /wp-admin3.32 ▲0.0244.99 ▼2.67
Posts /wp-admin/edit.php3.37 ▲0.0248.67 ▲3.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.21 ▲3.48
Media Library /wp-admin/upload.php3.24 ▲0.0232.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9613.67 ▼1.091.79 ▼0.2343.62 ▼0.31
Dashboard /wp-admin2,247 ▲594.83 ▼0.09137.93 ▲29.0965.50 ▲24.89
Posts /wp-admin/edit.php2,142 ▲562.04 ▲0.0240.97 ▲2.1235.69 ▲4.98
Add New Post /wp-admin/post-new.php1,532 ▼023.44 ▲0.13644.61 ▼45.6850.74 ▼1.69
Media Library /wp-admin/upload.php1,444 ▲564.26 ▼0.0495.77 ▼3.0144.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP51461761,127
SVG20264

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 code0.40
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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