68% youtube-showcase

Code Review | YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress

WordPress plugin YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: youtube-showcase
  • Plugin version: 3.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Aug 25, 2023
  • Number of updates: 178
  • Update frequency: every 17.5 days
  • Top authors: emarket-design (100%)

Code review

54 tests

User reviews

119 reviews

Install metrics

4,000+ active /186,896 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲3.61MB] [CPU: ▲34.68ms] Passed 4 tests

Analyzing server-side resources used by YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.88 ▲3.4272.67 ▲38.20
Dashboard /wp-admin7.02 ▲3.72118.55 ▲71.78
Posts /wp-admin/edit.php7.07 ▲3.7273.02 ▲26.22
Add New Post /wp-admin/post-new.php9.55 ▲3.66126.78 ▲41.30
Media Library /wp-admin/upload.php6.86 ▲3.6369.16 ▲32.98
Support /wp-admin/admin.php?page=youtube_showcase_support6.8656.40
Glossary /wp-admin/admin.php?page=youtube_showcase_glossary6.8368.44
YouTube API /wp-admin/admin.php?page=youtube_showcase_youtube6.8355.41
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=emd_video6.8761.67
All Videos /wp-admin/edit.php?post_type=emd_video7.0267.21
Add New /wp-admin/post-new.php?post_type=emd_video7.0980.09
Settings /wp-admin/admin.php?page=youtube_showcase_settings6.8466.55
Plugins /wp-admin/admin.php?page=youtube_showcase_store6.8755.94
Forms /wp-admin/admin.php?page=youtube_showcase_forms6.8557.75
Getting Started /wp-admin/admin.php?page=youtube_showcase6.8558.16

Server storage [IO: ▲2.94MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 293 new files
Database: 1 new table, 25 new options
New tables
wp_emd_sessions
New WordPress options
youtube_showcase_ent_list
youtube_showcase_version
db_upgraded
emd_form_id_video_search
widget_youtube_showcase_search_videos_widget
youtube_showcase_glob_forms_init_list
youtube_showcase_add_caps
youtube_showcase_shc_list
widget_youtube_showcase_recent_videos_widget
widget_youtube_showcase_featured_videos_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲24014.35 ▼0.002.09 ▲0.4138.82 ▼7.11
Dashboard /wp-admin2,377 ▲2035.65 ▲0.0398.34 ▲11.7955.31 ▲15.71
Posts /wp-admin/edit.php2,282 ▲1822.03 ▲0.0235.50 ▼3.9640.83 ▲1.10
Add New Post /wp-admin/post-new.php1,756 ▲22222.38 ▲4.11635.88 ▲6.8560.01 ▼7.11
Media Library /wp-admin/upload.php1,579 ▲1764.21 ▲0.02101.41 ▲4.5649.67 ▲5.61
Support /wp-admin/admin.php?page=youtube_showcase_support1,2821.8124.5950.99
Glossary /wp-admin/admin.php?page=youtube_showcase_glossary1,1141.8224.3935.25
YouTube API /wp-admin/admin.php?page=youtube_showcase_youtube1,0421.6522.5641.05
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=emd_video1,6372.3029.2739.94
All Videos /wp-admin/edit.php?post_type=emd_video1,3902.2934.5436.70
Add New /wp-admin/post-new.php?post_type=emd_video2,9678.03185.1475.19
Settings /wp-admin/admin.php?page=youtube_showcase_settings1,4092.6635.8136.22
Plugins /wp-admin/admin.php?page=youtube_showcase_store1,3101.8823.7637.25
Forms /wp-admin/admin.php?page=youtube_showcase_forms1,1291.9934.4331.96
Getting Started /wp-admin/admin.php?page=youtube_showcase2,6902.3130.2287.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_emd_sessions
  • The uninstall procedure has failed, leaving 24 options in the database
    • widget_youtube_showcase_recent_videos_widget
    • emd_activated_plugins
    • category_children
    • widget_theysaidso_widget
    • widget_youtube_showcase_featured_videos_widget
    • youtube_showcase_version
    • youtube_showcase_glob_forms_list
    • youtube_showcase_glob_list
    • youtube_showcase_ent_list
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-items-header.php
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-grid-header.php
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-items-footer.php
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-search-footer.php
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-indicators-footer.php
    • > /wp-content/plugins/youtube-showcase/layouts/shc-video-grid-footer.php
  • 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/youtube-showcase/layouts/integration-video-gallery.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/youtube-showcase/layouts/single-emd-video.php:2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/youtube-showcase/layouts/widget-recent-videos-content.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-showcase/assets/ext/emd-session/includes/emd-wp-session.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/youtube-showcase/layouts/shc-video-search-header.php:2
    • > PHP Warning
      Use of undefined constant YOUTUBE_SHOWCASE_PLUGIN_URL - assumed 'YOUTUBE_SHOWCASE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/youtube-showcase/includes/admin/plugin-support.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/youtube-showcase/layouts/shc-video-items-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-showcase/includes/admin/shortcode-list-functions.php:2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/youtube-showcase/layouts/widget-search-videos-content.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/youtube-showcase/layouts/shc-video-grid-content.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
5 plugin tags: video, video gallery, youtube, youtube gallery, youtube channel

youtube-showcase/youtube-showcase.php Passed 13 tests

This is the main PHP file of "YouTube Video Gallery by YouTube Showcase – Video Gallery Plugin for WordPress" version 3.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
YouTube Showcase is a powerful but simple-to-use YouTube video gallery plugin with responsive frontend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin27,267 lines of code in 210 files:
LanguageFilesBlank linesComment linesLines of code
PHP1178293,72619,283
JavaScript534817065,534
CSS391131222,448
SVG1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity18.42
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes00.00%
▷ Concrete classes59100.00%
▷ Final classes23.39%
Methods334
▷ Static methods21363.77%
▷ Public methods31694.61%
▷ Protected methods133.89%
▷ Private methods51.50%
Functions211
▷ Named functions21099.53%
▷ Anonymous functions10.47%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
69 compressed PNG files occupy 0.74MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/rgb.png2.79KB2.88KB0.00%
assets/img/custom-video-pages.png4.82KB4.97KB0.00%
assets/ext/emd-meta-box/css/select2/select2x2.png0.83KB0.77KB▼ 6.15%
assets/img/multimedia-stat.png2.81KB2.89KB0.00%
assets/img/jui-img/ui-bg_glass_65_ffffff_1x400.png0.09KB0.10KB0.00%