10% woocommerce-hss-extension-for-streaming-video

Code Review | WooCommerce HSS Extension for Streaming Video

WordPress plugin WooCommerce HSS Extension for Streaming Video scored 10% from 54 tests.

About plugin

  • Plugin page: woocommerce-hss-e...
  • Plugin version: 3.31
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2013
  • Latest release: Dec 20, 2022
  • Number of updates: 118
  • Update frequency: every 30.4 days
  • Top authors: hoststreamsell (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 14,862 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.13 ▼0.337.94 ▼35.28
Dashboard /wp-admin3.15 ▼0.1511.08 ▼41.99
Posts /wp-admin/edit.php3.15 ▼0.2113.75 ▼31.66
Add New Post /wp-admin/post-new.php3.15 ▼2.7410.46 ▼88.82
Media Library /wp-admin/upload.php3.15 ▼0.089.71 ▼22.98
HSS WOO Admin /wp-admin/options-general.php?page=hss_admin3.1511.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8613.27 ▼1.104.81 ▲2.4641.98 ▼4.18
Dashboard /wp-admin2,210 ▲225.81 ▲0.02106.19 ▼7.4041.88 ▼6.31
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0639.64 ▲2.9335.52 ▲1.34
Add New Post /wp-admin/post-new.php1,548 ▲12518.16 ▲0.70607.33 ▼32.0253.43 ▲8.57
Media Library /wp-admin/upload.php1,395 ▲44.20 ▼0.0496.26 ▼3.6243.91 ▼3.01
HSS WOO Admin /wp-admin/options-general.php?page=hss_admin1,2911.6827.9342.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP75032833,065
CSS15027

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 code0.34
Average class complexity12.50
▷ Minimum class complexity10.00
▷ Maximum class complexity15.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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