74% wp-responsive-video-gallery-with-lightbox

Code Review | video carousel slider with lightbox

WordPress plugin video carousel slider with lightbox scored74%from 54 tests.

About plugin

  • Plugin page: wp-responsive-vid...
  • Plugin version: 1.0.24
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Sep 18, 2023
  • Number of updates: 72
  • Update frequency: every 45.0 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /45,573 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼0.67ms] Passed 4 tests

A check of server-side resources used by video carousel slider with lightbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5043.68 ▼2.38
Dashboard /wp-admin3.81 ▲0.5058.96 ▲3.27
Posts /wp-admin/edit.php3.92 ▲0.5656.57 ▲1.42
Add New Post /wp-admin/post-new.php6.39 ▲0.5091.37 ▼1.33
Media Library /wp-admin/upload.php3.72 ▲0.5043.57 ▼0.41
Manage Videos /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox_video_management3.7346.30
Carousel Settings /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox3.7245.88
Preview Gallery /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox_video_preview3.7345.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for video carousel slider with lightbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.24 ▼0.121.60 ▼0.5641.56 ▼0.39
Dashboard /wp-admin2,223 ▲495.52 ▼0.1599.38 ▼27.0953.64 ▲9.48
Posts /wp-admin/edit.php2,128 ▲282.03 ▲0.0539.13 ▲1.6035.47 ▲0.56
Add New Post /wp-admin/post-new.php1,551 ▲2523.34 ▼0.11678.48 ▼22.8852.07 ▲0.17
Media Library /wp-admin/upload.php1,431 ▲314.20 ▲0.10108.41 ▼11.3146.76 ▼0.51
Manage Videos /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox_video_management1,3043.3546.7660.74
Carousel Settings /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox1,7575.01104.0365.69
Preview Gallery /wp-admin/admin.php?page=responsive_video_gallery_with_lightbox_video_preview1,1583.6951.5026.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables detected upon uninstall: 1 table
    • wp_responsive_video_gallery_plus_responsive_lightbox
  • This plugin does not fully uninstall, leaving 8 options in the database
    • responsive_video_gallery_plus_lightbox_messages
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • responsive_video_gallery_slider_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-responsive-video-gallery-with-lightbox/wp-responsive-video-gallery-with-lightbox.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: video thumbnail slider, video gallery, video carousel, vimeo slider, youtube slider

wp-responsive-video-gallery-with-lightbox/wp-responsive-video-gallery-with-lightbox.php Passed 13 tests

The primary PHP file in "video carousel slider with lightbox" version 1.0.24 is used by WordPress to initiate all plugin functionality
111 characters long description:
This is beautiful responsive carousel slider with responsive lightbox.Add any number of video from admin panel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,412 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1862842,872
JavaScript34965832,091
CSS38247449

PHP code Passed 2 tests

An short overview of 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.27
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%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/desc.png0.16KB0.12KB▼ 23.31%
images/controls.png2.45KB1.26KB▼ 48.48%
images/g-suite-promo-code-4.png59.03KB17.19KB▼ 70.88%
images/controls_fnc.png1.33KB1.42KB0.00%
images/close.png4.08KB1.11KB▼ 72.86%