100% jvh-gridbuilder-wpbakery-vc-element

Code Review | JVH Gridbuilder WPBakery VC Element

WordPress plugin JVH Gridbuilder WPBakery VC Element scored 100% from 54 tests.

About plugin

  • Plugin page: jvh-gridbuilder-w...
  • Plugin version: 2.7.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: May 12, 2021
  • Latest release: Mar 25, 2022
  • Number of updates: 141
  • Update frequency: every 2.3 days
  • Top authors: jaapjvh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,176 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼294.21ms] Passed 4 tests

Analyzing server-side resources used by JVH Gridbuilder WPBakery VC Element
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2761.20 ▲3.05
Dashboard /wp-admin3.63 ▲0.2244.20 ▲1.31
Posts /wp-admin/edit.php3.85 ▲0.2143.44 ▼0.29
Add New Post /wp-admin/post-new.php7.16 ▲0.1998.05 ▼1,173.25
Media Library /wp-admin/upload.php3.57 ▲0.2726.81 ▼4.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for JVH Gridbuilder WPBakery VC Element
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,803 ▲4916.01 ▲0.245.86 ▼0.643.29 ▲1.01
Dashboard /wp-admin2,900 ▲396.19 ▲0.03120.18 ▼15.86162.96 ▼0.92
Posts /wp-admin/edit.php2,699 ▲53.27 ▲0.0464.00 ▲2.41136.74 ▼11.21
Add New Post /wp-admin/post-new.php1,669 ▼4216.34 ▼4.97404.29 ▼51.10150.42 ▼1.44
Media Library /wp-admin/upload.php1,706 ▲85.57 ▲0.04126.54 ▼21.03188.88 ▲2.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: jvh

jvh-gridbuilder-wpbakery-vc-element/jvh-gridbuilder-vc.php 92% from 13 tests

The main PHP script in "JVH Gridbuilder WPBakery VC Element" version 2.7.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jvh-gridbuilder-wpbakery-vc-element.php" instead of "jvh-gridbuilder-vc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,182 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP134418762,087
JavaScript325187
CSS1108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.60
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods145
▷ Static methods138.97%
▷ Public methods5840.00%
▷ Protected methods21.38%
▷ Private methods8558.62%
Functions11
▷ Named functions218.18%
▷ Anonymous functions981.82%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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