84% dh-dashboard-quick-content-access

Code Review | DH Dashboard Quick Content Access

WordPress plugin DH Dashboard Quick Content Access scored84%from 54 tests.

About plugin

  • Plugin page: dh-dashboard-quic...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Jul 12, 2014
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: dhelbert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.29ms] Passed 4 tests

This is a short check of server-side resources used by DH Dashboard Quick Content Access
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.91 ▲2.06
Dashboard /wp-admin3.29 ▼0.0141.71 ▼2.53
Posts /wp-admin/edit.php3.37 ▲0.0143.23 ▼2.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.61 ▼12.21
Media Library /wp-admin/upload.php3.24 ▲0.0135.97 ▲0.25

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

Browser metrics Passed 4 tests

A check of browser resources used by DH Dashboard Quick Content Access
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.15 ▼0.571.64 ▼0.0144.03 ▲1.71
Dashboard /wp-admin2,246 ▲665.60 ▼0.0698.01 ▲3.9542.52 ▲3.38
Posts /wp-admin/edit.php2,097 ▼01.97 ▼0.0235.01 ▼0.2336.86 ▲1.45
Add New Post /wp-admin/post-new.php1,529 ▲323.55 ▼0.08589.65 ▼98.3763.32 ▲3.69
Media Library /wp-admin/upload.php1,400 ▲94.20 ▲0.0495.99 ▼2.4641.01 ▼4.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: error_msg in wp-content/plugins/dh-dashboard-quick-content-access/widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dh-dashboard-quick-content-access/dh-widget-dashqa.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/dh-dashboard-quick-content-access/widget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: post quick access, widget, dashboard

dh-dashboard-quick-content-access/dh-widget-dashqa.php 85% from 13 tests

The main PHP script in "DH Dashboard Quick Content Access" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("dh-dashboard-quick-content-access.php" instead of "dh-widget-dashqa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21726103
PO File2101954

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png7.35KB3.17KB▼ 56.89%
assets/screenshot-2.png14.88KB5.49KB▼ 63.11%