Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲0.09ms] Passed 4 tests
This is a short check of server-side resources used by Limit Login Attempts (Spam Protection)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 41.17 ▲0.41 |
Dashboard /wp-admin | 3.94 ▲0.64 | 52.84 ▼1.18 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 49.68 ▲8.48 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 94.80 ▼6.45 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 38.81 ▲7.60 |
Block countries /wp-admin/admin.php?page=WPLFLACOUNTRIES | 3.77 | 31.85 |
Options /wp-admin/admin.php?page=WPLFLASettings | 3.77 | 35.20 |
Settings /wp-admin/admin.php?page=WPLFLARANGEIP | 3.77 | 32.04 |
Statistics /wp-admin/admin.php?page=WPLFLA | 3.77 | 34.80 |
Attempts log /wp-admin/admin.php?page=WPLFLALOG | 3.77 | 30.06 |
Lockout Log /wp-admin/admin.php?page=logblockip | 3.77 | 32.01 |
Server storage [IO: ▲1.14MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 287 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_WPLFLA_log_block_ip |
wp_WPLFLA_block_ip_range |
wp_WPLFLA_block_countries |
wp_WPLFLA_login_failed |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
WPLFLA_options |
WPLFLA_version |
Browser metrics Passed 4 tests
Checking browser requirements for Limit Login Attempts (Spam Protection)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲259 | 13.23 ▼1.52 | 1.75 ▲0.08 | 44.05 ▲0.25 |
Dashboard /wp-admin | 2,411 ▲226 | 4.87 ▼0.01 | 113.65 ▲10.32 | 45.51 ▲9.47 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.00 ▼0.03 | 38.76 ▼4.45 | 33.86 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 17.50 ▼0.57 | 697.93 ▲91.15 | 55.16 ▼11.87 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.16 ▲0.03 | 94.85 ▼11.70 | 41.36 ▼4.98 |
Block countries /wp-admin/admin.php?page=WPLFLACOUNTRIES | 841 | 2.15 | 30.11 | 24.24 |
Options /wp-admin/admin.php?page=WPLFLASettings | 1,005 | 2.16 | 31.58 | 34.25 |
Settings /wp-admin/admin.php?page=WPLFLARANGEIP | 1,531 | 3.63 | 97.18 | 46.08 |
Statistics /wp-admin/admin.php?page=WPLFLA | 943 | 2.30 | 31.48 | 28.82 |
Attempts log /wp-admin/admin.php?page=WPLFLALOG | 1,228 | 3.28 | 68.16 | 28.29 |
Lockout Log /wp-admin/admin.php?page=logblockip | 1,256 | 3.32 | 69.18 | 31.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_WPLFLA_log_block_ip
- wp_WPLFLA_login_failed
- wp_WPLFLA_block_countries
- wp_WPLFLA_block_ip_range
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- WPLFLA_version
- can_compress_scripts
- db_upgraded
- WPLFLA_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-limit-failed-login-attempts/failed.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/dashboard_widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/range_ip.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/log.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/logblockip.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/statistics.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/setting.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/login.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-limit-failed-login-attempts/admin/countries.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #7 is missing in wp-limit-failed-login-attempts/assets to your readme.txt
wp-limit-failed-login-attempts/failed.php 77% from 13 tests
Analyzing the main PHP file in "Limit Login Attempts (Spam Protection)" version 5.3
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-limit-failed-login-attempts.php" instead of "failed.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,876 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 349 | 613 | 3,119 |
PHP | 10 | 390 | 49 | 2,264 |
CSS | 5 | 83 | 11 | 493 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 1 | 1.20% |
▷ Public methods | 82 | 98.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.20% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
261 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/cr.png | 1.63KB | 1.61KB | ▼ 0.84% |
assets/images/flags/sr.png | 1.60KB | 1.59KB | ▼ 0.55% |
assets/images/flags/na.png | 1.67KB | 1.65KB | ▼ 1.34% |
assets/images/flags/gi.png | 1.38KB | 1.36KB | ▼ 0.99% |
assets/images/flags/am.png | 1.31KB | 1.30KB | ▼ 0.82% |