Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.46MB] [CPU: ▲29.94ms] 75% from 4 tests
An overview of server-side resources used by Radio Player - Live Shoutcast, Icecast and Any Audio Stream Player for WordPress
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.46MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.80 | 67.36 ▲26.79 |
Dashboard /wp-admin | 9.29 ▲5.94 | 85.47 ▲26.18 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 94.58 ▲44.25 |
Add New Post /wp-admin/post-new.php | 10.05 ▲4.16 | 117.63 ▲24.42 |
Media Library /wp-admin/upload.php | 9.29 ▲6.05 | 78.62 ▲42.38 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.29 | 60.93 |
Server storage [IO: ▲6.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 283 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_radio_player_players |
wp_radio_player_statistics |
New WordPress options |
---|
widget_recent-comments |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
radio_player_notices |
radio_player_version |
radio_player_install_time |
fs_debug_mode |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Radio Player - Live Shoutcast, Icecast and Any Audio Stream Player for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲209 | 20.66 ▲6.31 | 1.69 ▼0.16 | 27.98 ▼13.78 |
Dashboard /wp-admin | 2,367 ▲190 | 11.08 ▲5.42 | 298.01 ▲206.00 | 128.00 ▲87.99 |
Posts /wp-admin/edit.php | 2,307 ▲207 | 9.15 ▲7.15 | 92.57 ▲57.03 | 88.44 ▲51.12 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 23.87 ▲0.86 | 592.30 ▼40.14 | 41.43 ▼2.72 |
Media Library /wp-admin/upload.php | 1,658 ▲258 | 11.73 ▲7.50 | 147.36 ▲48.39 | 120.97 ▲78.47 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,234 | 8.94 | 79.38 | 93.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/radio-player/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_radio_player_players
- wp_radio_player_statistics
- Zombie WordPress options were found after uninstall: 12 options
- fs_active_plugins
- fs_debug_mode
- radio_player_install_time
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- ...
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/radio-player/includes/views/getting-started/what-new.php
- > /wp-content/plugins/radio-player/includes/views/email-report.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/radio-player/includes/views/statistics.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/radio-player/includes/views/getting-started/proxy-player-addon.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/radio-player/includes/views/getting-started/introduction.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/radio-player/includes/views/getting-started/ads-player-addon.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/radio-player/includes/views/notice/radio-player-proxy-addon.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/radio-player/includes/views/getting-started/help.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/radio-player/includes/views/getting-started/basic-usage.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/radio-player/plugin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/radio-player/includes/views/getting-started/get-pro.php:5
- > PHP Warning
Use of undefined constant RADIO_PLAYER_ASSETS - assumed 'RADIO_PLAYER_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/radio-player/includes/views/notice/radio-player-proxy-addon.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: music, shoutcast, stream, mp3, audio...
radio-player/plugin.php 92% from 13 tests
This is the main PHP file of "Radio Player - Live Shoutcast, Icecast and Any Audio Stream Player for WordPress" version 2.0.73, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("radio-player.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin37,395 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 8,723 | 17,646 | 36,835 |
JavaScript | 10 | 59 | 80 | 322 |
SVG | 10 | 1 | 0 | 155 |
JSON | 3 | 0 | 0 | 65 |
CSS | 18 | 0 | 0 | 18 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 70.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 1 | 1.56% |
Methods | 1,382 | |
▷ Static methods | 216 | 15.63% |
▷ Public methods | 976 | 70.62% |
▷ Protected methods | 17 | 1.23% |
▷ Private methods | 389 | 28.15% |
Functions | 117 | |
▷ Named functions | 110 | 94.02% |
▷ Anonymous functions | 7 | 5.98% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
51 compressed PNG files occupy 0.72MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/getting-started/gutenberg-block.png | 2.67KB | 2.75KB | 0.00% |
assets/images/getting-started/schedule.png | 34.09KB | 37.66KB | 0.00% |
assets/images/placeholder.png | 5.96KB | 6.16KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/radio-player-proxy-icon.png | 22.40KB | 23.99KB | 0.00% |