89% html5-videogallery-plus-player

Code Review | Video gallery and Player

WordPress plugin Video gallery and Player scored89%from 54 tests.

About plugin

  • Plugin page: html5-videogaller...
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2013
  • Latest release: Nov 27, 2023
  • Number of updates: 109
  • Update frequency: every 33.8 days
  • Top authors: anoopranawat (76.15%)wponlinesupport (24.77%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /103,363 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.36MB] [CPU: ▼4.47ms] Passed 4 tests

This is a short check of server-side resources used by Video gallery and Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3140.59 ▼4.65
Dashboard /wp-admin3.73 ▲0.3951.18 ▼11.60
Posts /wp-admin/edit.php3.79 ▲0.4350.91 ▼2.54
Add New Post /wp-admin/post-new.php6.28 ▲0.3998.13 ▲1.83
Media Library /wp-admin/upload.php3.59 ▲0.3635.58 ▲0.90

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 8 new options
New WordPress options
wpos_anylc_redirect
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
wpos_anylc_site_uid

Browser metrics Passed 4 tests

Video gallery and Player: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,656 ▼1,08011.55 ▼3.1612.73 ▲11.1217.01 ▼29.24
Dashboard /wp-admin2,221 ▲445.65 ▼0.02102.44 ▲5.7853.04 ▲11.31
Posts /wp-admin/edit.php2,125 ▲252.00 ▼0.0138.99 ▼0.5134.94 ▼0.39
Add New Post /wp-admin/post-new.php6,221 ▲4,69518.88 ▼4.17832.20 ▲216.5056.77 ▲2.90
Media Library /wp-admin/upload.php1,425 ▲314.22 ▼0.0199.33 ▲3.1039.55 ▼2.75

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • wpos_anylc_redirect
    • widget_recent-posts
    • can_compress_scripts
    • wpos_anylc_site_uid
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

html5-videogallery-plus-player/html5video.php 85% from 13 tests

"Video gallery and Player" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("html5-videogallery-plus-player.php" instead of "html5video.php")

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
Everything looks great! No dangerous files found in this plugin4,140 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP235788872,428
CSS7234111,541
JavaScript73910129
SVG10040
JSON2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.25
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods48
▷ Static methods24.17%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/image-upgrade.png166.27KB48.08KB▼ 71.08%
wpos-plugins/assets/images/essentialplugin-logo.png7.62KB3.82KB▼ 49.88%
wpos-plugins/assets/images/inbound50-by-50.png2.09KB1.95KB▼ 6.78%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
wpos-analytics/assets/images/icon.png7.31KB1.42KB▼ 80.64%