90% gosign-youtube-video-player-block

Code Review | Gosign - Youtube Video Player Block

WordPress plugin Gosign - Youtube Video Player Block scored90%from 54 tests.

About plugin

  • Plugin page: gosign-youtube-vi...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8+
  • WordPress version: 6.3.1
  • First release: Apr 23, 2019
  • Latest release: Aug 12, 2021
  • Number of updates: 17
  • Update frequency: every 49.7 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼7.98ms] Passed 4 tests

A check of server-side resources used by Gosign - Youtube Video Player Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.71 ▼7.20
Dashboard /wp-admin3.31 ▼0.0353.36 ▼8.10
Posts /wp-admin/edit.php3.36 ▲0.0149.28 ▼6.00
Add New Post /wp-admin/post-new.php5.84 ▼0.0595.22 ▼10.60
Media Library /wp-admin/upload.php3.23 ▲0.0134.33 ▼3.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gosign - Youtube Video Player Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.55 ▼1.041.71 ▼0.3139.78 ▼6.33
Dashboard /wp-admin2,203 ▲155.81 ▲0.92108.49 ▲1.3440.84 ▼2.55
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0840.62 ▼0.6833.89 ▼2.29
Add New Post /wp-admin/post-new.php6,366 ▲4,83222.71 ▼0.55855.81 ▲174.5158.17 ▲7.03
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.00100.29 ▼3.9541.95 ▼4.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid version format
The official readme.txt might help

gosign-youtube-video-player-block/gosign-youtube-video-player-block.php Passed 13 tests

This is the main PHP file of "Gosign - Youtube Video Player Block" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Add Youtube Video Player with customised options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin318 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript244130161
Markdown126087
PHP1259569
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.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%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500-rtl.png87.63KB37.93KB▼ 56.71%
assets/images/ybtn-black.png1.21KB1.04KB▼ 14.31%
assets/icon-128x128.png4.45KB2.36KB▼ 46.88%
assets/banner-772x250.png59.99KB26.41KB▼ 55.97%
assets/icon-256x256.png9.02KB4.47KB▼ 50.41%