89% dashboard-quick-link-widget

Code Review | Dashboard quick links widget

WordPress plugin Dashboard quick links widget scored89%from 54 tests.

About plugin

  • Plugin page: dashboard-quick-l...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Sep 4, 2023
  • Number of updates: 19
  • Update frequency: every 133.7 days
  • Top authors: hemthapa (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /5,786 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.70ms] 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 /3.51 ▲0.0436.85 ▼1.52
Dashboard /wp-admin3.36 ▲0.0246.25 ▼10.11
Posts /wp-admin/edit.php3.41 ▲0.0550.97 ▲3.66
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.89 ▼2.92
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▼0.24
Dashboard links widget /wp-admin/options-general.php?page=dashboard-quick-link-widget3.2534.35

Server storage [IO: ▲0.02MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

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 /2,816 ▲5514.36 ▲0.001.63 ▲0.0339.20 ▲0.03
Dashboard /wp-admin2,222 ▲425.69 ▲0.1787.49 ▼1.4839.21 ▼0.94
Posts /wp-admin/edit.php2,132 ▲322.29 ▲0.3440.06 ▲5.1235.09 ▼2.82
Add New Post /wp-admin/post-new.php1,547 ▲2123.95 ▲1.07595.89 ▼63.9033.09 ▼27.82
Media Library /wp-admin/upload.php1,427 ▲274.38 ▲0.1797.49 ▼2.6242.97 ▼1.23
Dashboard links widget /wp-admin/options-general.php?page=dashboard-quick-link-widget1,2862.5845.4031.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Screenshots: A description for screenshot #2 is missing in dashboard-quick-link-widget/assets to your readme.txt
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
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.6.0 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 plugin297 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17855253
CSS19344

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.33
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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