84% videos-on-admin-dashboard

Code Review | Videos on Admin Dashboard

WordPress plugin Videos on Admin Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: videos-on-admin-d...
  • Plugin version: 2.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Nov 1, 2023
  • Number of updates: 130
  • Update frequency: every 13.0 days
  • Top authors: nahiro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,681 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.14MB] [CPU: ▼4.82ms] Passed 4 tests

This is a short check of server-side resources used by Videos on Admin Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1536.86 ▼1.64
Dashboard /wp-admin3.46 ▲0.1146.66 ▼14.37
Posts /wp-admin/edit.php3.57 ▲0.2149.64 ▲0.67
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.68 ▼3.92
Media Library /wp-admin/upload.php3.38 ▲0.1436.90 ▲1.01

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

Browser metrics Passed 4 tests

Videos on Admin Dashboard: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14814.28 ▼0.101.81 ▲0.2437.47 ▼4.87
Dashboard /wp-admin2,278 ▲1005.67 ▼0.0392.08 ▼17.2845.52 ▲5.07
Posts /wp-admin/edit.php2,143 ▲432.12 ▲0.1041.32 ▲1.8236.63 ▲2.85
Add New Post /wp-admin/post-new.php1,572 ▲4618.19 ▼4.90604.72 ▼89.1275.51 ▲15.59
Media Library /wp-admin/upload.php1,436 ▲364.24 ▲0.03103.28 ▼1.1044.70 ▼0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • vdb_settings
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/videos-on-admin-dashboard/includes/admin-page.php:307
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/videos-on-admin-dashboard/video-on-admin-dashboard.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: embed, wordpress hilfe, youtube, vimeo, dashboard...

videos-on-admin-dashboard/video-on-admin-dashboard.php 92% from 13 tests

"Videos on Admin Dashboard" version 2.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("videos-on-admin-dashboard.php" instead of "video-on-admin-dashboard.php")

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
There were no executable files found in this plugin2,810 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File4252260928
CSS31367913
PHP411227604
JavaScript23223362
SVG3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/wordpres-hilfe2.png207.34KB51.26KB▼ 75.28%
includes/img/img-33-pro.png38.76KB21.88KB▼ 43.54%