84% wpradio

Code Review | WPRadio - Wordpress Radio Streaming Plugin

WordPress plugin WPRadio - Wordpress Radio Streaming Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wpradio
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Nov 4, 2023
  • Number of updates: 8
  • Update frequency: every 126.4 days
  • Top authors: casterfm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,810 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▲1.73ms] Passed 4 tests

Server-side resources used by WPRadio - Wordpress Radio Streaming Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2147.24 ▲6.09
Dashboard /wp-admin3.58 ▲0.2747.59 ▼0.01
Posts /wp-admin/edit.php3.69 ▲0.3349.70 ▲1.81
Add New Post /wp-admin/post-new.php6.18 ▲0.2990.05 ▲2.16
Media Library /wp-admin/upload.php3.50 ▲0.2736.84 ▲2.96
Widgets /wp-admin/admin.php?page=wpradio_widgets3.5335.14
Dashboard /wp-admin/admin.php?page=wpradio_dashboard3.5634.46
Listeners /wp-admin/admin.php?page=wpradio_listeners3.5232.46
Podcasts /wp-admin/admin.php?page=wpradio_podcasts3.5242.36
Settings /wp-admin/admin.php?page=wpradio_settings3.4631.52

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
wpradio-general
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPRadio - Wordpress Radio Streaming Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7814.25 ▼0.001.60 ▼0.0936.19 ▼15.89
Dashboard /wp-admin2,233 ▲565.59 ▼0.1082.93 ▼5.7738.88 ▼1.94
Posts /wp-admin/edit.php2,135 ▲381.94 ▼0.0439.82 ▲2.2336.11 ▲2.93
Add New Post /wp-admin/post-new.php1,556 ▲3023.09 ▼0.03602.21 ▼61.8949.94 ▼2.65
Media Library /wp-admin/upload.php1,435 ▲354.16 ▼0.0794.44 ▼10.3843.23 ▼3.69
Widgets /wp-admin/admin.php?page=wpradio_widgets2,7585.16167.3792.24
Dashboard /wp-admin/admin.php?page=wpradio_dashboard3,3115.04100.4138.37
Listeners /wp-admin/admin.php?page=wpradio_listeners2,1764.1667.2040.03
Podcasts /wp-admin/admin.php?page=wpradio_podcasts2,4264.2365.7540.64
Settings /wp-admin/admin.php?page=wpradio_settings8252.0026.6826.97

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpradio_podcasts
    • > Javascript (severe) in unknown
    /wp-content/plugins/wpradio/Admin/js/wpradio-admin.js?ver=1.0.4 1:346177 Uncaught Error: Private token doesn't exists
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpradio_podcasts
    • > Network (severe)
    wp-content/plugins/wpradio/Admin/fonts/Inter-roman.var.woff2?v=3.15 - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpradio_podcasts
    • > Network (severe)
    wp-content/plugins/wpradio/Admin/fonts/Inter-italic.var.woff2?v=3.15 - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=wpradio_widgets
    • > Network (severe)
    https://widgets.cloud.caster.fm/player/?token=&frameId=2nstp&theme=light&color=7F3EE8 - Failed to load resource: the server responded with a status of 500 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

wpradio/wpradio.php 92% from 13 tests

The main PHP file in "WPRadio - Wordpress Radio Streaming Plugin" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/Languages")

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
Everything looks great! No dangerous files found in this plugin28,828 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
JSON20018,440
JavaScript261,4891,4927,023
PHP254591,2752,571
Sass6910471
PO File1127154319
CSS1213
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.82
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods58
▷ Static methods915.52%
▷ Public methods5086.21%
▷ Protected methods23.45%
▷ Private methods610.34%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants16
▷ Global constants1168.75%
▷ Class constants531.25%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin