84% video-dashboard

Code Review | Video Dashboard

WordPress plugin Video Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: video-dashboard
  • Plugin version: 1.2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: May 13, 2022
  • Number of updates: 44
  • Update frequency: every 66.0 days
  • Top authors: brianjohnsondesign (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /5,965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.34ms] Passed 4 tests

A check of server-side resources used by Video Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0339.42 ▼3.60
Dashboard /wp-admin3.38 ▼0.0148.69 ▼15.38
Posts /wp-admin/edit.php3.43 ▲0.0351.53 ▼2.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0387.13 ▼12.36
Media Library /wp-admin/upload.php3.30 ▲0.0339.52 ▲5.44
Video Dashboard /wp-admin/options-general.php?page=vdb-options3.2834.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
vdb_settings
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Video Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.34 ▲0.051.68 ▼0.0537.25 ▼4.39
Dashboard /wp-admin2,238 ▲585.63 ▼0.0388.98 ▼1.6441.02 ▼3.30
Posts /wp-admin/edit.php2,104 ▲71.95 ▼0.0732.93 ▼3.5333.15 ▲0.26
Add New Post /wp-admin/post-new.php1,529 ▼022.94 ▼0.24682.23 ▼16.6366.08 ▲9.38
Media Library /wp-admin/upload.php1,401 ▲44.12 ▼0.10109.38 ▲5.2550.50 ▲3.45
Video Dashboard /wp-admin/options-general.php?page=vdb-options1,5641.9926.7231.28

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • vdb_settings
    • db_upgraded
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-dashboard/video-dashboard.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-dashboard/includes/admin-page.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin in action. Videos are embedded directly into the dashboard screen.), #2 (The admin screen for Video Dashboard. Options include the ability to select the number of videos that will be displayed and which roles will have the ability to see the videos in the dashboard.)
You can take inspiration from this readme.txt

video-dashboard/video-dashboard.php Passed 13 tests

The primary PHP file in "Video Dashboard" version 1.2.1.1 is used by WordPress to initiate all plugin functionality
65 characters long description:
A plugin to display embeddable media into the WordPress dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin204 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27320185
CSS12114
XML1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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