84% video-metabox

Code Review | Video Metabox

WordPress plugin Video Metabox scored 84% from 54 tests.

About plugin

  • Plugin page: video-metabox
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 8, 2013
  • Latest release: Sep 10, 2014
  • Number of updates: 15
  • Update frequency: every 22.4 days
  • Top authors: jesseover (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 6,918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.70MB] [CPU: ▼185.53ms] Passed 4 tests

Analyzing server-side resources used by Video Metabox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.93 ▼0.905.40 ▼25.71
Dashboard /wp-admin1.95 ▼1.116.47 ▼38.92
Posts /wp-admin/edit.php1.95 ▼1.165.32 ▼30.42
Add New Post /wp-admin/post-new.php1.95 ▼3.485.39 ▼640.44
Media Library /wp-admin/upload.php1.95 ▼1.065.78 ▼32.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Video Metabox: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.14 ▲0.668.99 ▲0.9346.77 ▼1.04
Dashboard /wp-admin2,972 ▲416.07 ▲0.15134.18 ▼2.96106.02 ▼6.10
Posts /wp-admin/edit.php2,741 ▲52.70 ▲0.0064.45 ▼1.8293.06 ▲5.17
Add New Post /wp-admin/post-new.php1,722 ▲22416.94 ▼2.06358.26 ▼23.50112.41 ▲4.49
Media Library /wp-admin/upload.php1,809 ▼15.04 ▲0.00139.96 ▼11.49114.51 ▼6.79

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/video-metabox/lib/wp-video-postmeta.php+33
    Undefined index: label

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/video-metabox/video-metabox.php:221

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: responsive, youtube, video, vimeo

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

The entry point to "Video Metabox" version 1.2 is a PHP file that has certain tags in its header comment area
41 characters long description:
Adds a video metabox plugin to your site.

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
There were no executable files found in this plugin275 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49631253
CSS12017
Markdown1305

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.12
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2589.29%
▷ Protected methods310.71%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin