Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.23ms] Passed 4 tests
This is a short check of server-side resources used by WP-DenyHosts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.84 ▼0.17 |
Dashboard /wp-admin | 3.35 ▲0.00 | 44.69 ▼14.03 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.67 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.01 ▼1.70 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.20 ▼1.03 |
WP DenyHosts /wp-admin/options-general.php?page=wp-denyhosts | 3.22 | 39.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-DenyHosts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.48 ▼0.11 | 1.85 ▼0.03 | 42.91 ▼1.97 |
Dashboard /wp-admin | 2,215 ▲30 | 5.81 ▼0.07 | 99.17 ▼9.50 | 37.86 ▼6.14 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▲0.02 | 39.38 ▼1.95 | 34.82 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.14 ▲4.92 | 648.17 ▲13.80 | 54.31 ▼12.07 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.18 ▼0.07 | 97.26 ▲0.81 | 43.10 ▲0.91 |
WP DenyHosts /wp-admin/options-general.php?page=wp-denyhosts | 846 | 2.07 | 27.24 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-denyhosts
- > Warning in wp-content/plugins/wp-denyhosts/wp-denyhosts.php+113
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-denyhosts
- > Notice in wp-content/plugins/wp-denyhosts/wp-denyhosts.php+113
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-denyhosts/wp-denyhosts.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wp-denyhosts
- > Javascript (severe) in unknown
/wp-content/plugins/wp-denyhosts/js/jquery.placeholder.min.js?ver=6.3.1 10:804 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
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
4 plugin tags: login, spam, block, bruteforce
wp-denyhosts/wp-denyhosts.php Passed 13 tests
"WP-DenyHosts" version 0.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Distributed anti bruteforce plugin.
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
Everything looks great! No dangerous files found in this plugin182 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 10 | 176 |
JavaScript | 1 | 0 | 6 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/denyhosts.png | 32.72KB | 8.66KB | ▼ 73.55% |