Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.09ms] Passed 4 tests
This is a short check of server-side resources used by Disable User Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.62 ▼0.81 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.81 ▼0.26 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.52 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.44 ▼4.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.03 ▲0.67 |
Server storage [IO: ▲0.15MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable User Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.21 ▼1.15 | 4.83 ▲2.91 | 42.22 ▲3.21 |
Dashboard /wp-admin | 2,208 ▲20 | 4.89 ▲0.02 | 100.64 ▼8.66 | 41.10 ▼1.59 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▲0.01 | 35.77 ▼7.40 | 32.52 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.29 ▼4.77 | 626.99 ▼74.70 | 47.74 ▼27.32 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.20 ▼0.02 | 98.24 ▼6.60 | 42.15 ▼3.41 |
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: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (User profile setting available to administrators.), #2 (Message when a disabled user tries to login.)
disable-user-login/disable-user-login.php 85% from 13 tests
The entry point to "Disable User Login" version 1.3.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin529 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 254 | 272 |
SVG | 2 | 1 | 2 | 143 |
PO File | 1 | 15 | 22 | 71 |
JavaScript | 1 | 11 | 11 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-500x500.png | 13.14KB | 6.20KB | ▼ 52.80% |
assets/icon-128x128.png | 3.80KB | 2.24KB | ▼ 41.02% |
assets/icon-256x256.png | 7.13KB | 3.74KB | ▼ 47.57% |
assets/banner-772x250.png | 18.64KB | 8.06KB | ▼ 56.77% |
assets/banner-1544x500.png | 37.11KB | 15.70KB | ▼ 57.68% |