Title: Excessive option loading
Last modified: August 11, 2024

---

# Excessive option loading

 *  Resolved [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/)
 * I’m trying to tune my page loading. I notice that on every page I load I get 
   in
 *     ```wp-block-code
       forminator_activated_addonsforminator_stripe_configuration
       ```
   
 * I think this is because these option are not (by default) defined in the options
   table, so are not autoloaded by wp_load_alloptions, and hence require separate
   database fetches to check for their existence.
 * On other pages, I also seeing individual loads for:
 *     ```wp-block-code
       forminator_addon_campaignmonitor_settingsforminator_addon_webhook_settingsforminator_addon_slack_settingsforminator_addon_mailchimp_settingsforminator_addon_mailjet_settingsforminator_addon_aweber_settingsforminator_addon_googlesheet_settingsforminator_addon_activecampaign_settingsforminator_addon_hubspot_settingsforminator_addon_mailerlite_settingsforminator_addon_trello_settingsforminator_paypal_configurationforminator_module_enable_load_ajaxforminator_module_use_donotcachepageforminator_custom_upload
       ```
   
 * That a lot of unnecessary database calls.
 * Could all the addon options be combined as a single option holding an array. 
   That option could be defaulted to an empty array with autoload=yes and a lot 
   of database traffic removed.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17946105)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * I hope you are doing well today.
 * Can you please share some more information about how you be able to find these
   queries, are you using the query monitor plugin to review the database queries(
   it would much appreciated if you could share some screenshots)?
 * In general, forminator codes shouldn’t run on pages where its not used, the mentioned
   queries only should run on a page where the forminator is used, I checked the
   running queries in my lab site on different pages but the only query I found 
   was for “count_non_empty_ip_address” its running on most of the page even if 
   the form is not added however it shouldn’t have a major impact on site performance.
 * I can see you already reported [this issue](https://wordpress.org/support/topic/page-load-performance/),
   a few days ago my colleague brought the issue to our developer’s attention but
   we need more info about how it can be replicated.
 * Best Regards,
    Amin
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17946131)
 * Yes I am using Query Monitor plugin to find these.
 * The first two both arise from the _plugins\_loaded _hook so will be triggered
   just because Forminator is one of the plugins even when loading pages it isn’t
   used on.
 * The trace back for _forminator\_activated\_addons_ option is:
    1. `get_option()`
       wp-includes/option.php:197
    2. `Forminator_Integration_Loader->__construct()`
       wp-content/plugins/forminator/
       library/class-integration-loader.php:130
    3. `Forminator_Integration_Loader::get_instance()`
       wp-content/plugins/forminator/
       library/class-integration-loader.php:52
    4. `Forminator->init_addons()`
       wp-content/plugins/forminator/forminator.php:310
    5. `Forminator->__construct()`
       wp-content/plugins/forminator/forminator.php:104
    6. `Forminator::get_instance()`
       wp-content/plugins/forminator/forminator.php:85
    7. `forminator()`
       wp-content/plugins/forminator/forminator.php:509
    8. `do_action('plugins_loaded')`
       wp-includes/plugin.php:517
 * In may be worth checking your database to see whether these options are present
   in your test configuration database – perhaps because you have some add-ons. 
   If they are in the database, then I assume they are autoloaded, and hence you
   won’t see an individual call to get_option using query monitor.
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17954248)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/),
 * Thank you for further clarification.
 * However, I was still unable to replicate what you have mentioned. I was only 
   able to notice the mentioned queries run on a page where the Forminator is used.
   I also checked the database to verify if they are autoloaded and confirmed that
   only the ones that are in use are autoloaded.
 * Could you please share a screenshot of the Query Monitor results from your end
   so that we can investigate this further?
 * Kind Regards,
    Nebu John
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17954571)
 * I was worried that the problem might be specific to my configuration, so I went
   to a new site I’m developing that didn’t have Forminator installed and minimal
   other plugins. I installed Forminator and went to the site’s home page. Same 
   result!
 * ![](https://i0.wp.com/samphires.org.uk/wp-content/uploads/2024/08/forminator-
   qm.jpg?ssl=1)
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17956345)
 * Hello @peter8nss,
 * I hope things are going great for you. I appreciate you for sharing the detailed
   information.
 * I can replicate the same thing on my test site, and for the improvement, we have
   reported internally to the Forminator team.
 * The team will check the request soon and consider an improvement in future updates.
   At the moment, We can’t share any ETA or can’t make any promise when the request
   will be improved.
 * I greatly appreciate your patience and understanding in this case.
 * –
   Thanks & Kind RegardsImran Khan
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17974977)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/),
 * Please do note that we have raised this as an improvement with our Forminator
   team so that we can check the possibility of implementing this down the roadmap.
 * While we cannot provide a specific timeline yet, you can get updates on our upcoming
   feature by subscribing to our roadmap at:
 *  [https://wpmudev.com/roadmap/](https://wpmudev.com/roadmap/)
 * Since this feature request has been acknowledged, we’re marking this as resolved
   for now. However, if you have any queries, please don’t hesitate to ask. Thank
   you for your understanding.
 * Best Regards,
 * Nithin

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Excessive option loading’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/excessive-option-loading/#post-17974977)
 * Status: resolved