84% easy-bruteforce-protect

Code Review | Easy Bruteforce Protect

WordPress plugin Easy Bruteforce Protect scored84%from 54 tests.

About plugin

  • Plugin page: easy-bruteforce-p...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 7, 2014
  • Latest release: Aug 7, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: keliix06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.97ms] Passed 4 tests

A check of server-side resources used by Easy Bruteforce Protect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.60 ▲5.24
Dashboard /wp-admin3.33 ▼0.0247.81 ▼12.79
Posts /wp-admin/edit.php3.38 ▲0.0243.01 ▼1.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.73 ▼17.07
Media Library /wp-admin/upload.php3.25 ▲0.0232.22 ▼4.14

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (0.80KB) outside of "wp-content/plugins/easy-bruteforce-protect/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Bruteforce Protect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.341.84 ▲0.3045.64 ▲6.40
Dashboard /wp-admin2,195 ▲155.49 ▼0.1882.32 ▼5.9737.01 ▼8.68
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0533.19 ▼2.0635.96 ▲3.16
Add New Post /wp-admin/post-new.php1,526 ▼022.89 ▼0.61681.55 ▼12.9864.53 ▲3.52
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0694.00 ▼11.2642.72 ▼4.50

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-bruteforce-protect/easy-bruteforce-protect.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: brute force, htaccess, security

easy-bruteforce-protect/easy-bruteforce-protect.php Passed 13 tests

The entry point to "Easy Bruteforce Protect" version 1.0.0 is a PHP file that has certain tags in its header comment area
110 characters long description:
Adds code to your .htaccess file to protect from simple brute force attacks. Deactivate to disable protection.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101575

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin