Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.49ms] Passed 4 tests
Analyzing server-side resources used by All in One Music Player
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.98 ▲2.98 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.96 ▼1.21 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.90 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.35 ▼15.99 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.58 ▼1.28 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for All in One Music Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.39 | 1.76 ▲0.03 | 46.14 ▲5.55 |
Dashboard /wp-admin | 2,189 ▲12 | 5.65 ▲0.10 | 87.15 ▼7.59 | 41.18 ▼1.02 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.02 | 39.50 ▲2.01 | 34.26 ▼2.10 |
Add New Post /wp-admin/post-new.php | 6,232 ▲4,706 | 19.36 ▼3.78 | 910.12 ▲224.75 | 46.87 ▼11.57 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▲0.03 | 102.28 ▼7.72 | 43.83 ▼1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php on line 73
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/all-in-one-music-player/templates/flat-black.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-music-player/templates/circular-spikes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-music-player/templates/a-player.php:2
- > PHP Notice
Undefined variable: songs in wp-content/plugins/all-in-one-music-player/templates/blue-playlist.php on line 73
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: aplayer, music-player, mp3, audio
all-in-one-music-player/all-in-one-music-player.php Passed 13 tests
"All in One Music Player" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Easily embed your favourite music player in your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin7,425 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,216 | 6,597 | 5,780 |
CSS | 5 | 60 | 63 | 1,196 |
PHP | 6 | 113 | 125 | 371 |
SVG | 3 | 0 | 3 | 45 |
XML | 1 | 4 | 12 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 23.50KB | 16.83KB | ▼ 28.40% |