89% tube-video-widget-using-post-meta

Code Review | Related Video Widget For Post From Youtube

WordPress plugin Related Video Widget For Post From Youtube scored 89% from 54 tests.

About plugin

  • Plugin page: tube-video-widget...
  • Plugin version: 5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Feb 27, 2023
  • Number of updates: 52
  • Update frequency: every 52.2 days
  • Top authors: amanhstu (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 3,196 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.69MB] [CPU: ▼18.86ms] Passed 4 tests

This is a short check of server-side resources used by Related Video Widget For Post From Youtube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.89 ▼1.93
Dashboard /wp-admin3.32 ▲0.0146.41 ▼0.76
Posts /wp-admin/edit.php3.37 ▲0.0142.97 ▼8.33
Add New Post /wp-admin/post-new.php3.10 ▼2.7835.68 ▼64.41
Media Library /wp-admin/upload.php3.24 ▲0.0135.85 ▲2.23

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_amanhstu_id
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Related Video Widget For Post From Youtube
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.001.65 ▼0.0542.88 ▼3.62
Dashboard /wp-admin2,203 ▲155.83 ▲0.9396.66 ▼6.5937.46 ▼8.62
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0035.48 ▼5.4132.20 ▼5.00
Add New Post /wp-admin/post-new.php6,471 ▲4,92923.03 ▲4.59862.08 ▲259.5860.27 ▲4.14
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.0393.81 ▼8.1642.04 ▼1.70

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_amanhstu_id
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 90% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (The screenshot description corresponds to screenshot-1.png), #2 (The screenshot description corresponds to screenshot-2.png), #3 (The screenshot description corresponds to screenshot-3.png)
Please take inspiration from this readme.txt

tube-video-widget-using-post-meta/videowidget.php 85% from 13 tests

This is the main PHP file of "Related Video Widget For Post From Youtube" version 5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 194 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("tube-video-widget-using-post-meta.php" instead of "videowidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2714374

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
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
3 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png66.70KB27.80KB▼ 58.32%
screenshot-3.png111.75KB36.17KB▼ 67.63%
screenshot-2.png80.77KB33.33KB▼ 58.74%