66% add-youtube-feed

Code Review | Arrow Video Feed, Custom Video Channel Feed

WordPress plugin Arrow Video Feed, Custom Video Channel Feed scored66%from 54 tests.

About plugin

  • Plugin page: add-youtube-feed
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 27, 2017
  • Latest release: May 30, 2022
  • Number of updates: 52
  • Update frequency: every 37.4 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /24,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Arrow Video Feed, Custom Video Channel Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1137.93 ▼1.87
Dashboard /wp-admin3.44 ▲0.1450.53 ▼0.99
Posts /wp-admin/edit.php3.56 ▲0.2056.76 ▲8.78
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.79 ▼11.31
Media Library /wp-admin/upload.php3.34 ▲0.1137.94 ▲3.41
Add New /wp-admin/post-new.php?post_type=utbap_youtube_feed3.5579.41
Support /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_form_support3.3736.90
Rate us /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_rate_us_plugins3.3434.51
Our Plugins /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_our_plugins3.3436.27
All YouTube Feeds /wp-admin/edit.php?post_type=utbap_youtube_feed3.4141.49

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Arrow Video Feed, Custom Video Channel Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,107 ▲36115.37 ▲0.976.10 ▲4.3338.06 ▼4.07
Dashboard /wp-admin2,404 ▲2136.65 ▲1.76132.16 ▲21.3740.79 ▼6.63
Posts /wp-admin/edit.php2,310 ▲2213.57 ▲1.5757.40 ▲16.5033.72 ▲0.49
Add New Post /wp-admin/post-new.php1,560 ▲4623.37 ▲5.87639.66 ▼18.0436.85 ▼14.96
Media Library /wp-admin/upload.php1,443 ▲554.31 ▲0.1678.99 ▼18.3740.92 ▼2.78
Add New /wp-admin/post-new.php?post_type=utbap_youtube_feed3,4328.86419.06159.65
Support /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_form_support1,1043.3939.5536.33
Rate us /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_rate_us_plugins1,0403.2741.9028.00
Our Plugins /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_our_plugins1,1823.1638.95140.24
All YouTube Feeds /wp-admin/edit.php?post_type=utbap_youtube_feed1,2713.6448.2826.47

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=utbap_youtube_feed&page=utbap_form_support
    • > Notice in wp-content/plugins/add-youtube-feed/includes/utbap-support-page.php+460
    Undefined variable: _SESSION

SRP 0% from 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-youtube-feed/includes/utbap-rate-us.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/add-youtube-feed/includes/utbap-shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/add-youtube-feed/includes/utbap-our-plugins.php:81

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=utbap_youtube_feed
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
    • > GET request to /wp-admin/post-new.php?post_type=utbap_youtube_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/post-new.php?post_type=utbap_youtube_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (2.), #3 (4.), #5 (6.)
Please take inspiration from this readme.txt

add-youtube-feed/youtube-by-arrowplugins.php 92% from 13 tests

Analyzing the main PHP file in "Arrow Video Feed, Custom Video Channel Feed" version 1.1.1
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-youtube-feed.php" instead of "youtube-by-arrowplugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,452 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS64002433,337
PHP113651382,081
JavaScript66471741,514
SVG100520

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
21 compressed PNG files occupy 1.27MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/Minimum.png16.85KB17.99KB0.00%
includes/images/fb-promo.png211.04KB90.53KB▼ 57.10%
includes/images/Full.png23.32KB24.49KB0.00%
includes/images/popup.png35.93KB37.39KB0.00%
includes/images/inline.png46.82KB49.03KB0.00%