78% shoutcast-and-icecast-html5-web-radio-player-by-yesstreaming-com

Code Review | Shoutcast and Icecast HTML5 Web Radio Player by YesStreaming.com

WordPress plugin Shoutcast and Icecast HTML5 Web Radio Player by YesStreaming.com scored78%from 54 tests.

About plugin

  • Plugin page: shoutcast-and-ice...
  • Plugin version: 3.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 21, 2020
  • Latest release: Oct 10, 2023
  • Number of updates: 48
  • Update frequency: every 22.0 days
  • Top authors: yesstreamingdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /11,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.54ms] Passed 4 tests

Analyzing server-side resources used by Shoutcast and Icecast HTML5 Web Radio Player by YesStreaming.com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.43 ▼3.21
Dashboard /wp-admin3.43 ▲0.1244.30 ▼4.69
Posts /wp-admin/edit.php3.54 ▲0.1842.98 ▼3.02
Add New Post /wp-admin/post-new.php6.03 ▲0.1480.28 ▼15.22
Media Library /wp-admin/upload.php3.35 ▲0.1239.97 ▲3.25
All Radio Players /wp-admin/edit.php?post_type=yeshtml5_player_lite3.3936.03
Add New Player /wp-admin/post-new.php?post_type=yeshtml5_player_lite3.4144.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_yes_html5_player_lite

Browser metrics Passed 4 tests

Shoutcast and Icecast HTML5 Web Radio Player by YesStreaming.com: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18713.73 ▼0.686.87 ▲5.1658.59 ▲13.93
Dashboard /wp-admin2,252 ▲815.83 ▲0.3185.75 ▼13.7362.32 ▲15.43
Posts /wp-admin/edit.php2,159 ▲562.25 ▲0.2936.41 ▼3.0159.45 ▲26.28
Add New Post /wp-admin/post-new.php1,406 ▼13016.58 ▼1.54565.71 ▼89.5751.92 ▼19.19
Media Library /wp-admin/upload.php1,456 ▲534.36 ▲0.1495.60 ▼4.7863.07 ▲21.79
All Radio Players /wp-admin/edit.php?post_type=yeshtml5_player_lite1,1282.1532.2749.24
Add New Player /wp-admin/post-new.php?post_type=yeshtml5_player_lite1,8883.8765.9758.08

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_yes_html5_player_lite
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shoutcast-and-icecast-html5-web-radio-player-by-yesstreaming-com/plugin2.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shoutcast-and-icecast-html5-web-radio-player-by-yesstreaming-com/widgetClass.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=yeshtml5_player_lite
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=yeshtml5_player_lite 44:21 Uncaught TypeError: Cannot read properties of undefined (reading 'noConflict')
    • > GET request to /wp-admin/post-new.php?post_type=yeshtml5_player_lite
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=yeshtml5_player_lite 53:21 Uncaught TypeError: Cannot read properties of undefined (reading 'noConflict')
    • > GET request to /wp-admin/post-new.php?post_type=yeshtml5_player_lite
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=yeshtml5_player_lite 392:49 Uncaught SyntaxError: Unexpected token ','

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Invalid version format
  • Contributors: Plugin contributors not specified
The official readme.txt might help

shoutcast-and-icecast-html5-web-radio-player-by-yesstreaming-com/plugin2.php 92% from 13 tests

The primary PHP file in "Shoutcast and Icecast HTML5 Web Radio Player by YesStreaming.com" version 3.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shoutcast-and-icecast-html5-web-radio-player-by-yesstreaming-com.php" instead of "plugin2.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,769 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23561851,448
PHP27045321

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.50
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin