83% integration-for-luminate-and-gravity-forms

Code Review | Integration for Luminate and Gravity Forms

WordPress plugin Integration for Luminate and Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: integration-for-l...
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Feb 3, 2023
  • Number of updates: 42
  • Update frequency: every 54.5 days
  • Top authors: rxnlabs (54.76%)drywallbmb (38.1%)kenjigarland (11.9%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Integration for Luminate and Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.55 ▼7.46
Dashboard /wp-admin3.32 ▼0.0247.18 ▼18.03
Posts /wp-admin/edit.php3.37 ▲0.0243.46 ▼8.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.07 ▼10.95
Media Library /wp-admin/upload.php3.25 ▲0.0235.88 ▼1.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for Luminate and Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.411.94 ▼0.0744.32 ▲1.02
Dashboard /wp-admin2,192 ▲155.59 ▼0.0884.83 ▼9.4441.26 ▲0.08
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0333.78 ▼3.1532.23 ▼3.63
Add New Post /wp-admin/post-new.php1,545 ▼023.15 ▼0.06661.87 ▼27.5956.41 ▲1.48
Media Library /wp-admin/upload.php1,394 ▼34.23 ▼0.0198.20 ▼6.4542.55 ▼1.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/integration-for-luminate-and-gravity-forms/gravityforms-luminate.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/integration-for-luminate-and-gravity-forms/gravityforms-luminate.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/integration-for-luminate-and-gravity-forms/inc/class-gf-luminate.php:15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/integration-for-luminate-and-gravity-forms/gravityforms-luminate.php on line 13

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: integration, forms, crm

integration-for-luminate-and-gravity-forms/gravityforms-luminate.php 77% from 13 tests

Analyzing the main PHP file in "Integration for Luminate and Gravity Forms" version 1.3.2
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 200 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("integration-for-luminate-and-gravity-forms.php" instead of "gravityforms-luminate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,680 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP65297412,436
CSS6121271,692
Sass3521211,284
JavaScript44524210
JSON10035
SVG10123

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity62.00
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods94
▷ Static methods1515.96%
▷ Public methods9196.81%
▷ Protected methods11.06%
▷ Private methods22.13%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/vendor/hideshowpassword/wink.png0.39KB0.42KB0.00%
assets/images/cshp-logo.png17.61KB8.19KB▼ 53.47%