78% vertical-dashboard-navigation

Code Review | Vertical Dashboard

WordPress plugin Vertical Dashboard scored 78% from 54 tests.

About plugin

  • Plugin page: vertical-dashboar...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.2
  • WordPress version: 5.9.2
  • First release: Dec 20, 2015
  • Latest release: Dec 26, 2015
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: thebestdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼290.90ms] Passed 4 tests

Analyzing server-side resources used by Vertical Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5388.62 ▲13.78
Dashboard /wp-admin3.83 ▲0.4334.80 ▲0.67
Posts /wp-admin/edit.php4.06 ▲0.4238.89 ▲0.08
Add New Post /wp-admin/post-new.php7.29 ▲0.3394.80 ▼1,168.13
Media Library /wp-admin/upload.php3.71 ▲0.4227.03 ▲3.80
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php5.2649.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 3 new options
New WordPress options
VM_database_option
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Vertical Dashboard: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,371 ▲61718.03 ▲2.6337.78 ▲29.5740.63 ▲37.95
Dashboard /wp-admin2,969 ▲1097.07 ▲0.95132.09 ▲9.47155.77 ▼56.91
Posts /wp-admin/edit.php2,771 ▲863.44 ▲0.2078.65 ▲13.95176.96 ▲32.25
Add New Post /wp-admin/post-new.php1,720 ▲5916.19 ▼0.57419.92 ▼10.55176.08 ▼11.06
Media Library /wp-admin/upload.php1,775 ▲806.15 ▲0.62132.96 ▼12.14198.25 ▲2.23
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php14,78222.09727.02199.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 3 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • VM_database_option

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vertical-dashboard-navigation/include/inline-style.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vertical-dashboard-navigation/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vertical-dashboard-navigation/include/default-values.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-dashboard-navigation/include/color-picker.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vertical-dashboard-navigation/include/inline-color.php:202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/vertical-dashboard-navigation/include/admin_options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/vertical-dashboard-navigation/include/menu_frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-dashboard-navigation/include/custom-admin-menu-fields.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === vertical-dashboard-navigation === )
  • Screenshots: These screenshots require images: #6 (screenshot-6 colors), #7 (screenshot-7 Custom Colors)
You can look at the official readme.txt

vertical-dashboard-navigation/index.php 92% from 13 tests

The principal PHP file in "Vertical Dashboard" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vertical-dashboard-navigation.php" instead of "index.php")

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
There were no executable files found in this plugin10,954 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
Sass8359344,249
PHP92072403,188
JavaScript84469252,583
SVG200928
CSS60116

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity21.00
▷ Minimum class complexity18.00
▷ Maximum class complexity24.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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