78% jetgridbuilder

Code Review | JetGridBuilder — Grid Builder for Elementor and Gutenberg

WordPress plugin JetGridBuilder — Grid Builder for Elementor and Gutenberg scored78%from 54 tests.

About plugin

  • Plugin page: jetgridbuilder
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Jun 1, 2022
  • Number of updates: 10
  • Update frequency: every 62.9 days
  • Top authors: crocoblock (80%)jetmonsters (30%)

Code review

54 tests

User reviews

5 reviews

Install metrics

7,000+ active /58,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼5.59ms] Passed 4 tests

A check of server-side resources used by JetGridBuilder — Grid Builder for Elementor and Gutenberg
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3442.16 ▲2.43
Dashboard /wp-admin3.54 ▲0.2049.37 ▼23.26
Posts /wp-admin/edit.php3.66 ▲0.3048.38 ▲0.88
Add New Post /wp-admin/post-new.php7.49 ▲1.61102.42 ▲3.29
Media Library /wp-admin/upload.php3.47 ▲0.2433.44 ▼2.41

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for JetGridBuilder — Grid Builder for Elementor and Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲24722.04 ▲7.29155.65 ▲153.8483.07 ▲42.44
Dashboard /wp-admin2,209 ▲186.01 ▲0.1992.43 ▼14.0937.77 ▼1.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0233.99 ▼1.3934.47 ▼0.10
Add New Post /wp-admin/post-new.php6,323 ▲4,80120.31 ▼2.84866.72 ▲223.9436.22 ▼21.04
Media Library /wp-admin/upload.php1,382 ▼94.17 ▼0.0497.18 ▲0.6141.57 ▼2.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jetgridbuilder/templates/items/woocommerce-item-content-overlay.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/item-term.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/woocommerce-item-jet-woo-builder.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/jetengine-listing-item.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/woocommerce-item-default.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/post-content-item.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/item-default.php
    • > /wp-content/plugins/jetgridbuilder/templates/items/item-content-overlay.php
  • 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/jetgridbuilder/templates/common-elements/loading-spinner.php:38
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/post-item/post-item-content-body-style.php:6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/jetgridbuilder/templates/common-elements/loading-spinner.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/post-item/post-item-style.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/post-item/post-item-description-style.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/term-item/term-item-description-style.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/term-item/term-item-title-style.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/post-item/post-item-divider-style.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/jetgridbuilder/includes/widgets/controls/term-item/term-item-divider-style.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Posts_Grid_Builder\\add_action() in wp-content/plugins/jetgridbuilder/includes/plugin.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

jetgridbuilder/jet-grid-builder.php 85% from 13 tests

This is the main PHP file of "JetGridBuilder — Grid Builder for Elementor and Gutenberg" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jetgridbuilder.php" instead of "jet-grid-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected16,839 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91,1471,4919,329
PHP487515304,464
Sass49583972,961
CSS43263
SVG10020
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.53
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods96
▷ Static methods22.08%
▷ Public methods9093.75%
▷ Protected methods44.17%
▷ Private methods22.08%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants7
▷ Global constants7100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/no-image.png1.61KB1.81KB0.00%