🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Form Speed Profiler & Optimizer Setup Guide

Updated 11 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. How it differs from other tools
  5. How profiling works, and what it costs when it is off
  6. Profile a form
  7. Read the waterfall
  8. The report and the suggestions
  9. Front-end optimisations
  10. What is stored, and for how long
  11. Settings
  12. Limits and troubleshooting
  13. Uninstall

Video walkthrough

Gravity Forms Form Speed Profiler: Find Why a Submission Is Slow
Video setup guide: Gravity Forms Form Speed Profiler & Optimizer Watch on YouTube

The Gravity Forms Form Speed Profiler & Optimizer add-on shows you why a form submission, or a move to the next page of a multi-page form, takes as long as it does. Switch the profiler on for one form (or any form) and the next few submissions are timed step by step: WordPress start-up, validation, saving the entry, each feed add-on, each notification and its mail sending, payment steps and every piece of code hooked into Gravity Forms, with the plugin it belongs to and the database queries it ran. You get a waterfall for each submission, a report across submissions with the slowest steps and a per-plugin summary, and plain-language suggestions. The add-on also has four optional switches that make the form page lighter in the browser, with a before and after readout. This guide covers installing the add-on, profiling a form, reading the waterfall and the report, the front-end switches, what is stored, and the limits of what a profiler can tell you.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. Nothing else: the profiler runs inside WordPress and makes no outside connection.

Everything in the add-on needs one Gravity Forms capability, gravityforms_edit_settings. Administrators have it. If a colleague who is not an administrator should use the profiler, give their account that capability with your role editor. Users without it cannot open the profiler screen, the report, a profile or the form tab, and cannot start or stop profiling. Visitors never see anything of the profiler: nothing is added to the pages they get, and the profiled submission behaves exactly like any other.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Speed Profiler, enter your GravityExtra licence key and press Activate License.
  • The profiler screen is under Forms → Speed Profiler; the front-end switches are in each form’s Settings → Speed Profiler tab.

Without an active licence the screen shows a short note, nothing is profiled and the front-end switches have no effect. Your forms work as usual either way.

How it differs from other tools

Several of our add-ons look after the health of your forms, and each answers a different question. Form Health checks the set-up of your forms for mistakes, such as notifications without a valid recipient or conditional logic that points to a deleted field: it reads the configuration and never times anything. Feed Health catches feeds that failed (a CRM or mailing list that refused the data) and lets you retry them: it is about failures, not about time. Failed Submissions shows the submissions that failed validation and whether the visitor fixed the form or gave up. Test Mode lets you send test submissions on the live site without side effects. Our SMTP add-on is about getting your e-mail delivered. The Speed Profiler answers a different question: when a submission works but is slow, which step takes the time?

Gravity Forms’ own logging writes a detailed log of what happens during a submission. It is very useful for finding errors, but it is a raw text log without a timing breakdown, and it does not tell you which plugin’s code is slow. General page-speed plugins and browser tools measure how quickly a page and its files load. They do not see what happens on the server after a visitor presses Submit: validation, the entry save, feeds, notifications and the other code that runs before the visitor sees the confirmation. That is the part this add-on measures, and the front-end switches only touch the form itself.

How profiling works, and what it costs when it is off

The profiler is off by default. While it is off, the add-on reads one small saved setting on each request to see whether profiling is switched on, and does nothing else: no timing code is registered, no hook is added to Gravity Forms. In our tests a site with the add-on active and the profiler off registered no timing hook at all during a submission, and its submission times matched those of the same site with the add-on deactivated within the normal variation between runs.

While a profiling rule is running, a submission of a matching form is timed from the moment Gravity Forms starts processing it until the response is sent. The add-on puts a marker at the very start and the very end of each Gravity Forms step, and while a Gravity Forms hook runs it measures each callback attached to it. It never changes what a callback receives or returns, or the order in which callbacks run. Feeds are timed per feed add-on, notifications per notification (including the time spent handing the e-mail to your mail system), and payment add-ons per step. When the submission ends, the timings are saved as a profile.

Profile a form

Open Forms → Speed Profiler. In Profile the next submissions, choose the form (or Any form), how many submissions to profile (1 to 100) and after how many minutes to stop (up to 24 hours), then press Start profiling. The rule appears in the list with the submissions left and the time it ends. It switches itself off after the number of submissions or the time limit, whichever comes first, and you can stop it at any time with Stop.

Each submission, move to another page of a multi-page form, or submission that fails validation counts as one profiled request. Submissions sent through the Gravity Forms API or REST API are profiled too. If several visitors submit at exactly the same moment, the add-on still never profiles more submissions than you asked for: each profiled request takes its turn with a single database update that cannot be counted twice.

Now send the form yourself, or wait for real visitors. Profiling real submissions is often the most useful, because they use the real mail set-up and the real feeds. Each profile appears under Recent profiles with its date, the form, what happened (submission, page change, validation error), the total server time and the slowest step.

Forms, Speed Profiler: profile the next submissions of a form with a time limit, the running rule with the submissions left, and the recent profiles with server time and slowest step
Start a profiling rule for one form or any form; it switches itself off after the number of submissions or the time limit.

Read the waterfall

Press Waterfall next to a profile. At the top you see the total server time, the time from the moment Gravity Forms started on the submission, the number of database queries and the slowest step.

The table below lists the phases of the request in order, each with its time and a bar on a timeline:

  • Start-up: WordPress, your theme and your plugins loading before Gravity Forms starts on the submission.
  • Form preparation and Validation: the form is prepared and every field is checked, including any validation code from other plugins (spam checks, address checks).
  • Entry save and spam check, After the entry is saved.
  • Feeds and add-ons: CRM, mailing list, webhook and payment add-ons that process the entry.
  • Notifications: each notification, with the number of e-mails and the time spent sending them.
  • Confirmation, After-submission actions and Page output.

Under each phase are the steps that ran in it: feed add-ons, notifications, payment steps and hooked code. A step that ran inside another one is indented under it, so a slow mail plugin shows up under the notification that called it. The Plugin column shows which plugin, must-use plugin or theme the code belongs to. A step’s time includes the steps nested under it. Steps under one millisecond are hidden; tick Show steps under 1 ms to see everything.

The waterfall of one profiled submission: server time, slowest step, and each phase with its feed add-ons, notifications and hooked code, the plugin they belong to, their time and a timeline bar
One submission, step by step. The slow notification and the slow feed add-on stand out, each with the plugin behind it.

If your site defines SAVEQUERIES, the time spent in database queries is shown next to the number of queries. Without it, only the number of queries is recorded.

The report and the suggestions

The Report tab combines the profiled submissions (all forms, or one form). It shows the average and slowest server time, a list of the slowest steps with their average and slowest time and how many submissions they appeared in, the time per plugin and add-on, and the average of each phase.

Above the tables are suggestions in plain words. For example, a notification that takes 0.9 seconds on average, a feed add-on that averages several seconds, a notification that sends several e-mails one after the other, a callback from another plugin that takes longer than it should, a step that runs hundreds of database queries, or a validation phase that is unusually slow. Each suggestion names the step, the plugin and the measured time, and says where to look. The add-on does not change anything for you: you decide what to change, and you can profile again afterwards to compare.

The report across profiled submissions: average and slowest server time, suggestions in plain words, the slowest steps with average and slowest times, and the time per plugin
The report averages the profiles, lists the slowest steps and suggests where to look.

Some common findings and what usually helps:

  • A slow notification almost always means the mail system is slow to accept the message. Check your mail sending set-up. Gravity Forms can also send notifications in the background; developers can switch this on with the gform_is_asynchronous_notifications_enabled filter.
  • A slow feed add-on usually waits for the service it sends data to. Many feed add-ons can process their feeds in the background (the gform_is_feed_asynchronous filter), and feed conditions can make a feed run only for the submissions that need it.
  • A slow payment step is mostly the payment service answering. There is little to change, but it is a good reason to keep other slow steps off that form.
  • Slow hooked code from another plugin: check that plugin’s settings, or ask its author whether the work can run after the response.

Front-end optimisations

The form’s Settings → Speed Profiler tab has four switches. Each is optional and off by default. They change how the form loads in the visitor’s browser, never what is submitted:

  • Load the captcha on first interaction: the captcha’s scripts are kept off the page until the visitor first focuses, clicks, types or taps in the form. If the visitor presses Submit before that, the add-on loads the captcha first and then sends the form. On a page that shows a validation error, the captcha loads straight away.
  • Render long choice lists on focus: a long drop-down, such as a country list, is sent with only its first and selected choice; the full list is put back when the visitor opens the field, and before the form is sent. The selected value never changes. Enhanced drop-downs and pricing fields are left as they are; the length from which a list counts as long is a setting (50 choices by default).
  • Skip rendering until the form is near the screen: tells the browser it may skip laying out and painting a form that is below the fold until the visitor scrolls near it.
  • Defer Gravity Forms scripts where safe: asks WordPress to load the Gravity Forms scripts with “defer”. WordPress keeps a script loading normally when deferring it would not be safe, for example when inline code runs right after it.

Press Measure page weight to compare. The add-on loads the form preview twice in a hidden frame in your own browser, once without and once with the switches you saved, and shows what was loaded before the first interaction: the size, the number of requests, the elements on the page, the choices rendered in the form and the scripts that wait for the first interaction. Your real page will differ, because your theme, other plugins and caching add their own files, so use the readout to compare, not as a promise. Under the switches, the tab also lists tips for this form, for example when it has a captcha or long choice lists.

The Speed Profiler tab of a form: four optional front-end switches and the page-weight readout comparing the form preview without and with the switches
The optional front-end switches of a form and the page-weight readout, measured in your own browser.

What is stored, and for how long

A profile holds timings, the names of hooks, callbacks, feeds, notifications and plugins, the number of database queries, the form ID and whether the request was a submission, a page change or a validation error. It never holds what a visitor typed: no field values, no e-mail addresses, no entry data. In our tests we submitted forms with distinctive names, e-mail addresses, phone numbers and free text and then searched every stored profile for them: none were found.

Profiles are kept in their own database table. By default the add-on keeps the last 50 profiles and deletes profiles older than 14 days, each time a new profile is saved; both numbers are settings in Forms → Settings → Speed Profiler. You can delete one profile from its waterfall, or all of them from the profiler screen. All processing happens on your server; the add-on makes no outside HTTP request apart from the licence and update checks.

Settings

  • Keep the last profiles: 5 to 500 (default 50).
  • Delete profiles after (days): 1 to 90 (default 14).
  • A choice list is long from: 10 to 1,000 choices (default 50), used by the choice-list switch.
  • More captcha scripts: scripts whose handle or address contains “captcha” or “turnstile” are treated as captcha scripts. Add other handles or address parts here, one per line.

Limits and troubleshooting

  • No profile appears. Check that the licence is active, that the rule is still listed (it ends after the number of submissions or the time limit), and that you sent the form that the rule is for.
  • Feeds or notifications show as very fast. If a feed add-on or Gravity Forms sends them in the background, the submission only queues them; their own work happens later, outside the profiled request.
  • Times differ between submissions. That is normal: a mail server or a remote service answers faster or slower from one minute to the next, and shared hosting adds its own variation. Profile several submissions and look at the averages in the report.
  • A step looks slow only the first time. After an update or a cache clear, the first request loads more code. Look at the following submissions.
  • A captcha does not appear. With the captcha switch on, the captcha loads on the first interaction with the form; if your captcha plugin uses a script name the add-on does not recognise, add it under More captcha scripts, or switch the option off for that form.
  • The page-weight readout shows an error. It needs the Gravity Forms preview, which needs the permission to preview forms, and it must run on the same address as your admin area.

Uninstall

Deleting the add-on from the Plugins screen, or uninstalling it in Forms → Settings → Uninstall, removes its settings, the running rules, the list of optimised forms and the profiles table. Your forms and entries are not touched.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr