78% easydigitaldownloads-hoststreamsell-extension

Code Review | Easy Digital Downloads HSS Extension for Streaming Video

WordPress plugin Easy Digital Downloads HSS Extension for Streaming Video scored 78% from 54 tests.

About plugin

  • Plugin page: easydigitaldownlo...
  • Plugin version: 2.31
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7.1
  • WordPress version: 5.8.1
  • First release: Mar 12, 2013
  • Latest release: May 4, 2021
  • Number of updates: 74
  • Update frequency: every 40.2 days
  • Top authors: hoststreamsell (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 8,710 total downloads

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 gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼139.46ms] Passed 4 tests

An overview of server-side resources used by Easy Digital Downloads HSS Extension for Streaming Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.2737.17 ▲4.40
Dashboard /wp-admin3.32 ▲0.2747.02 ▲3.33
Posts /wp-admin/edit.php3.38 ▲0.2747.65 ▲4.79
Add New Post /wp-admin/post-new.php5.68 ▲0.2590.70 ▼566.95
Media Library /wp-admin/upload.php3.27 ▲0.2635.75 ▲1.37
HSS Admin /wp-admin/options-general.php?page=hss_admin3.2130.24

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
hss_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Digital Downloads HSS Extension for Streaming Video
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10616.00 ▲0.489.69 ▼0.8747.69 ▼6.31
Dashboard /wp-admin2,976 ▲456.01 ▼0.17137.99 ▼6.68111.70 ▼3.59
Posts /wp-admin/edit.php2,747 ▲112.84 ▲0.0065.01 ▲2.9887.94 ▲9.10
Add New Post /wp-admin/post-new.php1,882 ▲38019.15 ▲0.50372.11 ▼2.75111.06 ▲3.57
Media Library /wp-admin/upload.php1,818 ▼45.05 ▲0.04148.23 ▼4.07119.24 ▲0.64
HSS Admin /wp-admin/options-general.php?page=hss_admin1,5952.2453.4187.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • hss_options

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
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+394
    Undefined index: player_width_default
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+394
    Undefined index: player_height_default
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+400
    Undefined index: player_width_mobile
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+400
    Undefined index: player_height_mobile
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+412
    Undefined index: player_responsive_max_width
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+450
    Undefined index: jwplayer_license
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+485
    Undefined index: subtitle_font_size
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+508
    Undefined index: jwplayer_stretching
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+527
    Undefined index: logging
    • > GET request to /wp-admin/options-general.php?page=hss_admin
    • > Notice in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php+544
    Undefined index: watching_trailer_text

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/hss_edd_extensions.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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: video, streaming, cart, sell

easydigitaldownloads-hoststreamsell-extension/hss_edd_extensions.php 92% from 13 tests

The principal PHP file in "Easy Digital Downloads HSS Extension for Streaming Video" v. 2.31 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easydigitaldownloads-hoststreamsell-extension.php" instead of "hss_edd_extensions.php")

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
No dangerous file extensions were detected1,830 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22201141,824
CSS1206

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin