80% seedx-video-gallery-for-woocommerce

Code Review | SeedX Video Gallery for WooCommerce

WordPress plugin SeedX Video Gallery for WooCommerce scored80%from 54 tests.

About plugin

  • Plugin page: seedx-video-galle...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Aug 4, 2018
  • Latest release: Aug 7, 2018
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: justinseedx (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /918 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: ▼1.91MB] [CPU: ▼55.60ms] Passed 4 tests

A check of server-side resources used by SeedX Video Gallery for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.384.05 ▼34.61
Dashboard /wp-admin2.11 ▼1.246.78 ▼52.78
Posts /wp-admin/edit.php2.11 ▼1.256.40 ▼38.86
Add New Post /wp-admin/post-new.php2.11 ▼3.786.57 ▼96.15
Media Library /wp-admin/upload.php2.11 ▼1.124.91 ▼30.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SeedX Video Gallery for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.83 ▼0.575.26 ▲3.4837.29 ▼5.55
Dashboard /wp-admin2,219 ▲274.92 ▲0.00111.28 ▲5.5044.92 ▲3.05
Posts /wp-admin/edit.php2,272 ▲1863.54 ▲1.5394.73 ▲57.1735.27 ▲2.94
Add New Post /wp-admin/post-new.php1,543 ▲2918.28 ▲0.49618.23 ▼57.1834.39 ▼18.93
Media Library /wp-admin/upload.php1,389 ▲44.15 ▲0.0183.44 ▼19.4143.54 ▼0.97

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the slick handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: video, gallery, woocommerce, slider

seedx-video-gallery-for-woocommerce/seedx-video-gallery-for-woocommerce.php Passed 13 tests

The entry point to "SeedX Video Gallery for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
109 characters long description:
This plugin replace default WooCommerce gallery with custom gallery, where you can use both images and video.

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
Success! There were no dangerous files found in this plugin2,600 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3883572,158
CSS4555311
PHP16145118
SVG11013

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.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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin