94% dashboard-quick-link-widget

Code Review | Dashboard quick links widget

WordPress plugin Dashboard quick links widget scored 94% from 54 tests.

About plugin

  • Plugin page: dashboard-quick-l...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 20, 2016
  • Latest release: Sep 26, 2021
  • Number of updates: 15
  • Update frequency: every 122.1 days
  • Top authors: hemthapa (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active / 3,965 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.97ms] Passed 4 tests

Server-side resources used by Dashboard quick links widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1438.47 ▲14.65
Dashboard /wp-admin3.09 ▲0.0450.92 ▲1.25
Posts /wp-admin/edit.php3.14 ▲0.0445.80 ▼9.07
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.83 ▼564.28
Media Library /wp-admin/upload.php3.03 ▲0.0330.55 ▼3.79
Dashboard links widget /wp-admin/options-general.php?page=dashboard-quick-link-widget3.0033.04

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard quick links widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲11915.68 ▼0.1610.33 ▲0.2151.99 ▲1.89
Dashboard /wp-admin2,978 ▲445.90 ▼0.05146.15 ▲0.58107.53 ▼11.65
Posts /wp-admin/edit.php2,750 ▲112.68 ▼0.0268.64 ▼1.4190.97 ▼3.01
Add New Post /wp-admin/post-new.php1,509 ▼17418.48 ▲0.16382.67 ▼4.71112.38 ▼7.64
Media Library /wp-admin/upload.php1,821 ▲145.00 ▼0.06157.67 ▼28.22132.49 ▲7.05
Dashboard links widget /wp-admin/options-general.php?page=dashboard-quick-link-widget1,3162.0865.4190.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=dashboard-quick-link-widget
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=dashboard-quick-link-widget 194 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=dashboard-quick-link-widget
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=dashboard-quick-link-widget 201 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt might help

dashboard-quick-link-widget/dashboard-quick-link-widget.php Passed 13 tests

The principal PHP file in "Dashboard quick links widget" v. 1.5 is loaded by WordPress automatically on each request
87 characters long description:
This lightweight plugin creates new widget in dashboard with quick access link button.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin149 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected