Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲6.67ms] Passed 4 tests
This is a short check of server-side resources used by MP3 Audio Player for Music, Radio & Podcast by Sonaar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 52.58 ▲17.43 |
Dashboard /wp-admin | 4.09 ▲0.75 | 58.14 ▼4.53 |
Posts /wp-admin/edit.php | 4.52 ▲1.17 | 73.29 ▲23.13 |
Add New Post /wp-admin/post-new.php | 7.15 ▲1.26 | 90.52 ▼0.34 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 50.23 ▲14.13 |
Stats & Reports /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_stats | 4.26 | 48.81 |
Tools /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_tools | 4.25 | 51.84 |
Categories /wp-admin/edit-tags.php?taxonomy=playlist-category&post_type=sr_playlist | 4.26 | 52.39 |
Sticky Player Settings /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_sticky_player | 4.26 | 53.85 |
Share a Track /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_share | 4.29 | 52.12 |
Tags /wp-admin/edit-tags.php?taxonomy=playlist-tag&post_type=sr_playlist | 4.26 | 52.95 |
Popup Settings /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_popup | 4.25 | 51.05 |
Favorites /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_favorites | 4.25 | 49.87 |
Add New /wp-admin/post-new.php?post_type=sr_playlist | 7.46 | 91.68 |
All Playlists /wp-admin/edit.php?post_type=sr_playlist | 4.30 | 59.45 |
Server storage [IO: ▲16.51MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 628 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
sonaar_music_show_review_box_after |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_sonaar-music |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MP3 Audio Player for Music, Radio & Podcast by Sonaar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲142 | 14.35 ▼0.01 | 2.02 ▲0.50 | 44.54 ▲3.10 |
Dashboard /wp-admin | 2,266 ▲88 | 5.73 ▲0.04 | 93.66 ▼20.77 | 45.58 ▲6.15 |
Posts /wp-admin/edit.php | 2,845 ▲745 | 3.77 ▲1.74 | 99.26 ▲63.61 | 34.58 ▲2.68 |
Add New Post /wp-admin/post-new.php | 6,945 ▲5,419 | 29.50 ▲5.87 | 847.40 ▲170.10 | 34.08 ▼15.94 |
Media Library /wp-admin/upload.php | 1,465 ▲65 | 4.26 ▲0.07 | 94.90 ▼1.29 | 45.26 ▲1.26 |
Stats & Reports /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_stats | 1,648 | 3.56 | 54.51 | 48.42 |
Tools /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_tools | 1,612 | 3.51 | 49.07 | 30.97 |
Categories /wp-admin/edit-tags.php?taxonomy=playlist-category&post_type=sr_playlist | 2,019 | 3.57 | 52.66 | 32.14 |
Sticky Player Settings /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_sticky_player | 1,798 | 3.56 | 48.52 | 62.26 |
Share a Track /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_share | 1,738 | 3.49 | 49.08 | 33.56 |
Tags /wp-admin/edit-tags.php?taxonomy=playlist-tag&post_type=sr_playlist | 2,022 | 3.58 | 50.82 | 30.77 |
Popup Settings /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_popup | 1,802 | 3.66 | 50.28 | 79.22 |
Favorites /wp-admin/edit.php?post_type=sr_playlist&page=srmp3_settings_favorites | 1,620 | 3.46 | 52.27 | 28.76 |
Add New /wp-admin/post-new.php?post_type=sr_playlist | 8,850 | 20.67 | 923.62 | 88.82 |
All Playlists /wp-admin/edit.php?post_type=sr_playlist | 1,933 | 3.72 | 52.18 | 32.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- sonaar_music_show_review_box_after
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_sonaar-music
- widget_theysaidso_widget
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mp3-music-player-by-sonaar/public/partials/sonaar-music-public-display.php
- 62× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2-conditionals/example-functions.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2-store-list/song-store-field-type.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mp3-music-player-by-sonaar/admin/partials/sonaar-music-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp3-music-player-by-sonaar/admin/library/cmb2-image-select-field-type/image_select_metafield.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
mp3-music-player-by-sonaar/sonaar-music.php 85% from 13 tests
The entry point to "MP3 Audio Player for Music, Radio & Podcast by Sonaar" version 4.10.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mp3-music-player-by-sonaar.php" instead of "sonaar-music.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected153,250 lines of code in 397 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 34 | 55 | 8 | 38,324 |
PHP | 102 | 4,311 | 8,471 | 34,832 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
CSS | 38 | 3,503 | 1,476 | 16,398 |
JavaScript | 34 | 1,413 | 1,007 | 12,597 |
Sass | 48 | 1,165 | 113 | 9,687 |
JSON | 7 | 0 | 0 | 7,513 |
Markdown | 11 | 361 | 0 | 1,165 |
HTML | 1 | 9 | 1 | 402 |
XML | 1 | 4 | 2 | 8 |
YAML | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,425)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 707)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 47.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,425.00 |
Average method complexity | 6.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 707.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 9 | 9.78% |
▷ Concrete classes | 83 | 90.22% |
▷ Final classes | 1 | 1.20% |
Methods | 774 | |
▷ Static methods | 122 | 15.76% |
▷ Public methods | 629 | 81.27% |
▷ Protected methods | 95 | 12.27% |
▷ Private methods | 50 | 6.46% |
Functions | 79 | |
▷ Named functions | 74 | 93.67% |
▷ Anonymous functions | 5 | 6.33% |
Constants | 35 | |
▷ Global constants | 20 | 57.14% |
▷ Class constants | 15 | 42.86% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.71MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/library/cmb2-post-search-field/post-search-field.png | 18.07KB | 5.58KB | ▼ 69.11% |
admin/library/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/library/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/library/cmb2-field-faiconselect/screenshot-1.png | 28.57KB | 8.58KB | ▼ 69.96% |
admin/library/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |