84% woo-product-video

Code Review | Woo Product Video

WordPress plugin Woo Product Video scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-video
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: Jun 13, 2018
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: molay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.17ms] Passed 4 tests

An overview of server-side resources used by Woo Product Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.52 ▼6.27
Dashboard /wp-admin3.34 ▼0.0144.78 ▼19.00
Posts /wp-admin/edit.php3.39 ▲0.0354.97 ▲10.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.66 ▼9.56
Media Library /wp-admin/upload.php3.26 ▲0.0338.83 ▲6.17

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Product Video
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5214.44 ▲0.071.80 ▼0.0541.94 ▼1.62
Dashboard /wp-admin2,209 ▲214.84 ▼0.97103.38 ▼12.1740.49 ▼6.35
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0436.07 ▼3.1739.06 ▲1.15
Add New Post /wp-admin/post-new.php1,514 ▼1917.70 ▼5.64646.05 ▼33.7152.25 ▼4.50
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.10104.43 ▲6.0744.89 ▲0.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
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 remove_action() in wp-content/plugins/woo-product-video/woo-product-video.php:15

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: product, woocommerce product video, wordpress, product video, woocommerce...

woo-product-video/woo-product-video.php Passed 13 tests

"Woo Product Video" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
Adding additional tab for product video in product details page for each product.

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
No dangerous file extensions were detected167 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13539167

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin