Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.54ms] Passed 4 tests
A check of server-side resources used by WooCommerce Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.93 ▼6.51 |
Dashboard /wp-admin | 3.32 ▼0.02 | 52.74 ▼16.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.98 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.74 ▼7.89 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.88 ▲0.76 |
WooCommerce Video /wp-admin/options-general.php?page=woocommerce-video-settings | 3.26 | 33.78 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Video
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.26 ▼0.10 | 1.70 ▼0.52 | 41.16 ▼2.03 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.16 | 86.50 ▼10.66 | 39.48 ▼8.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.03 | 35.78 ▼2.51 | 35.52 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.26 ▲5.22 | 628.16 ▼13.71 | 55.65 ▼7.66 |
Media Library /wp-admin/upload.php | 1,395 ▼2 | 4.15 ▼0.09 | 98.76 ▼7.68 | 43.96 ▼5.88 |
WooCommerce Video /wp-admin/options-general.php?page=woocommerce-video-settings | 878 | 2.06 | 24.37 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-video-settings
- > Notice in wp-content/plugins/video-for-woocommerce/admin/partials/woocommerce-video-admin-display.php+34
Undefined variable: selected_position
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woocommerce-video-settings
- > Notice in wp-content/plugins/video-for-woocommerce/admin/partials/woocommerce-video-admin-display.php+63
Undefined variable: selected_icon
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/video-for-woocommerce/public/partials/woocommerce-video-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Display on the theme Twenty Twenty), #2 (Settings), #3 (WooCommerce Product with Youtube URL video field)
video-for-woocommerce/woocommerce-video.php 85% from 13 tests
"WooCommerce Video" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("video-for-woocommerce.php" instead of "woocommerce-video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin393 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 176 | 577 | 343 |
PO File | 1 | 17 | 17 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.87MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 126.35KB | 127.18KB | 0.00% |
public/img/camera.png | 1.50KB | 1.43KB | ▼ 5.07% |
screenshot-3.png | 18.92KB | 9.21KB | ▼ 51.35% |
public/img/video-red-2.png | 113.44KB | 47.77KB | ▼ 57.89% |
public/img/youtube-black.png | 3.18KB | 2.38KB | ▼ 25.19% |