83% video-player-block

Code Review | Video Player Block - Ultimate Video Player For WordPress.

WordPress plugin Video Player Block - Ultimate Video Player For WordPress. scored83%from 54 tests.

About plugin

  • Plugin page: video-player-block
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 20, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 21
  • Update frequency: every 29.6 days
  • Top authors: charlescormier (90.48%)abuhayat (14.29%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /9,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Video Player Block - Ultimate Video Player For WordPress.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.67 ▼2.83
Dashboard /wp-admin3.32 ▲0.0243.59 ▼4.00
Posts /wp-admin/edit.php3.37 ▲0.0246.24 ▼0.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.83 ▼10.62
Media Library /wp-admin/upload.php3.24 ▲0.0236.77 ▲3.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Player Block - Ultimate Video Player For WordPress.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.081.85 ▲0.1042.68 ▲0.51
Dashboard /wp-admin2,206 ▲145.87 ▲0.90105.11 ▲1.0939.84 ▼0.36
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0341.99 ▲3.9335.55 ▲3.16
Add New Post /wp-admin/post-new.php6,440 ▲4,92128.42 ▲5.33876.85 ▲199.9140.12 ▼14.22
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.0197.51 ▼4.2439.67 ▼5.10

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-block/inc/block.php:4
    • > PHP Warning
      Use of undefined constant VPB_VERSION - assumed 'VPB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-player-block/dist/editor.asset.php on line 4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: A description for screenshot #3 is required in video-player-block/assets to your readme.txt
  • Requires at least: Invalid plugin version format
The official readme.txt might help

video-player-block/plugin.php 85% from 13 tests

The entry point to "Video Player Block - Ultimate Video Player For WordPress." version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("video-player-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin233 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON20095
PO File1356588
PHP4121344
CSS3023
JavaScript3023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin