78% go-high-level-extension-for-gravity-form

Code Review | Go high level (GHL) extension for Gravity Form

WordPress plugin Go high level (GHL) extension for Gravity Form scored78%from 54 tests.

About plugin

  • Plugin page: go-high-level-ext...
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2023
  • Latest release: Oct 17, 2023
  • Number of updates: 21
  • Update frequency: every 9.3 days
  • Top authors: ibartsltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.92ms] Passed 4 tests

This is a short check of server-side resources used by Go high level (GHL) extension for Gravity Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.87 ▼1.26
Dashboard /wp-admin3.31 ▲0.0049.31 ▼4.42
Posts /wp-admin/edit.php3.36 ▲0.0054.46 ▲4.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.78 ▼11.59
Media Library /wp-admin/upload.php3.23 ▲0.0040.88 ▲1.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Go high level (GHL) extension for Gravity Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.411.64 ▼0.2643.85 ▼0.98
Dashboard /wp-admin2,198 ▲185.63 ▼0.0387.33 ▼3.3640.49 ▼4.63
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0138.29 ▼0.0335.38 ▲1.70
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.00663.04 ▼25.0670.21 ▲8.63
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0897.01 ▼11.8039.70 ▼8.50

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/go-high-level-extension-for-gravity-form/public/partials/ghl-gf-extension-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/go-high-level-extension-for-gravity-form/admin/partials/ghl-gf-extension-admin-display.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/go-high-level-extension-for-gravity-form/admin/partials/ghl-gf-extension-global-tag.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

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
6 plugin tags: go high level, addons, ghl, gfapi, extensions...

go-high-level-extension-for-gravity-form/ghl-gf-extension.php 85% from 13 tests

The main file in "Go high level (GHL) extension for Gravity Form" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("go-high-level-extension-for-gravity-form.php" instead of "ghl-gf-extension.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin414 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13141552330
CSS29881
JavaScript12273

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin