Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼20.80ms] Passed 4 tests
Server-side resources used by DJ Player
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 29.63 ▼9.53 |
Dashboard /wp-admin | 3.12 ▼0.22 | 25.14 ▼38.04 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 34.44 ▼11.04 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 70.89 ▼24.60 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 27.45 ▼5.53 |
General Settings /wp-admin/edit.php?post_type=djsong&page=djpr_main_settings | 3.11 | 26.29 |
All Songs /wp-admin/edit.php?post_type=djsong | 3.23 | 31.22 |
Add Song /wp-admin/post-new.php?post_type=djsong | 3.28 | 32.43 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DJ Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,044 ▲298 | 14.53 ▲0.32 | 17.04 ▲15.29 | 40.20 ▼0.72 |
Dashboard /wp-admin | 2,272 ▲80 | 5.09 ▲0.16 | 110.57 ▲7.00 | 44.63 ▲2.63 |
Posts /wp-admin/edit.php | 2,154 ▲65 | 2.33 ▲0.15 | 41.21 ▲1.27 | 34.38 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 18.00 ▼5.32 | 605.87 ▼22.56 | 33.96 ▼15.22 |
Media Library /wp-admin/upload.php | 1,448 ▲66 | 4.45 ▲0.27 | 96.27 ▼4.72 | 41.73 ▼2.92 |
General Settings /wp-admin/edit.php?post_type=djsong&page=djpr_main_settings | 981 | 2.56 | 41.62 | 27.36 |
All Songs /wp-admin/edit.php?post_type=djsong | 1,124 | 2.27 | 33.42 | 27.75 |
Add Song /wp-admin/post-new.php?post_type=djsong | 1,511 | 2.77 | 52.92 | 31.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=djsong
- > Notice in wp-content/plugins/dj-player/dj-player.php+16
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=djsong
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/post-new.php?post_type=djsong
- > Notice in wp-content/plugins/dj-player/dj-player.php+206
Undefined variable: html
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant DJPR_PLUGIN_URL - assumed 'DJPR_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dj-player/front-player.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dj-player/dj-player.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dj-player/front-player.php:60
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: audio, responsive, mp3, music, audio player...
dj-player/dj-player.php Passed 13 tests
"DJ Player" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Fully responsive music player with tracklist.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,986 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 153 | 143 | 1,038 |
CSS | 5 | 138 | 12 | 620 |
PHP | 2 | 51 | 15 | 308 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.08MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cover.png | 78.20KB | 45.47KB | ▼ 41.86% |