Title: Page load performance
Last modified: August 8, 2024

---

# Page load performance

 *  Resolved [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/page-load-performance/)
 * I’m tuning my page load performance. I noticed some odd database calls being 
   made on each page.
 *     ```wp-block-code
       Forminator_Form_Views_Model->count_non_empty_ip_address()get_option('forminator_activated_addons')get_option('forminator_stripe_configuration')
       ```
   
 * The first of these is originating from “maybe_cleanup_ip_address” which in turn
   is being called from “cleanup_views_ip_address” which is ultimately from “Forminator_Upgrade::
   init”. I think the problem is that the function is being called every time Forminator
   is initialised (e.g. every page) rather than just when Forminator has been upgraded.
   Could the call be moved inside the if clause to avoid repeated unnecessary calls
   to the database.
 * The two get_option calls are causing access to the database because there is 
   no value for them stored in wp_options and hence they are not getting autoloaded
   by wp_load_alloptions.

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

 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/page-load-performance/#post-17943290)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * I hope you are doing well.
 * The Forminator_Form_Views_Model->count_non_empty_ip_address() should require 
   minimal effort most of the time unless you have a huge number of forms and views
   for those forms, if so then use the:
 * `defined( 'FORMINATOR_VIEWS_ENABLE_TRACK_IP', false )`
 * To wp-config.php below the /** That’s all, stop editing **/
 * But I believe we can look into improving it and I reported to our developers.
 * We can’t give an estimated time for it but please keep the plugin updated and
   eyes on changelogs.
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/page-load-performance/#post-17960201)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/),
 * I hope you’re doing good today!
 * We have forwarded your feedback to the developers, and will be marking this thread
   as resolved. Please feel free to reopen it if you still need our assistance.
 * Best Regards,
    Dmytro
 *  Plugin Support [Saurabh – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/page-load-performance/#post-18283407)
 * Hello [@peter8nss](https://wordpress.org/support/users/peter8nss/)
 * Hope you’re doing well today!
 * We’ve released a fix for the issue in the recent Forminator v1.39, please feel
   free to update the plugin to the latest version and let us know how it goes.
 * You can refer to the changelog here: [https://wordpress.org/plugins/forminator/#developers](https://wordpress.org/plugins/forminator/#developers)
 * Kind Regards,
    Saurabh
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/page-load-performance/#post-18370435)
 * Just rechecked this on v1.41.1. I’m still seeing the unnecessary get_option calls
   on all pages regardless of whether those pages includes a form. In fact, I’m 
   seeing four attempted get_option calls from Forminator hitting the database for
   every page load:
    - forminator_activated_addons
    - wpmudev_apikey
    - wpmudev_hc_options
    - forminator_stripe_configuration
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/page-load-performance/#post-18371772)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/),
 * The initial issue reported here was about “maybe_cleanup_ip_address” being every
   time Forminator is initialized. We have already released a fix for this and I
   was unable to replicate the issue on the latest version 1.41.1
 * That said, we have an improvement task for the other unnecessary get_option calls
   which is expected to be released with our upcoming updates. Unfortunately, we
   do not have an ETA on this at the moment.
 * Please feel free to get back to us if you need any further clarification.
 * Best Regards,
    Nebu John

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

The topic ‘Page load performance’ 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/)

## Tags

 * [performance](https://wordpress.org/support/topic-tag/performance/)

 * 6 replies
 * 5 participants
 * Last reply from: [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/page-load-performance/#post-18371772)
 * Status: resolved