78% youtube-master

Code Review | TechGasp Tube Master

WordPress plugin TechGasp Tube Master scored78%from 54 tests.

About plugin

  • Plugin page: youtube-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 51
  • Update frequency: every 55.3 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /51,171 total downloads

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.10MB] [CPU: ▼1.09ms] Passed 4 tests

A check of server-side resources used by TechGasp Tube Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.44 ▲0.97
Dashboard /wp-admin3.41 ▲0.1046.05 ▼2.13
Posts /wp-admin/edit.php3.52 ▲0.1648.19 ▲1.44
Add New Post /wp-admin/post-new.php5.99 ▲0.1094.60 ▲7.98
Media Library /wp-admin/upload.php3.33 ▲0.1034.13 ▼4.64
Tube Master /wp-admin/admin.php?page=youtube-master3.3130.82
Add-ons /wp-admin/admin.php?page=youtube-master-admin-addons3.3543.58

Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_youtube_master_widget_hangouts_basic
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_youtube_master_widget_buttons
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for TechGasp Tube Master
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.59 ▼1.141.72 ▼0.1640.45 ▼9.10
Dashboard /wp-admin2,235 ▲504.93 ▼0.9498.64 ▼11.4966.47 ▲23.37
Posts /wp-admin/edit.php2,118 ▲291.99 ▼0.0137.93 ▲0.4534.11 ▼1.32
Add New Post /wp-admin/post-new.php1,536 ▼623.17 ▲4.69673.28 ▲67.3962.93 ▲2.30
Media Library /wp-admin/upload.php1,414 ▲234.22 ▲0.0496.36 ▼1.3682.17 ▲39.30
Tube Master /wp-admin/admin.php?page=youtube-master1,7668.01212.0177.69
Add-ons /wp-admin/admin.php?page=youtube-master-admin-addons1,0972.0225.0945.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_youtube_master_widget_hangouts_basic
    • widget_youtube_master_widget_buttons
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/youtube-master/includes/youtube-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/youtube-master/includes/youtube-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-master/includes/youtube-master-widget-youtube-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/youtube-master/includes/youtube-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-master/includes/youtube-master-widget-youtube-hangouts-basic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/youtube-master/includes/youtube-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/youtube-master/includes/youtube-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/youtube-master/youtube-master.php:53

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=youtube-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=youtube-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=youtube-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=youtube-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

youtube-master/youtube-master.php 92% from 13 tests

The main PHP script in "TechGasp Tube Master" version 5.1.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin603 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP103074603

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.28MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-check-yes.png22.22KB7.59KB▼ 65.83%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-minilogo-16.png1.86KB0.92KB▼ 50.87%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%