78% easydigitaldownloads-hoststreamsell-extension

Code Review | Easy Digital Downloads HSS Extension for Streaming Video

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

About plugin

  • Plugin page: easydigitaldownlo...
  • Plugin version: 3.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Dec 13, 2021
  • Number of updates: 75
  • Update frequency: every 42.7 days
  • Top authors: hoststreamsell (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /11,954 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: ▼4.90ms] 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.73 ▲0.2637.80 ▲0.01
Dashboard /wp-admin3.57 ▲0.2646.15 ▼1.21
Posts /wp-admin/edit.php3.68 ▲0.3244.56 ▼4.90
Add New Post /wp-admin/post-new.php6.15 ▲0.2686.82 ▼13.49
Media Library /wp-admin/upload.php3.49 ▲0.2637.47 ▲1.37
HSS Admin /wp-admin/options-general.php?page=hss_admin3.4433.08

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, 7 new options
New WordPress options
hss_options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

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 /2,835 ▲7414.21 ▼0.352.53 ▲0.8137.40 ▼3.15
Dashboard /wp-admin2,196 ▲165.56 ▼0.0783.61 ▼2.9338.63 ▼4.15
Posts /wp-admin/edit.php2,107 ▲101.99 ▲0.0534.86 ▼2.0832.71 ▼0.41
Add New Post /wp-admin/post-new.php1,534 ▲823.24 ▼0.08665.68 ▼75.9654.81 ▲3.60
Media Library /wp-admin/upload.php1,401 ▲14.19 ▲0.0395.62 ▼22.0240.26 ▼8.52
HSS Admin /wp-admin/options-general.php?page=hss_admin1,2072.0122.5238.87

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 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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 plugin_dir_url() in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/hss_edd_extensions.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php:3

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: cart, video, streaming, 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. 3.22 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,829 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22211141,823
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