90% jvh-gridbuilder-wpbakery-vc-element

Code Review | JVH Gridbuilder WPBakery VC Element

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

About plugin

  • Plugin page: jvh-gridbuilder-w...
  • Plugin version: 2.7.8
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: May 12, 2021
  • Latest release: Nov 23, 2022
  • Number of updates: 151
  • Update frequency: every 4.1 days
  • Top authors: jaapjvh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,846 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
Install script ran successfully

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

An overview of server-side resources used by JVH Gridbuilder WPBakery VC Element
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.21 ▲1.68
Dashboard /wp-admin3.32 ▲0.0147.50 ▼8.92
Posts /wp-admin/edit.php3.37 ▲0.0146.85 ▲1.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.26 ▼15.45
Media Library /wp-admin/upload.php3.24 ▲0.0136.97 ▲5.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for JVH Gridbuilder WPBakery VC Element
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.78 ▲0.501.86 ▼0.0942.87 ▼1.02
Dashboard /wp-admin2,203 ▲295.66 ▲0.0785.49 ▼6.1039.24 ▼1.22
Posts /wp-admin/edit.php2,108 ▲82.06 ▲0.0637.66 ▲2.2336.31 ▼0.21
Add New Post /wp-admin/post-new.php1,534 ▲823.15 ▲5.58690.91 ▲2.5852.91 ▼0.68
Media Library /wp-admin/upload.php1,408 ▲84.29 ▲0.13110.73 ▲9.2746.75 ▼0.57

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: jvh

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

The primary PHP file in "JVH Gridbuilder WPBakery VC Element" version 2.7.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,195 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP134448762,098
JavaScript325189
CSS1108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity24.70
▷ 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 methods2114.48%
▷ Public methods6645.52%
▷ Protected methods21.38%
▷ Private methods7753.10%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin