45% advanced-form-integration

Code Review | Connect Contact Form 7, WooCommerce To Google Sheets & Other Platforms - Advanced Form Integration

WordPress plugin Connect Contact Form 7, WooCommerce To Google Sheets & Other Platforms - Advanced Form Integration scored 45% from 54 tests.

About plugin

  • Plugin page: advanced-form-int...
  • Plugin version: 1.50.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 5.9.2
  • First release: Jul 30, 2019
  • Latest release: Mar 18, 2022
  • Number of updates: 113
  • Update frequency: every 8.5 days
  • Top authors: nasirahmed (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

6,000+ active / 86,892 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲4.76MB] [CPU: ▼275.14ms] 75% from 4 tests

A check of server-side resources used by Connect Contact Form 7, WooCommerce To Google Sheets & Other Platforms - Advanced Form Integration
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,520.36ms on /wp-admin/admin.php?page=advanced-form-integration-settings)
PageMemory (MB)CPU Time (ms)
Home /8.67 ▲5.1576.20 ▲24.04
Dashboard /wp-admin8.69 ▲5.2858.52 ▲23.84
Posts /wp-admin/edit.php8.69 ▲5.0460.97 ▲20.25
Add New Post /wp-admin/post-new.php10.53 ▲3.55117.70 ▼1,164.85
Media Library /wp-admin/upload.php8.69 ▲5.3946.29 ▲20.22
Settings /wp-admin/admin.php?page=advanced-form-integration-settings8.691,520.36
Integrations /wp-admin/admin.php?page=advanced-form-integration8.6947.13
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius8.6946.10
Get Help /wp-admin/admin.php?page=advanced-form-integration-help8.6945.24
Log /wp-admin/admin.php?page=advanced-form-integration-log8.6946.40
Add New /wp-admin/admin.php?page=advanced-form-integration-new8.6946.13

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 261 new files
Database: 2 new tables, 5 new options
New tables
wp_adfoin_log
wp_adfoin_integration
New WordPress options
fs_debug_mode
fs_gdpr
fs_active_plugins
fs_accounts
adfoin_review

Browser metrics Passed 4 tests

Connect Contact Form 7, WooCommerce To Google Sheets & Other Platforms - Advanced Form Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲9716.05 ▲0.316.55 ▲0.712.21 ▼0.98
Dashboard /wp-admin2,978 ▲1246.15 ▼0.03121.93 ▼12.44175.01 ▲17.15
Posts /wp-admin/edit.php2,777 ▲863.25 ▲0.0163.87 ▲1.40151.31 ▲12.18
Add New Post /wp-admin/post-new.php1,678 ▼3915.89 ▼5.93399.09 ▼33.28144.79 ▼12.55
Media Library /wp-admin/upload.php1,783 ▲855.54 ▲0.04138.89 ▼0.29200.51 ▲14.88
Settings /wp-admin/admin.php?page=advanced-form-integration-settings1,4563.2471.08166.38
Integrations /wp-admin/admin.php?page=advanced-form-integration1,3093.2468.9783.76
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius1,4922.4659.24120.83
Get Help /wp-admin/admin.php?page=advanced-form-integration-help1,9562.3755.11112.07
Log /wp-admin/admin.php?page=advanced-form-integration-log1,2882.7555.07112.15
Add New /wp-admin/admin.php?page=advanced-form-integration-new1,7093.7980.05125.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/advanced-form-integration/freemius/includes/class-freemius.php+8911
    Undefined property: stdClass::$plugins
  • Zombie tables detected upon uninstall: 2 tables
    • wp_adfoin_integration
    • wp_adfoin_log
  • Zombie WordPress options detected upon uninstall: 5 options
    • fs_gdpr
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts
    • adfoin_review

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-form-integration-help
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/advanced-form-integration/views/get_help.php
  • 82× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/pushover/pushover.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/mautic/mautic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/mailjet/mailjet.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-form-integration/includes/class-adfoin-log-table.php on line 2
    • > 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: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/slack/slack.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/lemlist/lemlist.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/webinarjam/webinarjam.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-form-integration/templates/editable_field.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-form-integration/platforms/mailify/mailify.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=advanced-form-integration
    • > Console-api (severe) in wp-content/plugins/advanced-form-integration/assets/js/vue.min.js?ver=5.9.2+633:24
    [Vue warn]: Cannot find element: #adfoin-new-integration

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (All integrations list), #2 (Settings page), #3 (Conditional logics)
  • Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main file in "Connect Contact Form 7, WooCommerce To Google Sheets & Other Platforms - Advanced Form Integration" v. 1.50.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin68,018 lines of code in 208 files:
LanguageFilesBlank linesComment linesLines of code
PHP19012,02719,03555,292
JavaScript51,8041,57012,655
CSS137071

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity77.37
▷ Minimum class complexity1.00
▷ Maximum class complexity3,029.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes00.00%
Methods1,524
▷ Static methods18712.27%
▷ Public methods1,11873.36%
▷ Protected methods553.61%
▷ Private methods35123.03%
Functions669
▷ Named functions669100.00%
▷ Anonymous functions00.00%
Constants157
▷ Global constants10868.79%
▷ Class constants4931.21%
▷ Public constants49100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.69MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png82.74KB85.16KB0.00%
screenshot-1.png80.98KB82.53KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/advanced-form-integration.png13.15KB4.49KB▼ 65.83%
screenshot-4.png61.77KB64.27KB0.00%