72% quickdashboard

Code Review | Quickdashboard

WordPress plugin Quickdashboard scored72%from 54 tests.

About plugin

  • Plugin page: quickdashboard
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2020
  • Latest release: May 31, 2022
  • Number of updates: 56
  • Update frequency: every 10.4 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.76ms] Passed 4 tests

An overview of server-side resources used by Quickdashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.00 ▼4.70
Dashboard /wp-admin3.37 ▲0.0749.34 ▲2.17
Posts /wp-admin/edit.php3.48 ▲0.1345.93 ▼7.06
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.32 ▼19.46
Media Library /wp-admin/upload.php3.29 ▲0.0635.16 ▲0.20
Quickdashboard /wp-admin/options-general.php?page=quickdashboard/quickdashboard.php3.3537.14
/wp-admin/index.php?page=quickdashboard3.2637.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 10 new options
New WordPress options
quick_custom_userid
custom_dash_design
widget_recent-comments
custom_dash_setting_information
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
quick_admin_userid

Browser metrics Passed 4 tests

Quickdashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.22 ▼1.181.56 ▼0.2244.43 ▲0.52
Dashboard /wp-admin2,216 ▲254.83 ▼1.05113.61 ▲7.5643.71 ▼0.55
Posts /wp-admin/edit.php2,099 ▲72.03 ▲0.0038.55 ▼1.2232.87 ▼1.76
Add New Post /wp-admin/post-new.php1,549 ▲2817.94 ▼5.28617.59 ▼46.6955.01 ▲5.04
Media Library /wp-admin/upload.php1,398 ▲74.22 ▲0.0197.22 ▼4.9941.61 ▼3.56
Quickdashboard /wp-admin/options-general.php?page=quickdashboard/quickdashboard.php3,0994.1788.3188.38
/wp-admin/index.php?page=quickdashboard7782.0321.9617.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • quick_custom_userid
    • theysaidso_admin_options
    • widget_recent-comments
    • custom_dash_setting_information
    • can_compress_scripts
    • db_upgraded
    • quick_admin_userid
    • widget_recent-posts
    • widget_theysaidso_widget
    • custom_dash_design

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/index.php?page=quickdashboard
    • > Notice in wp-content/plugins/quickdashboard/quick-back.php+37
    Undefined offset: 1

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quickdashboard/index.php
    • > /wp-content/plugins/quickdashboard/buttons.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quickdashboard/quick-back.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/quickdashboard/quick-back.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/quickdashboard/quick-back.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/quickdashboard/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quickdashboard/dashicon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quickdashboard/admin/html/info.html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quickdashboard/admin/html/user.html.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/quickdashboard/admin/html.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #3 is missing in quickdashboard/assets to your readme.txt
  • Requires php: Invalid plugin version format
The official readme.txt might help

quickdashboard/quickdashboard.php 85% from 13 tests

"Quickdashboard" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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 plugin2,282 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP1012033953
CSS61013885
JavaScript33019257
PO File1229528164
SVG30023

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/QB-Logo.png1.26KB1.17KB▼ 7.13%
img/QB-Logo-Text.png50.83KB14.43KB▼ 71.62%