79% gf-infusionsoft

Code Review | WP Gravity Forms Keap/Infusionsoft

WordPress plugin WP Gravity Forms Keap/Infusionsoft scored79%from 54 tests.

About plugin

  • Plugin page: gf-infusionsoft
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 26
  • Update frequency: every 67.0 days
  • Top authors: CRMPerks (80.77%)asif876 (23.08%)

Code review

54 tests

User reviews

37 reviews

Install metrics

700+ active /12,115 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▼2.19ms] Passed 4 tests

Analyzing server-side resources used by WP Gravity Forms Keap/Infusionsoft
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3939.40 ▲2.94
Dashboard /wp-admin3.76 ▲0.4546.53 ▼0.79
Posts /wp-admin/edit.php3.81 ▲0.4548.21 ▲2.34
Add New Post /wp-admin/post-new.php6.27 ▲0.3885.17 ▼5.36
Media Library /wp-admin/upload.php3.61 ▲0.3836.92 ▼4.94

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_infusionsoft_log
wp_vxg_infusionsoft_accounts
wp_vxg_infusionsoft
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
vxg_infusionsoft_pro_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Gravity Forms Keap/Infusionsoft
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.131.55 ▼0.2339.29 ▼4.62
Dashboard /wp-admin2,234 ▲824.82 ▼0.87109.39 ▲8.8041.15 ▲2.13
Posts /wp-admin/edit.php2,114 ▲251.99 ▼0.0136.88 ▲1.0636.14 ▲1.07
Add New Post /wp-admin/post-new.php1,561 ▲2818.09 ▼4.90639.69 ▼48.0351.27 ▼2.55
Media Library /wp-admin/upload.php1,410 ▲224.24 ▲0.0897.94 ▼18.1341.97 ▼7.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxg_infusionsoft_accounts
    • wp_vxg_infusionsoft_log
    • wp_vxg_infusionsoft
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • vxg_infusionsoft_pro_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gravity forms infusionsoft by keap, infusionsoft gravity forms integration, gravity forms, gravity forms infusionsoft, keap

gf-infusionsoft/gf-infusionsoft.php 92% from 13 tests

The principal PHP file in "WP Gravity Forms Keap/Infusionsoft" v. 1.1.9 is loaded by WordPress automatically on each request
The following require your attention:
  • 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 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected8,442 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP208481,0258,436
JavaScript2105
CSS1001

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity141.75
▷ Minimum class complexity6.00
▷ Maximum class complexity367.00
Average method complexity7.09
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods185
▷ Static methods31.62%
▷ Public methods17594.59%
▷ Protected methods00.00%
▷ Private methods105.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/filtered.png1.47KB0.48KB▼ 67.40%
images/active0.png0.22KB0.18KB▼ 16.67%
images/updated.png1.53KB0.50KB▼ 67.37%
images/active1.png0.21KB0.18KB▼ 16.89%
images/created.png1.52KB0.50KB▼ 67.24%