84% easy-video-gallery

Code Review | Easy Video Gallery

WordPress plugin Easy Video Gallery scored 84% from 54 tests.

About plugin

  • Plugin page: easy-video-gallery
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Oct 15, 2016
  • Number of updates: 12
  • Update frequency: every 61.4 days
  • Top authors: roger.conley (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,932 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.73ms] Passed 4 tests

An overview of server-side resources used by Easy Video Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.80 ▼1.27
Dashboard /wp-admin3.38 ▲0.0747.51 ▲0.59
Posts /wp-admin/edit.php3.43 ▲0.0749.20 ▲6.19
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.55 ▼12.58
Media Library /wp-admin/upload.php3.30 ▲0.0737.08 ▲2.33
Help /wp-admin/edit.php?post_type=ev_gallery&page=evg-help3.2732.31
Add New /wp-admin/post-new.php?post_type=ev_gallery3.3444.30
All Videos /wp-admin/edit.php?post_type=ev_gallery3.3437.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Video Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.89 ▼0.559.36 ▲7.6242.79 ▲2.30
Dashboard /wp-admin2,243 ▲585.82 ▼0.0893.63 ▼12.1237.79 ▼7.80
Posts /wp-admin/edit.php2,123 ▲342.01 ▼0.0436.14 ▲0.1730.79 ▼1.00
Add New Post /wp-admin/post-new.php1,565 ▲5123.33 ▲5.93672.57 ▼27.3652.06 ▼1.69
Media Library /wp-admin/upload.php1,425 ▲344.23 ▲0.0995.99 ▼5.2342.99 ▲1.58
Help /wp-admin/edit.php?post_type=ev_gallery&page=evg-help8502.0123.8027.01
Add New /wp-admin/post-new.php?post_type=ev_gallery1,4762.5248.8656.56
All Videos /wp-admin/edit.php?post_type=ev_gallery1,0872.0129.3728.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-video-gallery/admin.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Add a galley in he post type editor. I only 1 video is entered just a player will show.), #2 (Use he page editor tool to enter the shortcode. Video can be entered in the shortcode or the posttype editor)
Please take inspiration from this readme.txt

easy-video-gallery/easy-video-gallery.php Passed 13 tests

Analyzing the main PHP file in "Easy Video Gallery" version 2.0
67 characters long description:
Easily create video player and gallery for vimeo and youtube videos

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
No dangerous file extensions were detected472 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45522345
JavaScript25078
CSS11049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.05KB8.01KB▼ 50.09%
screenshot-2.png14.45KB7.87KB▼ 45.53%