74% video-slider-with-thumbnails

Code Review | Video Gallery

WordPress plugin Video Gallery scored74%from 54 tests.

About plugin

  • Plugin page: video-slider-with...
  • Plugin version: 1.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Nov 25, 2023
  • Number of updates: 32
  • Update frequency: every 70.6 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /16,262 total downloads

Benchmarks

Plugin footprint 65% 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.55MB] [CPU: ▼2.75ms] Passed 4 tests

A check of server-side resources used by Video Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5539.08 ▼3.14
Dashboard /wp-admin3.86 ▲0.5548.57 ▼0.89
Posts /wp-admin/edit.php3.97 ▲0.6247.79 ▼0.57
Add New Post /wp-admin/post-new.php6.44 ▲0.5590.55 ▼6.41
Media Library /wp-admin/upload.php3.78 ▲0.5535.34 ▲2.95
Preview Video Slider /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview3.7838.01
Manage Media /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_management3.7840.67
Slider Settings /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail3.7836.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 52 new files
Database: 1 new table, 8 new options
New tables
wp_e_gallery
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
wp_vgallery_thumbnail_msg
db_upgraded
widget_recent-posts
vgwt_video_slider_settings
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Video Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16313.42 ▼1.328.05 ▲6.3938.76 ▼4.92
Dashboard /wp-admin2,226 ▲465.63 ▼0.0993.09 ▼2.5743.04 ▲0.28
Posts /wp-admin/edit.php2,131 ▲341.97 ▼0.0539.14 ▲1.3335.97 ▲0.54
Add New Post /wp-admin/post-new.php1,551 ▲2523.26 ▼0.14611.14 ▼15.9155.12 ▲8.04
Media Library /wp-admin/upload.php1,425 ▲224.15 ▼0.0498.37 ▼0.3042.60 ▼0.30
Preview Video Slider /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview1,2585.03112.2978.15
Manage Media /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_management1,3064.4998.6086.51
Slider Settings /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail1,7774.3685.2578.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_e_gallery
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • wp_vgallery_thumbnail_msg
    • widget_recent-comments
    • vgwt_video_slider_settings
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'attrs')" "TypeError: Cannot read properties of undefined (reading 'attrs')\n at Object.updateOverlay (/wp-content/plugins/video-slider-with-thumbnails/js/video-gallery-js.js?ver=6.3.1:966:40)\n at Object.init (/wp-content/plugins/video-slider-with-thumbnails/js/video-gallery-js.js?ver=6.3.1:1423:18)\n at HTMLUListElement.\u003Canonymous> (/wp-content/plugins/video-slider-with-thumbnails/js/video-gallery-js.js?ver=6.3.1:1457:25)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at $.fn.galleryViewV (/wp-content/plugins/video-slider-with-thumbnails/js/video-gallery-js.js?ver=6.3.1:1455:25)\n at HTMLDivElement.\u003Canonymous> (/wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview:205:79)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview:204:69)" undefined
    • > GET request to /wp-admin/admin.php?page=responsive_video_slider_with_thumbnail_media_preview
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'attrs')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: youtube video slider, photo and video slider, video slider, wp video gallery, responsive video slider...

video-slider-with-thumbnails/video-slider-with-thumbnails.php 92% from 13 tests

The entry point to "Video Gallery" version 1.0.13 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,579 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP21,0131462,897
JavaScript43121271,387
CSS25643295

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods330.00%
▷ Protected methods00.00%
▷ Private methods770.00%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.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
34 PNG files occupy 0.26MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/themes/light/play.png0.37KB0.21KB▼ 43.09%
css/themes/dark/panel-prev.png0.35KB0.21KB▼ 40.50%
css/themes/dark/pause.png0.35KB0.20KB▼ 41.57%
css/themes/dark/panel-next-big.png0.67KB0.63KB▼ 5.81%
images/vl-box/cls.png1.12KB0.99KB▼ 12.03%