68% formlift

Code Review | FormLift for Infusionsoft Web Forms

WordPress plugin FormLift for Infusionsoft Web Forms scored 68% from 54 tests.

About plugin

  • Plugin page: formlift
  • Plugin version: 7.5.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: May 22, 2021
  • Number of updates: 455
  • Update frequency: every 3.8 days
  • Top authors: trainingbusinesspros (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active / 32,352 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.46MB] [CPU: ▲6.51ms] Passed 4 tests

Server-side resources used by FormLift for Infusionsoft Web Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.94 ▲1.4850.05 ▲6.88
Dashboard /wp-admin4.76 ▲1.4555.90 ▲6.10
Posts /wp-admin/edit.php4.87 ▲1.5155.99 ▲6.25
Add New Post /wp-admin/post-new.php7.36 ▲1.47105.67 ▲6.80
Media Library /wp-admin/upload.php4.68 ▲1.4551.90 ▲19.22
Campaigns /wp-admin/edit-tags.php?taxonomy=campaigns&post_type=infusion_form4.6743.74
Licenses /wp-admin/edit.php?post_type=infusion_form&page=formlift_modules4.6546.33
All Forms /wp-admin/edit.php?post_type=infusion_form4.7349.50
Settings /wp-admin/edit.php?post_type=infusion_form&page=formlift_settings_page6.6550.68
Add Form /wp-admin/post-new.php?post_type=infusion_form5.0967.77

Server storage [IO: ▲0.71MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 76 new files
Database: 3 new tables, 13 new options
New tables
wp_formlift_submissions
wp_formlift_impressions
wp_formlift_sessions
New WordPress options
can_compress_scripts
formlift_impressions_db_version
formlift_form_settings
widget_recent-posts
formlift_db_version
formlift_sessions_db_version
theysaidso_admin_options
widget_theysaidso_widget
formlift_style_settings
formlift_notices
...

Browser metrics Passed 4 tests

Checking browser requirements for FormLift for Infusionsoft Web Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲26513.74 ▼0.6410.27 ▲7.8138.68 ▼2.76
Dashboard /wp-admin2,235 ▲534.93 ▼0.9394.57 ▼9.0771.82 ▲26.91
Posts /wp-admin/edit.php2,130 ▲412.02 ▼0.0233.86 ▼2.9536.21 ▲4.83
Add New Post /wp-admin/post-new.php1,702 ▲18322.19 ▼0.92734.79 ▲63.1551.99 ▼8.81
Media Library /wp-admin/upload.php1,432 ▲414.12 ▼0.08110.46 ▲10.8646.52 ▲2.06
Campaigns /wp-admin/edit-tags.php?taxonomy=campaigns&post_type=infusion_form1,3032.1424.6830.37
Licenses /wp-admin/edit.php?post_type=infusion_form&page=formlift_modules8501.8030.2127.57
All Forms /wp-admin/edit.php?post_type=infusion_form1,1952.1934.7133.52
Settings /wp-admin/edit.php?post_type=infusion_form&page=formlift_settings_page5,8283.88181.4029.77
Add Form /wp-admin/post-new.php?post_type=infusion_form2,3634.5683.8887.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_formlift_submissions
    • wp_formlift_sessions
    • wp_formlift_impressions
  • Zombie WordPress options were found after uninstall: 13 options
    • formlift_db_version
    • formlift_form_settings
    • formlift_notices
    • widget_recent-comments
    • widget_recent-posts
    • formlift_style_settings
    • theysaidso_admin_options
    • formlift_submissions_db_version
    • db_upgraded
    • formlift_impressions_db_version
    • ...

Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× 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/formlift/modules/premium-modules/updater/example.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formlift/modules/tracking/tracking.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/formlift/templates/formlift-single.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formlift/modules/personalization/sessions.php:95

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=infusion_form
    • > Javascript (severe) in unknown
    /wp-content/plugins/formlift/modules/settings-page/assets/js/wp-color-picker-alpha.min.js?ver=7.5.14 10:503 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: forms, formlift, official, infusionsoft, web form...

formlift/FormLift.php 85% from 13 tests

The primary PHP file in "FormLift for Infusionsoft Web Forms" version 7.5.17 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 153 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("formlift.php" instead of "FormLift.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,091 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,4608895,803
CSS817958881
JavaScript97348407

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.91
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods412
▷ Static methods11227.18%
▷ Public methods38392.96%
▷ Protected methods00.00%
▷ Private methods297.04%
Functions58
▷ Named functions5798.28%
▷ Anonymous functions11.72%
Constants43
▷ Global constants3888.37%
▷ Class constants511.63%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.34MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/notices/assets/icon-30x30.png1.31KB1.46KB0.00%
modules/form/assets/images/icon-30x30.png1.05KB1.16KB0.00%
modules/settings-page/assets/images/formlift-icon-with-name-1046x1046.png52.79KB19.63KB▼ 62.81%
modules/settings-page/assets/images/join-our-facebook-group.png25.48KB11.96KB▼ 53.08%
modules/settings-page/assets/join-our-facebook-group.png25.48KB11.96KB▼ 53.08%