84% 2-klick-video-wpbakery

Code Review | 2-Klick Video for WPBakery Page Builder

WordPress plugin 2-Klick Video for WPBakery Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: 2-klick-video-wpb...
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2023
  • Latest release: Feb 12, 2023
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: unit08 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /240 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by 2-Klick Video for WPBakery Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.18 ▲0.69
Dashboard /wp-admin3.32 ▼0.0245.76 ▼15.71
Posts /wp-admin/edit.php3.37 ▲0.0245.25 ▼1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.88 ▲0.53
Media Library /wp-admin/upload.php3.24 ▲0.0134.90 ▲2.64

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 2-Klick Video for WPBakery Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.73 ▲0.1644.34 ▲2.17
Dashboard /wp-admin2,198 ▲215.53 ▼0.2382.18 ▼2.7338.27 ▼3.52
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0334.52 ▼2.2033.31 ▼3.20
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.33590.73 ▼89.0460.01 ▲1.93
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0193.58 ▼0.7040.85 ▼2.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/2-klick-video-wpbakery/twoclickvideo.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: youtube, datenschutz, wpbakery, video, vimeo...

2-klick-video-wpbakery/twoclickvideo.php 85% from 13 tests

This is the main PHP file of "2-Klick Video for WPBakery Page Builder" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("2-klick-video-wpbakery.php" instead of "twoclickvideo.php")
  • Description: The description should be shorter than 140 characters (currently 262 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon-128x128.png3.26KB2.15KB▼ 34.09%