93% easy-video-gallery-responsive-html5

Code Review | Easy Video Gallery Responsive HTML5

WordPress plugin Easy Video Gallery Responsive HTML5 scored 93% from 54 tests.

About plugin

  • Plugin page: easy-video-galler...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 5.8.1
  • First release: Jun 4, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wpFad (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 5,619 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼139.74ms] Passed 4 tests

Analyzing server-side resources used by Easy Video Gallery Responsive HTML5
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1843.53 ▲19.50
Dashboard /wp-admin3.14 ▲0.0843.89 ▲1.04
Posts /wp-admin/edit.php3.19 ▲0.0845.34 ▲8.55
Add New Post /wp-admin/post-new.php5.50 ▲0.0790.31 ▼573.60
Media Library /wp-admin/upload.php3.08 ▲0.0837.18 ▲5.05
Galleries /wp-admin/edit-tags.php?taxonomy=egallery&post_type=evideo3.0836.30
Add New /wp-admin/post-new.php?post_type=evideo3.1950.01
All Videos /wp-admin/edit.php?post_type=evideo3.1240.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Video Gallery Responsive HTML5
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲26016.59 ▲0.9616.05 ▲8.0447.33 ▲5.25
Dashboard /wp-admin3,019 ▲855.92 ▼0.05134.97 ▼8.94112.98 ▲1.46
Posts /wp-admin/edit.php2,785 ▲462.70 ▲0.0167.67 ▲1.9894.24 ▲10.30
Add New Post /wp-admin/post-new.php1,719 ▲11518.81 ▲0.01346.67 ▼16.16106.96 ▼0.28
Media Library /wp-admin/upload.php1,853 ▲435.02 ▼0.02146.76 ▲6.28116.98 ▼7.90
Galleries /wp-admin/edit-tags.php?taxonomy=egallery&post_type=evideo1,7572.4961.0278.25
Add New /wp-admin/post-new.php?post_type=evideo3,0639.19215.40148.29
All Videos /wp-admin/edit.php?post_type=evideo1,4542.6363.3174.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-video-gallery-responsive-html5/shortcode.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery-responsive-html5/easy-video.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery-responsive-html5/ajax.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery-responsive-html5/admin.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (`/assets/screenshot-1.png`), #2 (`/assets/screenshot-2.png`), #3 (`/assets/screenshot-3.png`)
The official readme.txt is a good inspiration

easy-video-gallery-responsive-html5/easy-video.php 85% from 13 tests

The primary PHP file in "Easy Video Gallery Responsive HTML5" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 448 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-video-gallery-responsive-html5.php" instead of "easy-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
No dangerous file extensions were detected479 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP55364266
CSS170107
JavaScript2100106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 2.24MB with 1.38MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png2,179.96KB396.49KB▼ 81.81%
screenshot-2.png60.83KB29.64KB▼ 51.28%
screenshot-1.png51.73KB25.18KB▼ 51.33%