78% video-player-for-wpbakery

Code Review | Video Player for WPBakery

WordPress plugin Video Player for WPBakery scored78%from 54 tests.

About plugin

  • Plugin page: video-player-for-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Jan 6, 2023
  • Number of updates: 6
  • Update frequency: every 134.3 days
  • Top authors: nutttaro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /4,536 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.04MB] [CPU: ▼11.96ms] Passed 4 tests

Analyzing server-side resources used by Video Player for WPBakery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.01 ▲1.58
Dashboard /wp-admin3.35 ▲0.0540.26 ▼4.52
Posts /wp-admin/edit.php3.40 ▲0.0445.00 ▼3.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0474.27 ▼35.62
Media Library /wp-admin/upload.php3.27 ▲0.0433.46 ▼4.20

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Video Player for WPBakery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.25 ▼1.341.60 ▼0.2037.66 ▼1.35
Dashboard /wp-admin2,215 ▲274.86 ▼0.05115.89 ▲1.9744.35 ▲2.20
Posts /wp-admin/edit.php2,097 ▲82.18 ▲0.1335.85 ▼4.6935.67 ▼1.56
Add New Post /wp-admin/post-new.php1,542 ▲723.05 ▼0.06642.94 ▼10.6152.82 ▲4.55
Media Library /wp-admin/upload.php1,397 ▲94.20 ▼0.0696.88 ▲2.8241.56 ▼5.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/video-player-for-wpbakery/video-player-for-wpbakery.php
    • > /wp-content/plugins/video-player-for-wpbakery/templates/embed.php
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: controls in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 3
    • > PHP Notice
      Undefined variable: muted in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 3
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 4
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 3
    • > PHP Notice
      Undefined variable: mime_type in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 4
    • > PHP Notice
      Undefined variable: el_class in wp-content/plugins/video-player-for-wpbakery/templates/embed.php on line 1
    • > PHP Notice
      Undefined variable: el_id in wp-content/plugins/video-player-for-wpbakery/templates/embed.php on line 1
    • > PHP Notice
      Undefined variable: autoplay in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 3
    • > PHP Notice
      Undefined variable: el_id in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 1
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/video-player-for-wpbakery/templates/video-html5.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
These attributes need your attention: The official readme.txt is a good inspiration

video-player-for-wpbakery/video-player-for-wpbakery.php Passed 13 tests

The main file in "Video Player for WPBakery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
128 characters long description:
Video Player add-on for WPBakery Page Builder allow add YouTube, Vimeo and Self-Hosted videos (HTML5) to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin315 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP43574237
SVG10165
CSS11112
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin