Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.21ms] Passed 4 tests
Analyzing server-side resources used by Lock User Account
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.52 ▼6.15 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.44 ▼3.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.57 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.66 ▼1.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.02 ▼1.56 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Lock User Account: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.22 | 1.73 ▼0.10 | 41.36 ▲1.19 |
Dashboard /wp-admin | 2,198 ▲24 | 5.59 ▲0.06 | 90.54 ▲5.68 | 40.29 ▼4.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 39.35 ▼2.67 | 34.78 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 17.98 ▼5.05 | 588.61 ▼79.82 | 63.25 ▼0.68 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.09 | 98.73 ▼14.85 | 42.95 ▼5.93 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: users, disable user, lock account, block user, lock user...
lock-user-account/lock-user-account.php 92% from 13 tests
Analyzing the main PHP file in "Lock User Account" version 1.0.5
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected130 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 100 | 130 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
7 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 17.52KB | 6.65KB | ▼ 62.03% |
assets/screenshot-1.png | 15.04KB | 5.84KB | ▼ 61.13% |
assets/screenshot-4.png | 23.76KB | 9.65KB | ▼ 59.38% |
assets/banner-1544x500-rtl.png | 91.00KB | 31.84KB | ▼ 65.01% |
assets/screenshot-2.png | 8.55KB | 3.26KB | ▼ 61.80% |