94% advance-video-for-gutenberg

Code Review | Gutenberg Advance Video

WordPress plugin Gutenberg Advance Video scored 94% 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: 5.9.2
  • 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 / 653 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼303.35ms] Passed 4 tests

Analyzing server-side resources used by Gutenberg Advance Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0455.60 ▲2.22
Dashboard /wp-admin3.42 ▲0.0132.70 ▼2.01
Posts /wp-admin/edit.php3.66 ▲0.0135.40 ▼4.23
Add New Post /wp-admin/post-new.php6.90 ▼0.0890.81 ▼1,206.21
Media Library /wp-admin/upload.php3.31 ▲0.0122.73 ▼0.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Gutenberg Advance Video: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4315.83 ▲0.055.83 ▼0.072.96 ▲0.12
Dashboard /wp-admin2,895 ▲346.14 ▼0.06117.50 ▼22.05166.99 ▲1.48
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0160.92 ▼3.23135.01 ▼5.54
Add New Post /wp-admin/post-new.php1,672 ▲1216.59 ▼0.28385.67 ▼54.12161.25 ▲2.55
Media Library /wp-admin/upload.php1,695 ▼35.53 ▼0.02154.61 ▲6.98188.57 ▼1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: video, gutenberg, block

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

The main PHP file in "Gutenberg Advance Video" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected20,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

Analyzing cyclomatic complexity and code structure
No complexity issues 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin