10% hss-embed-streaming-video

Code Review | HSS Embed Streaming Video

WordPress plugin HSS Embed Streaming Video scored10%from 54 tests.

About plugin

  • Plugin page: hss-embed-streami...
  • Plugin version: 3.23
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2013
  • Latest release: Oct 28, 2021
  • Number of updates: 45
  • Update frequency: every 64.8 days
  • Top authors: hoststreamsell (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /4,941 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+36
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.26ms] Passed 4 tests

Server-side resources used by HSS Embed Streaming Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.27 ▲5.16
Dashboard /wp-admin3.47 ▲0.1650.41 ▼1.26
Posts /wp-admin/edit.php3.52 ▲0.1653.52 ▲1.80
Add New Post /wp-admin/post-new.php6.05 ▲0.1687.25 ▼8.05
Media Library /wp-admin/upload.php3.39 ▲0.1639.18 ▲2.47
HSS Embed Admin /wp-admin/options-general.php?page=hss_embed_admin3.3434.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
hss_embed_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for HSS Embed Streaming Video
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.25 ▼0.022.43 ▲0.4343.88 ▼4.45
Dashboard /wp-admin2,202 ▲285.61 ▲0.0484.47 ▼7.3340.48 ▲1.00
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0338.66 ▲1.8535.24 ▼1.88
Add New Post /wp-admin/post-new.php1,534 ▲823.25 ▲0.12673.26 ▼22.8455.04 ▲0.70
Media Library /wp-admin/upload.php1,401 ▲44.17 ▼0.01131.40 ▲30.2951.86 ▲6.53
HSS Embed Admin /wp-admin/options-general.php?page=hss_embed_admin1,0751.9923.4343.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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
    • > GET request to /wp-admin/options-general.php?page=hss_embed_admin
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+228
    Undefined index: player_width_default
    • > GET request to /wp-admin/options-general.php?page=hss_embed_admin
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+228
    Undefined index: player_height_default
    • > GET request to /wp-admin/options-general.php?page=hss_embed_admin
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+246
    Undefined index: player_width_mobile
    • > GET request to /wp-admin/options-general.php?page=hss_embed_admin
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+246
    Undefined index: player_height_mobile
    • > GET request to /wp-admin/options-general.php?page=hss_embed_admin
    • > Notice in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php+309
    Undefined index: jwplayer_license

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hss-embed-streaming-video/hss-embed-streaming-video.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: video, streaming

hss-embed-streaming-video/hss-embed-streaming-video.php Passed 13 tests

The primary PHP file in "HSS Embed Streaming Video" version 3.23 is used by WordPress to initiate all plugin functionality
59 characters long description:
Provide access to Streaming Video in your WordPress Website

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
No dangerous file extensions were detected1,154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1203491,143
CSS13011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin