90% video-wc-gallery

Code Review | Video Gallery for WooCommerce

WordPress plugin Video Gallery for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: video-wc-gallery
  • Plugin version: 1.17
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 21
  • Update frequency: every 11.7 days
  • Top authors: martinvalchev (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.26ms] Passed 4 tests

A check of server-side resources used by Video Gallery for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.21 ▼9.91
Dashboard /wp-admin3.31 ▼0.0448.67 ▼14.19
Posts /wp-admin/edit.php3.36 ▲0.0045.71 ▼3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.81 ▼13.15
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▲1.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
abl_vwg_version
widget_recent-posts
can_compress_scripts
vwg_settings_group
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Video Gallery for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.57 ▼0.161.83 ▲0.0337.47 ▼6.73
Dashboard /wp-admin2,195 ▲245.62 ▼0.0294.96 ▼1.6740.02 ▼4.42
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0140.52 ▲0.5536.04 ▼0.39
Add New Post /wp-admin/post-new.php1,531 ▲522.98 ▼0.30571.48 ▼21.7649.52 ▼10.17
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.0397.14 ▲2.6342.20 ▲1.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • vwg_settings_group
    • db_upgraded

Smoke tests Passed 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: product video, video files, media library, product page, woocommerce...

video-wc-gallery/video-wc-gallery.php 92% from 13 tests

The main PHP file in "Video Gallery for WooCommerce" ver. 1.17 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

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
Everything looks great! No dangerous files found in this plugin34,536 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
SVG601214,394
CSS163,898679,712
JavaScript199944509,196
PHP92333071,234

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin