Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-youtube-playlist-widget/wp-youtube-playlist-widget.php+233
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.22ms] Passed 4 tests
An overview of server-side resources used by Wordpress Youtube Playlist Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.07 ▼39.10 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.79 ▼42.44 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.16 ▼36.50 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.16 ▼94.82 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.76 ▼29.42 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_wordpressyoutubeplaylistwidget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress Youtube Playlist Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 14.38 ▼0.20 | 8.46 ▲6.59 | 42.74 ▼2.28 |
Dashboard /wp-admin | 2,203 ▲14 | 5.11 ▲0.16 | 105.52 ▼12.00 | 42.95 ▼0.42 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.29 ▲0.27 | 36.87 ▲0.03 | 31.50 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.18 ▲2.20 | 664.53 ▲42.71 | 66.56 ▲16.49 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.48 ▲0.32 | 93.46 ▼5.55 | 41.26 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-core handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_wordpressyoutubeplaylistwidget
Smoke tests 75% 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 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-youtube-playlist-widget/wp-youtube-playlist-widget.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: youtube-playlist, videos, youtube playlist, youtube, youtube playlist videos...
wp-youtube-playlist-widget/wp-youtube-playlist-widget.php 92% from 13 tests
"Wordpress Youtube Playlist Widget" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 422 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 detected196 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 67 | 133 |
CSS | 1 | 2 | 9 | 45 |
JavaScript | 1 | 0 | 7 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 1.25MB with 0.86MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-screenshots/screenshot-4.png | 528.92KB | 138.55KB | ▼ 73.81% |
plugin-screenshots/screenshot-2.png | 83.80KB | 28.57KB | ▼ 65.91% |
plugin-screenshots/screenshot-1.png | 29.31KB | 10.49KB | ▼ 64.21% |
images/play128.png | 1.58KB | 0.52KB | ▼ 66.91% |
plugin-screenshots/screenshot-3.png | 634.52KB | 172.09KB | ▼ 72.88% |