10% dashboard-quick-lock

Code Review | Dashboard Quick Lock

WordPress plugin Dashboard Quick Lock scored10%from 54 tests.

About plugin

  • Plugin page: dashboard-quick-lock
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Mar 29, 2016
  • Number of updates: 8
  • Update frequency: every 65.6 days
  • Top authors: Quintet.Solutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,592 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.22 ▼0.5218.12 ▼30.29
Dashboard /wp-admin3.26 ▼0.3722.85 ▼44.33
Posts /wp-admin/edit.php3.27 ▼0.4123.65 ▼25.19
Add New Post /wp-admin/post-new.php3.26 ▼2.8820.85 ▼76.40
Media Library /wp-admin/upload.php3.27 ▼0.2223.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

Browser metrics Passed 4 tests

Dashboard Quick Lock: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,100 ▲33915.08 ▲0.518.56 ▲6.8944.32 ▼2.49
Dashboard /wp-admin2,399 ▲2256.38 ▲0.72108.18 ▲19.6362.93 ▲15.69
Posts /wp-admin/edit.php2,334 ▲2343.70 ▲1.7158.99 ▲19.2758.93 ▲22.63
Add New Post /wp-admin/post-new.php1,592 ▲6620.99 ▲3.53629.25 ▼63.8142.76 ▼12.90
Media Library /wp-admin/upload.php1,470 ▲674.28 ▲0.0388.74 ▼20.3460.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.41
Average class complexity55.00
▷ Minimum class complexity13.00
▷ Maximum class complexity128.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4362.32%
▷ Protected methods00.00%
▷ Private methods2637.68%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
resources/img/quintet.png1.52KB0.41KB▼ 73.10%
resources/img/close.png1.28KB0.47KB▼ 63.01%
resources/img/tip-top.png1.22KB0.25KB▼ 79.31%
resources/img/pin.png1.00KB0.11KB▼ 89.50%
resources/img/error.png1.93KB1.31KB▼ 31.88%