Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.15ms] Passed 4 tests
An overview of server-side resources used by WP YouTube Live
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 45.33 ▲1.30 |
Dashboard /wp-admin | 3.49 ▲0.14 | 51.58 ▼13.27 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.85 ▲0.96 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.94 ▲1.05 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.55 ▼1.32 |
YouTube Live Settings /wp-admin/options-general.php?page=youtube-live | 3.36 | 33.24 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
youtube_live_version |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
youtube_live_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP YouTube Live
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.36 ▲0.00 | 1.63 ▼0.09 | 45.55 ▼1.28 |
Dashboard /wp-admin | 2,204 ▲24 | 5.61 ▼0.05 | 82.68 ▼17.85 | 36.23 ▼10.56 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.01 ▲0.00 | 34.01 ▼0.06 | 38.17 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.71 ▲0.45 | 656.46 ▼13.73 | 55.42 ▲2.95 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.21 ▲0.02 | 92.69 ▼7.15 | 39.31 ▼3.83 |
YouTube Live Settings /wp-admin/options-general.php?page=youtube-live | 1,214 | 2.13 | 46.07 | 56.10 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- youtube_live_settings
- youtube_live_version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+357
Undefined index: youtube_live_api_key
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+357
Undefined index: youtube_live_channel_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+166
Undefined index: subdomain
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+396
Undefined variable: video_array
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+255
Undefined index: fallback_playlist
- > GET request to /wp-admin/options-general.php?page=youtube-live
- > Notice in wp-content/plugins/wp-youtube-live/inc/admin.php+260
Undefined index: fallback_video
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: video, live, youtube, embed
wp-youtube-live/wp-youtube-live.php Passed 13 tests
This is the main PHP file of "WP YouTube Live" version 1.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Displays the current YouTube live video from a specified channel
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,055 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 184 | 277 | 883 |
JavaScript | 4 | 17 | 38 | 133 |
CSS | 1 | 0 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin