Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼2.04ms] Passed 4 tests
Analyzing server-side resources used by HTML5 jQuery Audio Player
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.84 ▼3.99 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.19 ▼3.85 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.05 ▲4.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 96.42 ▼0.01 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.35 ▼0.31 |
Manage Songs /wp-admin/admin.php?page=hmp_palylist | 3.42 | 32.81 |
/wp-admin/admin.php?page=hmp-options | 3.30 | 34.54 |
Display Settings /wp-admin/admin.php?page=display_settings | 3.30 | 33.98 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_hmp_rating |
wp_hmp_playlist |
New WordPress options |
---|
hmp_player_db_table_version |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
can_compress_scripts |
hmp_player_db_table_rating_version |
Browser metrics Passed 4 tests
HTML5 jQuery Audio Player: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 13.61 ▼0.78 | 4.84 ▲3.02 | 42.78 ▲0.13 |
Dashboard /wp-admin | 2,238 ▲53 | 4.95 ▲0.09 | 109.76 ▼8.92 | 81.68 ▲37.15 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.23 ▲0.25 | 36.62 ▲2.31 | 34.80 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 18.32 ▲0.59 | 636.37 ▼4.24 | 56.07 ▲12.95 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.27 ▲0.11 | 95.22 ▼7.36 | 73.37 ▲31.75 |
Manage Songs /wp-admin/admin.php?page=hmp_palylist | 704 | 1.55 | 7.09 | 17.39 |
/wp-admin/admin.php?page=hmp-options | 1,127 | 1.82 | 27.09 | 29.69 |
Display Settings /wp-admin/admin.php?page=display_settings | 1,127 | 1.84 | 24.82 | 31.27 |
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
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_hmp_playlist
- wp_hmp_rating
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- recovery_mode_email_last_sent
- hmp_player_db_table_version
- hmp_player_db_table_rating_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=hmp_palylist
- > Error in wp-content/plugins/html5-jquery-audio-player/playlist/add_playlist.php+20
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/html5-jquery-audio-player/playlist/add_playlist.php:20
Stack trace:
#0 wp-content/plugins/html5-jquery-audio-player/index.php(62): include()
#1 wp-includes/class-wp-hook.php(310): wp_hmp_playlist()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/html5-jquery-audio-player/includes/ttw-music-player.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/html5-jquery-audio-player/player/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html5-jquery-audio-player/includes/db-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/html5-jquery-audio-player/playlist/add_playlist.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: jquery player, html5 audio player, music player, ogg player, mp3...
html5-jquery-audio-player/index.php 92% from 13 tests
Analyzing the main PHP file in "HTML5 jQuery Audio Player" version 2.6.2
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html5-jquery-audio-player.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,579 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 264 | 194 | 2,342 |
PHP | 5 | 202 | 57 | 1,771 |
CSS | 1 | 62 | 24 | 298 |
PO File | 1 | 74 | 98 | 168 |
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 code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/player-previous-hover.png | 0.28KB | 0.29KB | 0.00% |
includes/images/buy-bg.png | 0.11KB | 0.09KB | ▼ 15.65% |
includes/images/player-pause-hover.png | 0.17KB | 0.17KB | 0.00% |
includes/images/player-elapsed.png | 0.13KB | 0.10KB | ▼ 17.69% |
includes/images/rating-bar.png | 0.11KB | 0.08KB | ▼ 29.06% |