84% add-video-after-product-gallery

Code Review | Add Video After Product Gallery Woocommerce

WordPress plugin Add Video After Product Gallery Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: add-video-after-p...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Oct 15, 2023
  • Number of updates: 5
  • Update frequency: every 97.2 days
  • Top authors: rounakkumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,473 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Add Video After Product Gallery Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.36 ▼6.62
Dashboard /wp-admin3.31 ▲0.0148.96 ▼6.92
Posts /wp-admin/edit.php3.36 ▲0.0156.39 ▲4.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.46 ▼5.83
Media Library /wp-admin/upload.php3.23 ▲0.0139.66 ▲2.94

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Add Video After Product Gallery Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.171.56 ▼0.1541.62 ▼4.95
Dashboard /wp-admin2,195 ▲215.51 ▼0.0788.91 ▼11.0839.44 ▼8.48
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0237.09 ▲0.1233.06 ▼2.57
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.38688.70 ▲21.7077.75 ▲20.29
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.1097.99 ▼8.1247.45 ▼1.44

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-video-after-product-gallery/add_video_after_product_gallery.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: add video in product page woocommerce, add video in product gallery woocommerce, add video after product gallery woocomerce, woocommerce, gallery video...

add-video-after-product-gallery/add_video_after_product_gallery.php 92% from 13 tests

"Add Video After Product Gallery Woocommerce" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-video-after-product-gallery.php" instead of "add_video_after_product_gallery.php")

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
There were no executable files found in this plugin200 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1158200

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin