74% shoutcast-icecast-html5-radio-player

Code Review | Shoutcast Icecast HTML5 Radio Player

WordPress plugin Shoutcast Icecast HTML5 Radio Player scored 74% from 54 tests.

About plugin

  • Plugin page: shoutcast-icecast...
  • Plugin version: 2.1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2013
  • Latest release: Jun 14, 2021
  • Number of updates: 66
  • Update frequency: every 46.2 days
  • Top authors: svnlabs (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active / 123,950 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼37.41ms] Passed 4 tests

A check of server-side resources used by Shoutcast Icecast HTML5 Radio Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.74 ▼4.76
Dashboard /wp-admin3.03 ▼0.2721.43 ▼32.45
Posts /wp-admin/edit.php3.04 ▼0.3225.41 ▼22.77
Add New Post /wp-admin/post-new.php3.03 ▼2.8522.69 ▼82.63
Media Library /wp-admin/upload.php3.03 ▼0.1919.25 ▼11.79

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 14 new options
New WordPress options
shoutcast-icecast-html5-player-radiolink
widget_recent-comments
widget_theysaidso_widget
shoutcast-icecast-html5-player-twitter
shoutcast-icecast-html5-player-bcolor
db_upgraded
shoutcast-icecast-html5-player-facebook
theysaidso_admin_options
can_compress_scripts
shoutcast-icecast-html5-player-title
...

Browser metrics Passed 4 tests

A check of browser resources used by Shoutcast Icecast HTML5 Radio Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼0.984.97 ▲3.2941.41 ▼0.41
Dashboard /wp-admin2,213 ▲424.84 ▼0.05106.04 ▼8.7240.74 ▼0.47
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0339.68 ▼0.0336.88 ▲2.70
Add New Post /wp-admin/post-new.php1,517 ▼1717.86 ▼5.31670.10 ▲30.6768.48 ▲17.79
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.04106.53 ▲11.4247.67 ▲1.14
Shoutcast Icecast HTML5 Radio Player Options /wp-admin/shoutcast-icecast-html5-radio-player.php260.440.1016.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Shoutcast_Icecast_HTML5_Player::add_config_page() should not be called statically
  • Zombie WordPress options were found after uninstall: 14 options
    • shoutcast-icecast-html5-player-image
    • shoutcast-icecast-html5-player-radiolink
    • widget_recent-posts
    • shoutcast-icecast-html5-player-twitter
    • shoutcast-icecast-html5-player-facebook
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • shoutcast-icecast-html5-player-bcolor
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/shoutcast-icecast-html5-radio-player.php
    • > Network (severe)
    wp-admin/shoutcast-icecast-html5-radio-player.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (HTML5 MP3 Radio FM MP3 Stream Player), #2 (HTML5 MP3 Radio FM MP3 Stream Player Settings)
The official readme.txt is a good inspiration

shoutcast-icecast-html5-radio-player/shoutcast-icecast-html5-radio-player.php Passed 13 tests

The primary PHP file in "Shoutcast Icecast HTML5 Radio Player" version 2.1.6 is used by WordPress to initiate all plugin functionality
136 characters long description:
HTML5 MP3 Radio FM MP3 Stream Player can grab "Now Playing Song Information" on player as StreamTitle for Shoutcast and Icecast Streams.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected250 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP119334249
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity6.50
▷ Minimum method complexity2.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin