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.11MB] [CPU: ▼313.02ms] Passed 4 tests
Server-side resources used by LOGIN AND REGISTRATION ATTEMPTS LIMIT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.56 | 61.69 ▼65.82 |
Dashboard /wp-admin | 3.55 ▲0.14 | 38.71 ▼4.27 |
Posts /wp-admin/edit.php | 3.77 ▲0.14 | 45.08 ▲3.96 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.05 | 102.31 ▼1,185.96 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 33.83 ▲6.36 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_login_attempts_limit_wp_failed_login_attempts |
wp_login_attempts_limit_wp_blog_registration_attempts |
wp_login_attempts_limit_wp_user_registration_attempts |
New WordPress options |
---|
login_attempts_limit_wp_options |
Browser metrics Passed 4 tests
A check of browser resources used by LOGIN AND REGISTRATION ATTEMPTS LIMIT
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 15.60 ▼0.37 | 6.09 ▼0.29 | 2.37 ▼0.14 |
Dashboard /wp-admin | 2,896 ▲38 | 6.06 ▼0.09 | 131.40 ▼12.62 | 155.71 ▼13.54 |
Posts /wp-admin/edit.php | 2,711 ▲20 | 3.24 ▲0.01 | 62.71 ▼6.56 | 141.03 ▼7.59 |
Add New Post /wp-admin/post-new.php | 1,674 ▲8 | 16.11 ▼4.65 | 397.23 ▼26.55 | 157.55 ▼14.45 |
Media Library /wp-admin/upload.php | 1,712 ▲17 | 5.60 ▲0.09 | 151.75 ▲11.57 | 200.75 ▼11.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- login_attempts_limit_wp_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/login-attempts-limit-wp/templates/settings-page.php
- > /wp-content/plugins/login-attempts-limit-wp/templates/settings-tabs/statistic.php
- > /wp-content/plugins/login-attempts-limit-wp/templates/settings-tabs/options.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant KRUT1_LOGIN_ATTEMPTS_LIMIT_WP_PATH - assumed 'KRUT1_LOGIN_ATTEMPTS_LIMIT_WP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/login-attempts-limit-wp/includes/Plugin.php on line 92
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/login-attempts-limit-wp/login-attempts-limit-wp.php:15
- > PHP Fatal error
Uncaught Error: Class 'Krut1LoginAttemptsLimitWp\\TableManager' not found in wp-content/plugins/login-attempts-limit-wp/includes/LoginManager.php:10
- > PHP Fatal error
Uncaught Error: Class 'Krut1LoginAttemptsLimitWp\\TableManager' not found in wp-content/plugins/login-attempts-limit-wp/includes/RegistrationUserManager.php:10
- > PHP Fatal error
Uncaught Error: Class 'Krut1LoginAttemptsLimitWp\\TableManager' not found in wp-content/plugins/login-attempts-limit-wp/includes/RegistrationBlogManager.php:10
- > PHP Fatal error
require_once(): Failed opening required 'KRUT1_LOGIN_ATTEMPTS_LIMIT_WP_PATHincludes/Autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/login-attempts-limit-wp/includes/Plugin.php on line 92
- > PHP Warning
require_once(KRUT1_LOGIN_ATTEMPTS_LIMIT_WP_PATHincludes/Autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/login-attempts-limit-wp/includes/Plugin.php on line 92
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: Contributors not specified
login-attempts-limit-wp/login-attempts-limit-wp.php Passed 13 tests
The main PHP script in "LOGIN AND REGISTRATION ATTEMPTS LIMIT" version 2.1 is automatically included on every request by WordPress
70 characters long description:
Protects your blog from password guessing and from auto registrations.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin912 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 183 | 340 | 716 |
PO File | 2 | 86 | 84 | 184 |
CSS | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 16 | 38.10% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/avatar-author.png | 10.86KB | 11.24KB | 0.00% |