Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+2193
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.86MB] [CPU: ▼49.44ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce HSS Extension for Streaming Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▼0.33 | 7.94 ▼35.28 |
Dashboard /wp-admin | 3.15 ▼0.15 | 11.08 ▼41.99 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 13.75 ▼31.66 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 10.46 ▼88.82 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 9.71 ▼22.98 |
HSS WOO Admin /wp-admin/options-general.php?page=hss_admin | 3.15 | 11.44 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
hss_woo_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce HSS Extension for Streaming Video
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲86 | 13.27 ▼1.10 | 4.81 ▲2.46 | 41.98 ▼4.18 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.02 | 106.19 ▼7.40 | 41.88 ▼6.31 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.04 ▲0.06 | 39.64 ▲2.93 | 35.52 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,548 ▲125 | 18.16 ▲0.70 | 607.33 ▼32.02 | 53.43 ▲8.57 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.04 | 96.26 ▼3.62 | 43.91 ▼3.01 |
HSS WOO Admin /wp-admin/options-general.php?page=hss_admin | 1,291 | 1.68 | 27.93 | 42.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+2193
Undefined index: player_location
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- hss_woo_options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+881
Undefined index: player_location
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+894
Undefined index: player_location_hook
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+900
Undefined index: player_width_default
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+900
Undefined index: player_height_default
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+906
Undefined index: player_width_mobile
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+906
Undefined index: player_height_mobile
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+918
Undefined index: player_responsive_max_width
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+975
Undefined index: jwplayer_license
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+1009
Undefined index: subtitle_font_size
- > GET request to /wp-admin/options-general.php?page=hss_admin
- > Notice in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php+1027
Undefined index: watching_trailer_text
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/woo-myaccount-videos.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/templates/purchased-videos-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/hss_woo_extensions.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/templates/view-purchased-video.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/templates/purchased-video-group-list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/woo-myaccount-view-video.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: streaming, sell, video, cart
woocommerce-hss-extension-for-streaming-video/hss_woo_extensions.php 92% from 13 tests
"WooCommerce HSS Extension for Streaming Video" version 3.31's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-hss-extension-for-streaming-video.php" instead of "hss_woo_extensions.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 plugin3,092 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 503 | 283 | 3,065 |
CSS | 1 | 5 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin