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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.59ms] Passed 4 tests
Server-side resources used by WooCommerce HTML5 Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.01 ▼0.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.81 ▼8.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.39 ▼8.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.58 ▼5.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.77 ▼0.26 |
WooCommerce Html5 Video /wp-admin/options-general.php?page=html5-video-settings | 3.00 | 24.05 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce HTML5 Video: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.10 | 1.58 ▼0.29 | 40.52 ▲0.61 |
Dashboard /wp-admin | 2,203 ▲15 | 5.94 ▲1.04 | 92.37 ▼12.16 | 39.13 ▼3.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.04 | 32.69 ▼3.48 | 33.96 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.40 ▼4.92 | 623.08 ▼39.20 | 56.61 ▼13.08 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.21 ▲0.05 | 91.33 ▼11.30 | 40.07 ▼7.45 |
WooCommerce Html5 Video /wp-admin/options-general.php?page=html5-video-settings | 28 | 0.44 | 0.13 | 3.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-html5-video/WooCommerceHTML5Video.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=html5-video-settings
- > Network (severe)
wp-admin/options-general.php?page=html5-video-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: html5 video, woocommerce video, product video, mp4, online store...
woocommerce-html5-video/WooCommerceHTML5Video.php 85% from 13 tests
The main PHP file in "WooCommerce HTML5 Video" ver. 1.7.10 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-html5-video.php" instead of "WooCommerceHTML5Video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,864 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 92 | 143 | 1,080 |
JavaScript | 5 | 57 | 31 | 769 |
PO File | 4 | 203 | 258 | 504 |
CSS | 4 | 26 | 11 | 387 |
JSON | 1 | 0 | 0 | 63 |
HTML | 1 | 3 | 2 | 50 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 6.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 24 | 100.00% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete_icon.png | 3.30KB | 0.54KB | ▼ 83.61% |
images/icon_video.png | 0.20KB | 0.24KB | 0.00% |
images/twitter.png | 2.94KB | 1.80KB | ▼ 38.81% |
images/gplus.png | 3.21KB | 1.80KB | ▼ 43.88% |
images/info.png | 3.38KB | 0.95KB | ▼ 72.07% |