83% product-video-gallery-slider-for-woocommerce

Code Review | Product Video Gallery for Woocommerce

WordPress plugin Product Video Gallery for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: product-video-gal...
  • Plugin version: 1.4.2.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2019
  • Latest release: Sep 19, 2023
  • Number of updates: 73
  • Update frequency: every 19.8 days
  • Top authors: nikhilgadhiya (100%)

Code review

54 tests

User reviews

73 reviews

Install metrics

10,000+ active /211,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.88ms] Passed 4 tests

Analyzing server-side resources used by Product Video Gallery for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.18 ▼5.90
Dashboard /wp-admin3.54 ▲0.2443.94 ▼4.41
Posts /wp-admin/edit.php3.64 ▲0.2952.06 ▲6.39
Add New Post /wp-admin/post-new.php6.22 ▲0.3483.62 ▼17.38
Media Library /wp-admin/upload.php3.48 ▲0.2534.73 ▲0.17
Product Video WC /wp-admin/edit.php?post_type=product&page=wc-product-video3.1824.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 31 new options
New WordPress options
nickx_zoomlevel
nickx_arrow_thumb
nickx_show_lightbox
nickx_vid_autoplay
nickx_hide_thumbnails
nickx_gallery_action
widget_theysaidso_widget
can_compress_scripts
nickx_slider_swipe
nickx_arrowdisable
...

Browser metrics Passed 4 tests

A check of browser resources used by Product Video Gallery for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.45 ▲0.181.76 ▼0.5338.50 ▼11.03
Dashboard /wp-admin2,218 ▲305.89 ▲1.03108.61 ▲1.2543.00 ▲2.52
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0640.44 ▲2.1237.27 ▲0.91
Add New Post /wp-admin/post-new.php1,544 ▲2523.36 ▲2.29656.02 ▲52.9654.44 ▲4.08
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.04100.35 ▼4.2344.37 ▲0.65
Product Video WC /wp-admin/edit.php?post_type=product&page=wc-product-video280.440.073.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 31 options
    • nickx_arrowbgcolor
    • nickx_hide_thumbnails
    • nickx_thumbnails_to_show
    • nickx_adaptive_height
    • nickx_show_lightbox
    • nickx_show_only_video
    • nickx_slider_responsive
    • widget_recent-comments
    • nickx_arrowdisable
    • nickx_slider_swipe
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=product&page=wc-product-video
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=wc-product-video - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

product-video-gallery-slider-for-woocommerce/product-video-gallery-slider-for-woocommerce.php 85% from 13 tests

"Product Video Gallery for Woocommerce" version 1.4.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "2.3")

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
There were no executable files found in this plugin5,796 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,1806524,302
PHP616361,203
CSS201290
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity42.25
▷ Minimum class complexity12.00
▷ Maximum class complexity110.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin