84% advance-video-for-gutenberg

Code Review | Gutenberg Advance Video

WordPress plugin Gutenberg Advance Video scored84%from 54 tests.

About plugin

  • Plugin page: advance-video-for...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9
  • WordPress version: 6.3.1
  • First release: Mar 15, 2018
  • Latest release: Mar 20, 2018
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: EDGARROJAS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

An overview of server-side resources used by Gutenberg Advance Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.92 ▼3.53
Dashboard /wp-admin3.31 ▲0.0147.63 ▼23.80
Posts /wp-admin/edit.php3.37 ▲0.0146.48 ▼7.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.60 ▼28.16
Media Library /wp-admin/upload.php3.24 ▲0.0140.36 ▲3.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gutenberg Advance Video
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▲0.032.14 ▲0.4044.62 ▼0.57
Dashboard /wp-admin2,195 ▲185.60 ▲0.0186.30 ▼0.6236.10 ▼3.38
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0535.81 ▼3.3733.74 ▼1.99
Add New Post /wp-admin/post-new.php1,544 ▲1823.07 ▲0.07690.66 ▲27.2162.29 ▲12.74
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0398.56 ▼8.2841.42 ▼7.09

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advance-video-for-gutenberg/gutenberg-advance-video.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: gutenberg, block, video

advance-video-for-gutenberg/gutenberg-advance-video.php 92% from 13 tests

"Gutenberg Advance Video" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advance-video-for-gutenberg.php" instead of "gutenberg-advance-video.php")

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
Everything looks great! No dangerous files found in this plugin20,581 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
JSON31011,171
SVG1002,671
CSS48142,377
Sass1434341,768
LESS1434441,758
JavaScript6020421
TypeScript57016333
JSX201046
PHP18736

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin