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.20MB] [CPU: ▼2.08ms] Passed 4 tests
Server-side resources used by mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.99 ▲5.64 |
Dashboard /wp-admin | 3.52 ▲0.22 | 46.65 ▲0.47 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.47 ▼1.76 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 88.83 ▼6.18 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 37.00 ▼0.84 |
mb.miniAudioPlayer /wp-admin/options-general.php?page=wp-miniaudioplayer/miniAudioPlayer-admin.php | 3.42 | 34.70 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 29 new options
New WordPress options |
---|
miniAudioPlayer_showTime |
miniAudioPlayer_animate |
miniAudioPlayer_use_html5_download |
miniAudioPlayer_replaceDefault_show_title |
miniAudioPlayer_excluded |
miniAudioPlayer_replaceDefault |
theysaidso_admin_options |
widget_recent-posts |
miniAudioPlayer_width |
miniAudioPlayer_showRew |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,210 ▲464 | 14.08 ▼0.33 | 8.62 ▲6.80 | 37.73 ▼2.10 |
Dashboard /wp-admin | 2,501 ▲310 | 5.84 ▼0.09 | 100.35 ▼0.52 | 43.61 ▲2.03 |
Posts /wp-admin/edit.php | 2,384 ▲298 | 1.96 ▼0.02 | 35.92 ▼3.79 | 35.66 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,837 ▲308 | 23.08 ▲4.60 | 581.46 ▼75.35 | 50.87 ▼1.63 |
Media Library /wp-admin/upload.php | 1,683 ▲295 | 4.31 ▲0.07 | 98.97 ▼15.53 | 40.62 ▼7.89 |
mb.miniAudioPlayer /wp-admin/options-general.php?page=wp-miniaudioplayer/miniAudioPlayer-admin.php | 1,767 | 4.87 | 113.96 | 64.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-posts
- miniAudioPlayer_active_all
- widget_recent-comments
- miniAudioPlayer_replaceDefault
- miniAudioPlayer_allowMute
- db_upgraded
- can_compress_scripts
- miniAudioPlayer_use_html5_download
- theysaidso_admin_options
- miniAudioPlayer_replaceDefault_show_title
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-miniaudioplayer/miniAudioPlayer-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-miniaudioplayer/miniAudioPlayer.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-miniaudioplayer/inc/popup.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The settings panel.), #2 (The player closed with a black skin.), #3 (The player opened with a green skin.), #4 (The edit properties button available in the post editor toolbar.), #5 (The properties window in the post editor.)
wp-miniaudioplayer/miniAudioPlayer.php 85% from 13 tests
The main PHP script in "mb.miniAudioPlayer - an HTML5 audio player for your mp3 files" version 1.9.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-miniaudioplayer.php" instead of "miniAudioPlayer.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 272 characters long)
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
Good job! No executable or dangerous file extensions detected4,234 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 257 | 170 | 1,452 |
PO File | 3 | 368 | 496 | 918 |
JavaScript | 5 | 225 | 156 | 897 |
CSS | 6 | 139 | 88 | 645 |
SVG | 3 | 21 | 1 | 298 |
HTML | 1 | 10 | 19 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.53MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 380.23KB | 155.21KB | ▼ 59.18% |
images/editorButton.png | 145.17KB | 42.67KB | ▼ 70.61% |
screenshot-3.png | 294.04KB | 108.03KB | ▼ 63.26% |
images/excludeimg.png | 76.47KB | 24.99KB | ▼ 67.32% |
images/bgnd.png | 15.70KB | 7.89KB | ▼ 49.75% |