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 gracefully, with no errors
Server metrics [RAM: ▲5.36MB] [CPU: ▲40.99ms] 75% from 4 tests
An overview of server-side resources used by Html5 Audio Player - Audio Player for WordPress
Please have a look at the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.46 | 79.27 ▲39.37 |
Dashboard /wp-admin | 8.95 ▲5.64 | 96.31 ▲45.78 |
Posts /wp-admin/edit.php | 8.95 ▲5.58 | 85.98 ▲36.21 |
Add New Post /wp-admin/post-new.php | 10.66 ▲4.77 | 140.01 ▲43.38 |
Media Library /wp-admin/upload.php | 8.95 ▲5.71 | 81.33 ▲45.01 |
Upgrade /wp-admin/admin.php?page=audio-player-pricing-manual | 8.95 | 70.74 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.95 | 66.85 |
Server storage [IO: ▲7.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 504 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
fs_accounts |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Html5 Audio Player - Audio Player for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲209 | 13.83 ▼0.52 | 1.84 ▲0.24 | 35.97 ▼7.57 |
Dashboard /wp-admin | 2,311 ▲133 | 5.34 ▼0.38 | 114.53 ▲2.14 | 97.71 ▲52.15 |
Posts /wp-admin/edit.php | 2,235 ▲132 | 2.44 ▲0.44 | 40.15 ▲0.53 | 62.15 ▲24.44 |
Add New Post /wp-admin/post-new.php | 6,554 ▲5,028 | 29.78 ▲6.47 | 924.31 ▲247.81 | 61.89 ▲7.36 |
Media Library /wp-admin/upload.php | 1,522 ▲122 | 4.91 ▲0.70 | 115.27 ▲18.91 | 92.20 ▲50.30 |
Upgrade /wp-admin/admin.php?page=audio-player-pricing-manual | 1,748 | 3.43 | 79.86 | 134.26 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,126 | 2.16 | 29.88 | 42.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/html5-audio-player/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- fs_debug_mode
- fs_active_plugins
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)
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/html5-audio-player/inc/Elementor/Controls/Radio.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/html5-audio-player/admin/global/free-plugin-list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/html5-audio-player/shortcode/player.php:38
- > PHP Warning
Use of undefined constant H5AP_PRO_VERSION - assumed 'H5AP_PRO_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/html5-audio-player/blocks/audioplayer/blocks.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html5-audio-player/admin/global/help-usages.php:6
- > PHP Warning
Use of undefined constant H5AP_PRO_VERSION - assumed 'H5AP_PRO_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/html5-audio-player/dist/blocks.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/html5-audio-player/inc/Template/search.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/html5-audio-player/shortcode/single_button.php:29
- > PHP Fatal error
Uncaught Error: Class 'H5APPlayer\\Helper\\Functions' not found in wp-content/plugins/html5-audio-player/shortcode/player/opt-1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function H5APPlayer\\Base\\h5ap_fs() in wp-content/plugins/html5-audio-player/inc/Base/BlackFriday.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=audio-player-pricing-manual
- > Security (severe) in unknown
https://js.freemius.com/vendors/nojquery.ba-postmessage.min.js?v=180 11 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://borrowhome.s4-tastewp.com') does not match the recipient window's origin ('').
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: player, audio, audio player, html5 player, mp3 player
html5-audio-player/html5-audio-player.php 92% from 13 tests
The entry point to "Html5 Audio Player - Audio Player for WordPress" version 2.2.16 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin74,665 lines of code in 392 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 264 | 12,449 | 20,379 | 53,961 |
PO File | 20 | 3,197 | 3,594 | 6,534 |
Sass | 15 | 928 | 3 | 4,730 |
CSS | 30 | 310 | 556 | 4,586 |
JavaScript | 26 | 1,314 | 423 | 4,300 |
JSON | 6 | 0 | 0 | 314 |
SVG | 31 | 0 | 15 | 240 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- 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.60 |
Average class complexity | 41.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 151 | |
▷ Abstract classes | 4 | 2.65% |
▷ Concrete classes | 147 | 97.35% |
▷ Final classes | 4 | 2.72% |
Methods | 1,753 | |
▷ Static methods | 275 | 15.69% |
▷ Public methods | 1,333 | 76.04% |
▷ Protected methods | 35 | 2.00% |
▷ Private methods | 385 | 21.96% |
Functions | 158 | |
▷ Named functions | 147 | 93.04% |
▷ Anonymous functions | 11 | 6.96% |
Constants | 162 | |
▷ Global constants | 103 | 63.58% |
▷ Class constants | 59 | 36.42% |
▷ Public constants | 59 | 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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icn.png | 3.76KB | 1.19KB | ▼ 68.35% |
dist/src/img/sound-control.png | 1.48KB | 1.33KB | ▼ 9.78% |
(invalid) dist/fb16ee5f9cd5708b1d95.png | 0.07KB | 0.00KB | ▼ 100.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |