90% gosign-vimeo-video-player-block

Code Review | Gosign - Vimeo Video Player Block

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

About plugin

  • Plugin page: gosign-vimeo-vide...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8+
  • WordPress version: 6.3.1
  • First release: May 20, 2019
  • Latest release: Oct 7, 2021
  • Number of updates: 19
  • Update frequency: every 46.6 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,178 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.19ms] Passed 4 tests

Server-side resources used by Gosign - Vimeo Video Player Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▼5.63
Dashboard /wp-admin3.32 ▼0.0259.92 ▼9.01
Posts /wp-admin/edit.php3.37 ▲0.0248.47 ▼1.16
Add New Post /wp-admin/post-new.php5.85 ▼0.0485.73 ▼12.96
Media Library /wp-admin/upload.php3.25 ▲0.0237.33 ▲0.98

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

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

Browser metrics Passed 4 tests

Gosign - Vimeo Video Player Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.20 ▼0.151.78 ▼0.6354.10 ▲10.50
Dashboard /wp-admin2,195 ▲185.66 ▲0.0989.55 ▼12.6539.96 ▼6.20
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0136.69 ▲2.5832.73 ▼2.86
Add New Post /wp-admin/post-new.php6,369 ▲4,84327.36 ▲4.37879.61 ▲200.3859.43 ▲8.35
Media Library /wp-admin/upload.php1,391 ▼124.18 ▼0.0196.64 ▼6.8742.56 ▼4.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

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

The entry point to "Gosign - Vimeo Video Player Block" version 2.0.5 is a PHP file that has certain tags in its header comment area
47 characters long description:
Add Vimeo 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
There were no executable files found in this plugin159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown124086
PHP1259569
JavaScript2043
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ybtn-black.png1.21KB1.04KB▼ 14.31%
assets/images/ybtn-red.png0.99KB0.83KB▼ 16.83%