84% wp-dash-support

Code Review | WP Dash Support

WordPress plugin WP Dash Support scored 84% from 54 tests.

About plugin

  • Plugin page: wp-dash-support
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.8.1
  • First release: Mar 31, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 15
  • Update frequency: every 31.7 days
  • Top authors: moeloubani1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼145.37ms] Passed 4 tests

An overview of server-side resources used by WP Dash Support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1937.24 ▲16.93
Dashboard /wp-admin3.14 ▲0.0841.12 ▼4.09
Posts /wp-admin/edit.php3.22 ▲0.1142.77 ▼2.51
Add New Post /wp-admin/post-new.php5.50 ▲0.0688.85 ▼573.74
Media Library /wp-admin/upload.php3.08 ▲0.0833.56 ▼1.12
Dashboard Support /wp-admin/options-general.php?page=dash_support_settings3.1133.66

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
_wpds_deferred_admin_notice

Browser metrics Passed 4 tests

An overview of browser requirements for WP Dash Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲22516.04 ▲0.4410.37 ▼0.1249.84 ▲1.32
Dashboard /wp-admin3,091 ▲1576.07 ▲0.15135.00 ▼12.61117.34 ▲8.33
Posts /wp-admin/edit.php2,749 ▲102.72 ▲0.0065.90 ▼1.0695.32 ▲4.43
Add New Post /wp-admin/post-new.php1,625 ▲1021.86 ▲0.43268.36 ▼15.26102.08 ▲0.48
Media Library /wp-admin/upload.php1,823 ▲165.05 ▼0.00142.34 ▲1.59114.56 ▲2.22
Dashboard Support /wp-admin/options-general.php?page=dash_support_settings1,9717.67161.60133.21

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 were found after uninstall: 1 option
    • _wpds_deferred_admin_notice

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dash-support/inc/class-init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-dash-support/templates/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dash-support/inc/class-dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dash-support/inc/class-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dash-support/dashsupport.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dash-support/lib/systemreport/system-snapshot-report.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dash-support/inc/class-mail.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-dash-support/templates/admin/settings.php:4

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: client support, developer tool, dashboard widget

wp-dash-support/dashsupport.php 92% from 13 tests

The entry point to "WP Dash Support" version 1.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-dash-support.php" instead of "dashsupport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,101 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP101424761,020
JavaScript115061
CSS15020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity28.67
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods74
▷ Static methods22.70%
▷ Public methods7398.65%
▷ Protected methods00.00%
▷ Private methods11.35%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin