Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/playlist-audio-player/classes/database.php+23
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.25ms] Passed 4 tests
Server-side resources used by Playlist Audio Player
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 39.99 ▼3.69 |
Dashboard /wp-admin | 3.40 ▲0.06 | 51.56 ▲0.07 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 57.68 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 87.01 ▼19.12 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 42.92 ▲7.74 |
Playlist Audio Player /wp-admin/admin.php?page=music_playlist | 3.35 | 37.12 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/playlist-audio-player/" and "wp-content/uploads/"
- (new file) wp-content/playlist-audio-player/uploads/.empty
Filesystem: 50 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_audio_tracklist |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Playlist Audio Player
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,101 ▲340 | 16.18 ▲1.83 | 19.86 ▲17.84 | 45.81 ▲3.69 |
Dashboard /wp-admin | 2,362 ▲182 | 6.44 ▲0.77 | 120.98 ▲33.69 | 37.52 ▼5.84 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 3.68 ▲1.65 | 53.22 ▲10.90 | 32.89 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,706 ▲178 | 23.03 ▼0.10 | 658.15 ▼39.43 | 34.52 ▼20.38 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.44 ▲0.30 | 94.95 ▼6.99 | 49.71 ▲4.70 |
Playlist Audio Player /wp-admin/admin.php?page=music_playlist | 1,252 | 3.43 | 59.09 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_audio_tracklist
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/playlist-audio-player/playlist-audio-player.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/playlist-audio-player/views/player.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/playlist-audio-player/admin/playlist.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/playlist-audio-player/classes/database.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/playlist-audio-player/classes/database.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/playlist-audio-player/admin/queries.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/playlist-audio-player/classes/track_class.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/playlist-audio-player/classes/database.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=music_playlist
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=music_playlist 292:32 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Add Songs), #2 (create List), #3 (Playlist Audio Player on frontend.)
- Tags: You are using too many tags: 16 tag instead of maximum 10
playlist-audio-player/playlist-audio-player.php 92% from 13 tests
The main PHP script in "Playlist Audio Player" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/playlist-audio-player/assets/js/pluploader/Moxie.xap
- .xap - Silverlight Application Package in Microsoft Silverlight
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,259 | 3,141 | 12,033 |
CSS | 6 | 1,466 | 125 | 5,625 |
PHP | 8 | 80 | 115 | 710 |
SVG | 1 | 0 | 0 | 288 |
Markdown | 1 | 32 | 0 | 115 |
PHP code Passed 2 tests
This is a short overview 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.42 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 77.45KB | 25.20KB | ▼ 67.46% |
screenshot-3.png | 99.33KB | 39.91KB | ▼ 59.82% |
assets/screenshot-1.png | 50.22KB | 53.50KB | 0.00% |
images/stop.PNG | 2.87KB | 0.33KB | ▼ 88.50% |
images/shuffle.PNG | 3.40KB | 1.16KB | ▼ 65.79% |