51% advanced-form-integration

Code Review | Advanced Form Integration - Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms

WordPress plugin Advanced Form Integration - Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms scored51%from 54 tests.

About plugin

  • Plugin page: advanced-form-int...
  • Plugin version: 1.76.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Nov 6, 2023
  • Number of updates: 166
  • Update frequency: every 9.4 days
  • Top authors: nasirahmed (100%)

Code review

54 tests

User reviews

60 reviews

Install metrics

10,000+ active /254,233 total downloads

Benchmarks

Plugin footprint 47% 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: ▲5.63MB] [CPU: ▲29.51ms] 50% from 4 tests

A check of server-side resources used by Advanced Form Integration - Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,783.91ms on /wp-admin/admin.php?page=advanced-form-integration-settings)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.63MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.25 ▲5.7969.21 ▲29.93
Dashboard /wp-admin9.27 ▲5.9775.94 ▲26.10
Posts /wp-admin/edit.php9.27 ▲5.9283.94 ▲34.58
Add New Post /wp-admin/post-new.php10.72 ▲4.83117.62 ▲27.42
Media Library /wp-admin/upload.php9.27 ▲6.0479.20 ▲45.78
Settings /wp-admin/admin.php?page=advanced-form-integration-settings9.271,783.91
Get Help /wp-admin/admin.php?page=advanced-form-integration-help9.2764.46
Add New /wp-admin/admin.php?page=advanced-form-integration-new9.2763.14
Log /wp-admin/admin.php?page=advanced-form-integration-log9.2765.58
Integrations /wp-admin/admin.php?page=advanced-form-integration9.2763.32
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2763.23

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 323 new files
Database: 2 new tables, 10 new options
New tables
wp_adfoin_integration
wp_adfoin_log
New WordPress options
db_upgraded
adfoin_review
widget_theysaidso_widget
widget_recent-posts
fs_debug_mode
widget_recent-comments
can_compress_scripts
fs_accounts
fs_active_plugins
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Form Integration - Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲13914.14 ▼0.091.98 ▲0.4029.49 ▼18.44
Dashboard /wp-admin2,266 ▲895.64 ▲0.0093.26 ▼0.0541.70 ▲0.20
Posts /wp-admin/edit.php2,172 ▲722.10 ▲0.1241.37 ▼0.8339.75 ▲5.15
Add New Post /wp-admin/post-new.php1,562 ▲3622.13 ▼1.04748.65 ▲63.1356.53 ▼3.92
Media Library /wp-admin/upload.php1,465 ▲684.27 ▲0.08111.42 ▲8.8349.34 ▲3.83
Settings /wp-admin/admin.php?page=advanced-form-integration-settings1,0542.3134.7158.93
Get Help /wp-admin/admin.php?page=advanced-form-integration-help1,4162.0129.1441.30
Add New /wp-admin/admin.php?page=advanced-form-integration-new1,4953.0751.7428.31
Log /wp-admin/admin.php?page=advanced-form-integration-log1,0474.1078.5728.37
Integrations /wp-admin/admin.php?page=advanced-form-integration1,0642.3133.7022.98
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1261.6724.5729.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/advanced-form-integration/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_adfoin_integration
    • wp_adfoin_log
  • Zombie WordPress options were found after uninstall: 10 options
    • fs_accounts
    • adfoin_review
    • widget_theysaidso_widget
    • fs_debug_mode
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • fs_active_plugins

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/advanced-form-integration/views/get_help.php
  • 126× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/mailwizz/mailwizz.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/sendfox/sendfox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/convertkit/convertkit.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Advanced_Form_Integration_OAuth2' not found in wp-content/plugins/advanced-form-integration/platforms/googlesheets/googlesheets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-form-integration/includes/triggers/eform/eform.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/customerio/customerio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-form-integration/platforms/sendpulse/sendpulse.php:2202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/freshsales/freshsales.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-form-integration/includes/class-adfoin-list-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/asana/asana.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=advanced-form-integration-log
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-codemirror,underscore&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: ##adfoin-log-request-data

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots do not have images: #1 (All integrations list), #2 (Settings page), #3 (New integration page), #4 (Conditional logic)
You can look at the official readme.txt

advanced-form-integration/advanced-form-integration.php 85% from 13 tests

The primary PHP file in "Advanced Form Integration - Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms" version 1.76.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin73,231 lines of code in 264 files:
LanguageFilesBlank linesComment linesLines of code
PHP24314,28520,32568,334
JavaScript79501164,736
CSS14250161

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity70.70
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes73
▷ Abstract classes22.74%
▷ Concrete classes7197.26%
▷ Final classes00.00%
Methods1,731
▷ Static methods21012.13%
▷ Public methods1,24872.10%
▷ Protected methods925.31%
▷ Private methods39122.59%
Functions996
▷ Named functions996100.00%
▷ Anonymous functions00.00%
Constants187
▷ Global constants10857.75%
▷ Class constants7942.25%
▷ Public constants79100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.69MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png77.03KB78.28KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
screenshot-1.png80.98KB82.53KB0.00%
screenshot-2.png84.25KB85.30KB0.00%
screenshot-3.png82.74KB85.16KB0.00%