77% yourchannel

Code Review | YourChannel: Everything you want in a YouTube plugin.

WordPress plugin YourChannel: Everything you want in a YouTube plugin. scored77%from 54 tests.

About plugin

  • Plugin page: yourchannel
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Nov 17, 2023
  • Number of updates: 420
  • Update frequency: every 7.6 days
  • Top authors: plugin.builders (100%)

Code review

54 tests

User reviews

75 reviews

Install metrics

10,000+ active /435,094 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.19ms] Passed 4 tests

Server-side resources used by YourChannel: Everything you want in a YouTube plugin.
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.93 ▼1.08
Dashboard /wp-admin3.34 ▼0.0146.45 ▼15.00
Posts /wp-admin/edit.php3.39 ▲0.0345.89 ▼1.76
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.78 ▲1.10
Media Library /wp-admin/upload.php3.26 ▲0.0434.45 ▲1.28

Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
yrc_version
yrc_upgrade_nag_dismisses

Browser metrics Passed 4 tests

YourChannel: Everything you want in a YouTube plugin.: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15013.41 ▼1.308.02 ▲6.4244.16 ▲0.18
Dashboard /wp-admin2,235 ▲555.64 ▼0.0199.83 ▲14.2545.36 ▲7.66
Posts /wp-admin/edit.php2,149 ▲492.07 ▲0.0640.34 ▲3.8936.55 ▲2.37
Add New Post /wp-admin/post-new.php1,577 ▲5124.95 ▲2.11622.87 ▲34.6060.10 ▲4.74
Media Library /wp-admin/upload.php1,437 ▲374.16 ▼0.0994.69 ▼0.9243.36 ▲1.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • yrc_version
    • widget_recent-comments
    • yrc_upgrade_nag_dismisses
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/yourchannel/templates/templates.php
    • > /wp-content/plugins/yourchannel/stream/api.php
    • > /wp-content/plugins/yourchannel/stream/stream.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/yourchannel/shortcode/instructions.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPB_YourChannel' not found in wp-content/plugins/yourchannel/templates/templates.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yourchannel/templates/promotions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in yourchannel/assets to your readme.txt
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

yourchannel/YourChannel.php 69% from 13 tests

This is the main PHP file of "YourChannel: Everything you want in a YouTube plugin." version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yourchannel.php" instead of "YourChannel.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,667 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46622343,413
PHP6267751,456
CSS4249481,245
PO File2241255514
SVG10039

PHP code Passed 2 tests

This is a short overview 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.29
Average class complexity47.00
▷ Minimum class complexity3.00
▷ Maximum class complexity81.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods65
▷ Static methods1421.54%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/youtube-icon.png13.21KB7.05KB▼ 46.67%