Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼0.38ms] 75% from 4 tests
This is a short check of server-side resources used by WPS Limit Login
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 5,050.00ms on /wp-admin/options-general.php?page=wps-limit-login)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 43.13 ▲1.48 |
Dashboard /wp-admin | 3.68 ▲0.37 | 55.23 ▲2.99 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 52.17 ▲3.22 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 90.80 ▼9.22 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.49 ▲7.10 |
WPS Limit Login /wp-admin/options-general.php?page=wps-limit-login | 3.55 | 5,050.00 |
Server storage [IO: ▲6.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WPS Limit Login: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.61 ▼0.81 | 2.09 ▲0.14 | 43.87 ▼1.04 |
Dashboard /wp-admin | 2,243 ▲55 | 5.81 ▼0.06 | 99.01 ▼20.67 | 38.61 ▼7.80 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.04 | 36.12 ▼0.95 | 37.00 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.13 ▲5.03 | 653.78 ▼19.13 | 47.60 ▼8.25 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.22 ▼0.02 | 101.94 ▼9.87 | 46.88 ▲3.21 |
WPS Limit Login /wp-admin/options-general.php?page=wps-limit-login | 1,100 | 4.75 | 41.92 | 82.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wps-limit-login/blocks/menu.php
- > /wp-content/plugins/wps-limit-login/blocks/whitelist.php
- > /wp-content/plugins/wps-limit-login/blocks/pub.php
- > /wp-content/plugins/wps-limit-login/classes/plugin.php
- > /wp-content/plugins/wps-limit-login/blocks/blacklist.php
- > /wp-content/plugins/wps-limit-login/classes/singleton.php
- > /wp-content/plugins/wps-limit-login/wps-limit-login.php
- > /wp-content/plugins/wps-limit-login/admin_page/options.php
- > /wp-content/plugins/wps-limit-login/blocks/log.php
- > /wp-content/plugins/wps-limit-login/blocks/pub-wpserveur.php
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
wps-limit-login/wps-limit-login.php 85% from 13 tests
This is the main PHP file of "WPS Limit Login" version 1.5.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected14,217 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 16 | 7,499 |
PO File | 17 | 1,952 | 2,816 | 4,050 |
PHP | 25 | 607 | 674 | 2,098 |
CSS | 2 | 100 | 35 | 534 |
JSON | 2 | 0 | 0 | 35 |
JavaScript | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 39.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 27 | 27.27% |
▷ Public methods | 93 | 93.94% |
▷ Protected methods | 4 | 4.04% |
▷ Private methods | 2 | 2.02% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 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
3 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-icon-32.png | 2.81KB | 1.41KB | ▼ 49.95% |
assets/img/check-and-tools-logo-in-plugin.png | 39.55KB | 7.80KB | ▼ 80.28% |
assets/img/wps-limit-login-logo.png | 39.38KB | 7.63KB | ▼ 80.64% |