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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.39 ▼0.93 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.71 ▲1.56 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 47.79 ▲2.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.75 ▲11.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.01 | 1.70 ▼0.10 | 43.53 ▼4.16 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 105.91 ▼7.48 | 35.96 ▼8.69 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.06 | 38.49 ▲2.47 | 34.17 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.27 ▲0.00 | 653.86 ▼23.78 | 58.56 ▲4.14 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.09 | 97.03 ▼11.87 | 41.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 99 | 565 |
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 code | 0.43 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 20.52KB | 11.18KB | ▼ 45.50% |
screenshot-3.png | 41.96KB | 16.03KB | ▼ 61.80% |
screenshot-1.png | 275.07KB | 85.85KB | ▼ 68.79% |
screenshot-2.png | 307.05KB | 93.30KB | ▼ 69.61% |