74% ls-icecast-onair

Code Review | LS IceCast ONAIR

WordPress plugin LS IceCast ONAIR scored74%from 54 tests.

About plugin

  • Plugin page: ls-icecast-onair
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 20, 2013
  • Latest release: Nov 27, 2013
  • Number of updates: 5
  • Update frequency: every 62.2 days
  • Top authors: ladislav.soukup@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,134 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.93MB] [CPU: ▼58.95ms] Passed 4 tests

Analyzing server-side resources used by LS IceCast ONAIR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.48 ▼35.12
Dashboard /wp-admin2.09 ▼1.255.25 ▼57.48
Posts /wp-admin/edit.php2.09 ▼1.275.74 ▼38.12
Add New Post /wp-admin/post-new.php2.09 ▼3.806.41 ▼105.08
Media Library /wp-admin/upload.php2.09 ▼1.146.61 ▼25.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
ls_icecast_errorlog

Browser metrics Passed 4 tests

LS IceCast ONAIR: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.66 ▼0.521.73 ▼0.0740.17 ▼3.81
Dashboard /wp-admin2,224 ▲325.83 ▲0.89104.15 ▼0.0475.05 ▲34.56
Posts /wp-admin/edit.php2,107 ▲151.98 ▲0.0035.32 ▼6.9035.47 ▼1.70
Add New Post /wp-admin/post-new.php1,527 ▼1517.64 ▼0.50692.16 ▲83.4563.39 ▲11.35
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.0298.42 ▲3.2082.98 ▲39.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ls_icecast_onair handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • ls_icecast_errorlog
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/ls-icecast-onair/ls-icecast-onair.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: onair, shortcode, icecast, current, radio...

ls-icecast-onair/ls-icecast-onair.php Passed 13 tests

"LS IceCast ONAIR" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Shortcode to display onair song fetched from IceCast server (v2).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12113102
XSLT10021
JavaScript10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icecast_logo.png3.61KB0.86KB▼ 76.23%