Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.39ms] Passed 4 tests
An overview of server-side resources used by WP fail2ban Add-on for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.89 ▲1.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.06 ▲1.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.82 ▼3.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.25 ▼0.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.72 ▼2.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP fail2ban Add-on for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.26 ▼1.52 | 1.83 ▲0.18 | 41.60 ▼2.60 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼1.05 | 107.70 ▲8.22 | 42.32 ▼1.36 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.03 | 38.86 ▼1.87 | 34.63 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 18.48 ▼4.88 | 586.51 ▼30.90 | 60.58 ▼2.37 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.09 | 97.66 ▼2.40 | 43.07 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity forms, security, spam, fail2ban, classicpress
wp-fail2ban-addon-gravity-forms/addon.php 85% from 13 tests
This is the main PHP file of "WP fail2ban Add-on for Gravity Forms" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-fail2ban-addon-gravity-forms.php" instead of "addon.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected335 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 69 | 246 | 314 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 3 | 100.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 3.80KB | 3.21KB | ▼ 15.49% |