84% wp-youtube-live

Code Review | WP YouTube Live

WordPress plugin WP YouTube Live scored84%from 54 tests.

About plugin

  • Plugin page: wp-youtube-live
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Oct 18, 2023
  • Number of updates: 68
  • Update frequency: every 37.1 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /53,700 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1845.33 ▲1.30
Dashboard /wp-admin3.49 ▲0.1451.58 ▼13.27
Posts /wp-admin/edit.php3.60 ▲0.2449.85 ▲0.96
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.94 ▲1.05
Media Library /wp-admin/upload.php3.41 ▲0.1837.55 ▼1.32
YouTube Live Settings /wp-admin/options-general.php?page=youtube-live3.3633.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.36 ▲0.001.63 ▼0.0945.55 ▼1.28
Dashboard /wp-admin2,204 ▲245.61 ▼0.0582.68 ▼17.8536.23 ▼10.56
Posts /wp-admin/edit.php2,106 ▲92.01 ▲0.0034.01 ▼0.0638.17 ▼0.85
Add New Post /wp-admin/post-new.php1,531 ▲523.71 ▲0.45656.46 ▼13.7355.42 ▲2.95
Media Library /wp-admin/upload.php1,406 ▲94.21 ▲0.0292.69 ▼7.1539.31 ▼3.83
YouTube Live Settings /wp-admin/options-general.php?page=youtube-live1,2142.1346.0756.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:
LanguageFilesBlank linesComment linesLines of code
PHP3184277883
JavaScript41738133
CSS10039

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 code0.39
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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