77% zd-design-agency-support-dashboard

Code Review | ZD Design Agency Support Dashboard

WordPress plugin ZD Design Agency Support Dashboard scored 77% from 54 tests.

About plugin

  • Plugin page: zd-design-agency-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 5.8.1
  • First release: Nov 21, 2014
  • Latest release: Nov 23, 2014
  • Number of updates: 24
  • Update frequency: every 0.2 days
  • Top authors: camaro350 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 612 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.02MB] [CPU: ▼141.17ms] Passed 4 tests

This is a short check of server-side resources used by ZD Design Agency Support Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1339.08 ▲15.16
Dashboard /wp-admin3.08 ▲0.0247.75 ▲8.48
Posts /wp-admin/edit.php3.13 ▲0.0246.12 ▼1.29
Add New Post /wp-admin/post-new.php5.44 ▲0.0091.42 ▼575.27
Media Library /wp-admin/upload.php3.02 ▲0.0238.22 ▲3.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 1 new option
New WordPress options
dashboard_widget_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ZD Design Agency Support Dashboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,947 ▲34115.92 ▼0.0212.08 ▲1.0453.55 ▲5.95
Dashboard /wp-admin3,232 ▲2985.96 ▼0.23139.96 ▼10.03157.21 ▲33.26
Posts /wp-admin/edit.php2,754 ▲152.59 ▼0.1168.38 ▼0.6692.90 ▼8.02
Add New Post /wp-admin/post-new.php1,510 ▼17318.58 ▼0.17408.01 ▲22.35114.83 ▲1.02
Media Library /wp-admin/upload.php1,765 ▼424.99 ▼0.03138.06 ▼15.59151.46 ▲25.54

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
  • Zombie WordPress options detected upon uninstall: 1 option
    • dashboard_widget_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/zd-design-agency-support-dashboard/dashboard_page.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/zd-design-agency-support-dashboard/widget.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/zd-design-agency-support-dashboard/zd_options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zd-design-agency-support-dashboard/index.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/zd-design-agency-support-dashboard/options.php:3
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/zd-design-agency-support-dashboard/widget-config.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Dashboard Widget Screenshot), #2 (Admin Dash Page Screenshot.)
The official readme.txt might help

zd-design-agency-support-dashboard/index.php 85% from 13 tests

The primary PHP file in "ZD Design Agency Support Dashboard" version 1.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zd-design-agency-support-dashboard.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected272 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP76491272

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 1.01MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/blackboard-drawing-icon.png1.56KB1.32KB▼ 15.62%
images/EMail-icon.png21.42KB6.57KB▼ 69.32%
images/zd-icon.png1.33KB1.38KB0.00%
images/lessonslogo.png4.14KB2.38KB▼ 42.53%
images/logo-calicotek.png90.01KB28.19KB▼ 68.68%