Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▼1.04MB] [CPU: ▼44.05ms] Passed 4 tests
This is a short check of server-side resources used by Dashboard Quick Lock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.22 ▼0.52 | 18.12 ▼30.29 |
Dashboard /wp-admin | 3.26 ▼0.37 | 22.85 ▼44.33 |
Posts /wp-admin/edit.php | 3.27 ▼0.41 | 23.65 ▼25.19 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.88 | 20.85 ▼76.40 |
Media Library /wp-admin/upload.php | 3.27 ▼0.22 | 23.11 ▼16.58 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Dashboard Quick Lock: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲339 | 15.08 ▲0.51 | 8.56 ▲6.89 | 44.32 ▼2.49 |
Dashboard /wp-admin | 2,399 ▲225 | 6.38 ▲0.72 | 108.18 ▲19.63 | 62.93 ▲15.69 |
Posts /wp-admin/edit.php | 2,334 ▲234 | 3.70 ▲1.71 | 58.99 ▲19.27 | 58.93 ▲22.63 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 20.99 ▲3.53 | 629.25 ▼63.81 | 42.76 ▼12.90 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.28 ▲0.03 | 88.74 ▼20.34 | 60.69 ▲14.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: username, dashboard lock, idle lock, pin, lock...
dashboard-quick-lock/lock.php 92% from 13 tests
The main PHP script in "Dashboard Quick Lock" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dashboard-quick-lock.php" instead of "lock.php")
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
Everything looks great! No dangerous files found in this plugin4,452 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 223 | 398 | 1,887 |
JavaScript | 4 | 122 | 150 | 1,459 |
CSS | 3 | 24 | 4 | 1,106 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 62.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 37.68% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/quintet.png | 1.52KB | 0.41KB | ▼ 73.10% |
resources/img/close.png | 1.28KB | 0.47KB | ▼ 63.01% |
resources/img/tip-top.png | 1.22KB | 0.25KB | ▼ 79.31% |
resources/img/pin.png | 1.00KB | 0.11KB | ▼ 89.50% |
resources/img/error.png | 1.93KB | 1.31KB | ▼ 31.88% |