Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.28ms] Passed 4 tests
Analyzing server-side resources used by WordPress Brute Force Protection - Stop Brute Force Attacks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.83 ▼0.83 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.26 ▲0.46 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.02 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.61 ▲2.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.23 ▲0.81 |
Activity Log /wp-admin/admin.php?page=guardgiant-login-activity-log | 3.31 | 32.10 |
Settings /wp-admin/admin.php?page=guardgiant | 3.32 | 31.95 |
Server storage [IO: ▲0.24MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_guardgiant_login_activity_log |
wp_guardgiant_user_failed_logins |
wp_guardgiant_ip_failed_logins |
New WordPress options |
---|
guardgiant-settings |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
guardgiant_salt |
guardgiant-install |
widget_recent-posts |
guardgiant-stats |
Browser metrics Passed 4 tests
WordPress Brute Force Protection - Stop Brute Force Attacks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.23 ▼1.16 | 1.55 ▼0.36 | 39.98 ▼2.46 |
Dashboard /wp-admin | 2,229 ▲41 | 5.83 ▲0.98 | 96.83 ▼14.34 | 38.35 ▼3.71 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.05 ▲0.05 | 39.96 ▲3.46 | 38.67 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,557 ▲33 | 22.95 ▼0.41 | 605.29 ▼71.92 | 51.40 ▼27.87 |
Media Library /wp-admin/upload.php | 1,414 ▲32 | 4.23 ▲0.01 | 98.62 ▲1.32 | 41.18 ▼3.59 |
Activity Log /wp-admin/admin.php?page=guardgiant-login-activity-log | 1,398 | 1.72 | 28.69 | 35.15 |
Settings /wp-admin/admin.php?page=guardgiant | 1,084 | 2.06 | 22.15 | 26.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/guardgiant/public/partials/guardgiant-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/guardgiant/admin/partials/guardgiant-admin-activity-log.php:27
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/guardgiant/includes/class-guardgiant-table-login-activity-log.php on line 14
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/guardgiant/includes/class-guardgiant-table-login-activity-log.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/guardgiant/includes/class-guardgiant-table-login-activity-log.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/guardgiant/admin/partials/guardgiant-admin-display.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: brute force protection, stop brute force attacks, login protection, brute force login protection, limit login...
guardgiant/guardgiant.php Passed 13 tests
The principal PHP file in "WordPress Brute Force Protection - Stop Brute Force Attacks" v. 2.2.5 is loaded by WordPress automatically on each request
85 characters long description:
Security plugin with 100% brute force protection that doesn't lock out genuine users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,886 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,075 | 1,740 | 2,639 |
HTML | 1 | 26 | 48 | 241 |
JavaScript | 2 | 4 | 6 | 6 |
CSS | 2 | 0 | 6 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 33 | 26.19% |
▷ Public methods | 113 | 89.68% |
▷ Protected methods | 3 | 2.38% |
▷ Private methods | 10 | 7.94% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin