83% yt-sticky-video

Code Review | Sticky Video for Youtube

WordPress plugin Sticky Video for Youtube scored 83% from 54 tests.

About plugin

  • Plugin page: yt-sticky-video
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Apr 27, 2022
  • Latest release: Apr 27, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: patelmohip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 944 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.01MB] [CPU: ▼0.97ms] Passed 4 tests

Server-side resources used by Sticky Video for Youtube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.03 ▲2.36
Dashboard /wp-admin3.32 ▲0.0143.51 ▼6.19
Posts /wp-admin/edit.php3.37 ▲0.0146.72 ▲2.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.73 ▼2.33
Media Library /wp-admin/upload.php3.24 ▲0.0138.48 ▲3.13

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Sticky Video for Youtube: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.62 ▼1.058.74 ▲6.9641.31 ▼6.86
Dashboard /wp-admin2,206 ▲155.82 ▲0.9395.61 ▼9.1439.94 ▼4.18
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0138.97 ▲3.3635.20 ▼0.41
Add New Post /wp-admin/post-new.php6,592 ▲5,07329.36 ▲6.13829.32 ▲148.6835.96 ▼24.91
Media Library /wp-admin/upload.php1,382 ▼34.20 ▼0.0194.44 ▼9.0341.63 ▼3.85

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/yt-sticky-video/youtube-customize-sticky-video.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Screenshot-1.png), #2 (Screenshot-2.png), #3 (Screenshot-3.png), #4 (Screenshot-4.png), #5 (Screenshot-5.png)
Please take inspiration from this readme.txt

yt-sticky-video/youtube-customize-sticky-video.php 85% from 13 tests

The main file in "Sticky Video for Youtube" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("yt-sticky-video.php" instead of "youtube-customize-sticky-video.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
Everything looks great! No dangerous files found in this plugin28,661 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JSON30027,993
JavaScript557170488
PHP31470102
CSS391957
Sass22020
Markdown1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/assets/images/close-button.png9.89KB6.61KB▼ 33.12%