Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.41ms] Passed 4 tests
A check of server-side resources used by Music Press Playlist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.22 ▼5.49 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.89 ▲0.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.54 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.53 ▼4.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.09 ▼1.75 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Music Press Playlist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.11 ▼0.27 | 1.71 ▼0.50 | 39.84 ▼6.31 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.01 | 87.37 ▼4.69 | 41.95 ▼4.17 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.01 | 36.79 ▼4.30 | 35.80 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.96 ▼0.26 | 687.41 ▼18.07 | 62.68 ▼8.48 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▲0.01 | 96.61 ▼11.71 | 46.75 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/music-press-quick-playlist/includes/process/setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: music manager, music store, playlist, media store, audio store...
music-press-quick-playlist/music-press-quick-playlist.php Passed 13 tests
This is the main PHP file of "Music Press Playlist" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Create playlist for Music Press Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,728 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 168 | 24 | 1,229 |
CSS | 1 | 50 | 0 | 262 |
JavaScript | 2 | 30 | 14 | 237 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/music-press-playlist.png | 1.53KB | 0.73KB | ▼ 51.92% |
assets/images/no_image.png | 2.20KB | 1.92KB | ▼ 12.75% |