89% jigoshop-youtube-video-product-tab

Code Review | Jigoshop YouTube Video Product Tab

WordPress plugin Jigoshop YouTube Video Product Tab scored89%from 54 tests.

About plugin

  • Plugin page: jigoshop-youtube-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2014
  • Latest release: Aug 25, 2014
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /867 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Jigoshop YouTube Video Product Tab
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.39 ▼0.93
Dashboard /wp-admin3.31 ▲0.0151.71 ▲1.56
Posts /wp-admin/edit.php3.42 ▲0.0747.79 ▲2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.75 ▲11.06
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲1.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Jigoshop YouTube Video Product Tab
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.011.70 ▼0.1043.53 ▼4.16
Dashboard /wp-admin2,206 ▲184.84 ▼1.04105.91 ▼7.4835.96 ▼8.69
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0638.49 ▲2.4734.17 ▲0.27
Add New Post /wp-admin/post-new.php1,533 ▲1323.27 ▲0.00653.86 ▼23.7858.56 ▲4.14
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0997.03 ▼11.8741.66 ▼7.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Product page with a YouTube Video added.), #2 (Product page with a YouTube Video added and JWPlayer enabled.), #3 (How to add a YouTube video to your product.), #4 (Settings)
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

jigoshop-youtube-video-product-tab/jigoshop-youtube-video-product-tab.php 85% from 13 tests

"Jigoshop YouTube Video Product Tab" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin565 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16499565

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.63MB with 0.39MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png20.52KB11.18KB▼ 45.50%
screenshot-3.png41.96KB16.03KB▼ 61.80%
screenshot-1.png275.07KB85.85KB▼ 68.79%
screenshot-2.png307.05KB93.30KB▼ 69.61%