Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼1.61ms] Passed 4 tests
An overview of server-side resources used by YouTube Embed, Playlist and Popup by WpDevArt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 43.71 ▼0.52 |
Dashboard /wp-admin | 3.62 ▲0.31 | 50.18 ▲0.13 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.61 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 86.40 ▼12.13 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 44.23 ▲9.92 |
Hire an Expert /wp-admin/admin.php?page=youtube-plus-hire-expert | 3.51 | 36.50 |
Post/Page Defaults /wp-admin/admin.php?page=YouTube-Embed | 3.51 | 37.07 |
Featured Plugins /wp-admin/admin.php?page=youtube-plus-featured-plugins | 3.51 | 35.00 |
Widget Defaults /wp-admin/admin.php?page=youtube-plus-widget-default | 3.52 | 41.30 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_youtube_embed_widget |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YouTube Embed, Playlist and Popup by WpDevArt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 14.35 ▼0.28 | 13.54 ▲11.86 | 41.23 ▲0.08 |
Dashboard /wp-admin | 2,242 ▲65 | 5.71 ▲0.12 | 80.42 ▼24.07 | 77.08 ▲33.13 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.06 ▲0.10 | 34.24 ▼2.24 | 31.32 ▼3.24 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,708 | 19.05 ▼4.04 | 894.58 ▲222.01 | 38.98 ▼13.91 |
Media Library /wp-admin/upload.php | 1,444 ▲41 | 4.20 ▼0.04 | 94.92 ▼7.00 | 78.71 ▲33.28 |
Hire an Expert /wp-admin/admin.php?page=youtube-plus-hire-expert | 900 | 1.77 | 23.74 | 31.30 |
Post/Page Defaults /wp-admin/admin.php?page=YouTube-Embed | 1,323 | 2.21 | 32.86 | 47.14 |
Featured Plugins /wp-admin/admin.php?page=youtube-plus-featured-plugins | 1,147 | 1.99 | 26.79 | 43.12 |
Widget Defaults /wp-admin/admin.php?page=youtube-plus-widget-default | 1,325 | 2.17 | 30.14 | 38.20 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_youtube_embed_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/youtube-video-player/front_end/front_end_widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/youtube-video-player/youtube-embed.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/youtube-video-player/admin/admin_menu.php:5
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: youtube widget, youtube embed, youtube playlist, youtube, youtube player
youtube-video-player/youtube-embed.php 85% from 13 tests
The main PHP file in "YouTube Embed, Playlist and Popup by WpDevArt" ver. 2.6.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("youtube-video-player.php" instead of "youtube-embed.php")
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 plugin3,966 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 200 | 86 | 1,946 |
CSS | 5 | 45 | 64 | 1,601 |
JavaScript | 2 | 46 | 1 | 418 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 78.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 21.95% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 0.51MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/support.png | 2.21KB | 1.14KB | ▼ 48.50% |
admin/images/featured_plugins/facebook-comments-icon.png | 35.96KB | 9.11KB | ▼ 74.67% |
admin/styles/images/ui-icons_ffffff_256x240.png | 6.32KB | 4.18KB | ▼ 33.80% |
admin/styles/images/ui-icons_222222_256x240.png | 6.84KB | 4.18KB | ▼ 38.88% |
admin/styles/images/hire_expert/6.png | 4.20KB | 2.78KB | ▼ 33.81% |