84% gf-engage-add-on

Code Review | Integration for Salsa Engage and Gravity Forms

WordPress plugin Integration for Salsa Engage and Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-engage-add-on
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6.38+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 10
  • Update frequency: every 180.1 days
  • Top authors: kenjigarland (60%)drywallbmb (50%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Integration for Salsa Engage and Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.56 ▼7.01
Dashboard /wp-admin3.31 ▲0.0146.00 ▼2.70
Posts /wp-admin/edit.php3.37 ▲0.0146.00 ▼4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.35 ▼12.44
Media Library /wp-admin/upload.php3.24 ▲0.0130.36 ▼4.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for Salsa Engage and Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▼0.001.81 ▲0.0943.32 ▼0.67
Dashboard /wp-admin2,195 ▲155.58 ▼0.0690.86 ▲5.2036.54 ▼1.97
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0740.08 ▼0.8337.20 ▼0.43
Add New Post /wp-admin/post-new.php1,529 ▲323.38 ▲0.01638.95 ▼60.3554.01 ▼12.06
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0395.19 ▼13.0542.13 ▼4.15

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-engage-add-on/gravityforms-engage.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-engage-add-on/class-gfengage.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: crm, forms, integration

gf-engage-add-on/gravityforms-engage.php 85% from 13 tests

The entry point to "Integration for Salsa Engage and Gravity Forms" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gf-engage-add-on.php" instead of "gravityforms-engage.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,235 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42683701,235

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity33.50
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods920.00%
▷ Public methods4293.33%
▷ Protected methods12.22%
▷ Private methods24.44%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin