84% voltax-video-player

Code Review | Voltax Video Player

WordPress plugin Voltax Video Player scored84%from 54 tests.

About plugin

  • Plugin page: voltax-video-player
  • Plugin version: 1.6.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2021
  • Latest release: Dec 8, 2022
  • Number of updates: 24
  • Update frequency: every 17.0 days
  • Top authors: minutemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,489 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼0.96ms] Passed 4 tests

Analyzing server-side resources used by Voltax Video Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2244.56 ▼4.08
Dashboard /wp-admin3.56 ▲0.2651.89 ▼2.19
Posts /wp-admin/edit.php3.61 ▲0.2655.25 ▲6.70
Add New Post /wp-admin/post-new.php6.10 ▲0.2190.48 ▲0.66
Media Library /wp-admin/upload.php3.42 ▲0.1941.11 ▲1.75
Voltax Video /wp-admin/options-general.php?page=mm-video3.3933.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
mm_plugin_version
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Voltax Video Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.32 ▼0.051.81 ▲0.1539.41 ▼5.49
Dashboard /wp-admin2,214 ▲375.63 ▼0.1088.21 ▼2.2039.34 ▼2.82
Posts /wp-admin/edit.php2,117 ▲172.02 ▲0.0138.49 ▼2.6138.64 ▲2.30
Add New Post /wp-admin/post-new.php1,551 ▲2223.71 ▲0.47650.22 ▲1.8934.52 ▼25.84
Media Library /wp-admin/upload.php1,420 ▲204.21 ▲0.0597.23 ▼13.3542.41 ▼1.37
Voltax Video /wp-admin/options-general.php?page=mm-video9212.1623.0830.67

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
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 fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AMP_Base_Sanitizer' not found in wp-content/plugins/voltax-video-player/src/MinuteMedia/Ovp/AmpSanitizer.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/voltax-video-player/views/partials-admin-form-settings.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: vms, voltax, minute media, videos, video

voltax-video-player/mm-video.php 92% from 13 tests

The main PHP file in "Voltax Video Player" ver. 1.6.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voltax-video-player.php" instead of "mm-video.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,000 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript40255241,902
PHP122455441,306
Sass13741539
JSON400128
JavaScript45251
SVG40048
HTML231918
CSS2118

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity19.12
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods77
▷ Static methods2532.47%
▷ Public methods5470.13%
▷ Protected methods1924.68%
▷ Private methods45.19%
Functions25
▷ Named functions14.00%
▷ Anonymous functions2496.00%
Constants37
▷ Global constants25.41%
▷ Class constants3594.59%
▷ Public constants35100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/playlist-icon.png3.72KB1.51KB▼ 59.53%
public/logo512.png9.44KB10.35KB0.00%
src/images/icon.png4.78KB1.57KB▼ 67.18%
public/logo192.png5.22KB5.57KB0.00%
build/logo192.png5.22KB5.57KB0.00%