SITEHEALTH PERFORMANCE CRITICAL ISSUE: Autoloaded options could affect performance

This topic has 13 replies, 3 voices, and was last updated 1 months ago ago by Andrew Mitchell

  • Avatar: khurram virk
    khurram virk
    Participant
    November 16, 2024 at 21:40

    Dear sir

    good day to you!

    please guide how to resolve this problem

    here is the screenshot
    https://snipboard.io/yi3J1x.jpg

    here is the detail

    1 critical issue
    Critical issues are items that may have a high impact on your sites performance or security, and resolving these issues should be prioritised.

    Autoloaded options could affect performance
    Performance
    Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site. Your site has 1068 autoloaded options (size: 1 MB) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.

    More info about optimising autoloaded options

    12 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    November 17, 2024 at 15:11

    Dear @khurram virk,

    Please try with this solution: https://www.8theme.com/topic/autoload-settings-can-affect-performance/#post-420458.

    Hope it helps!

    Avatar: khurram virk
    khurram virk
    Participant
    November 18, 2024 at 13:55

    dear sir

    good day to you!

    thanks for the solution, should we add the following code ONLY in global custom CSS.

    add_filter( ‘wp_max_autoloaded_option_size’, ‘my_max_autoload_option_size’ );

    function my_max_autoload_option_size( $size ) {
    // Reduce the threshold for large sizes to 100K (Default is 150K).
    return 100000;
    }

    waiting for your confirmation.

    thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    November 19, 2024 at 05:22

    Hi @khurram virk,

    This custom code should be added under functions.php file locates in your child theme:

    
    add_filter( 'wp_max_autoloaded_option_size', 'my_max_autoload_option_size' );
    
    function my_max_autoload_option_size( $size ) {
    // Reduce the threshold for large sizes to 100K (Default is 150K).
    return 100000;
    }
    

    Best regards,
    8Theme Team.

    Avatar: khurram virk
    khurram virk
    Participant
    November 19, 2024 at 09:06

    dear sir

    greetings!

    we dont have child theme on this site, can we use in main theme’s function file.

    please confirm.

    thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    November 19, 2024 at 09:37

    Dear Khurram Virk,

    We hope this message finds you well.

    We kindly request that you refrain from adding custom code directly to the parent theme, as any changes made will be lost with each new update.

    Instead, we recommend using the following plugin to safely insert custom code: [Insert Headers and Footers Plugin](https://wordpress-org.translate.goog/plugins/insert-headers-and-footers/).

    We trust this will be helpful. Should you have any further questions or need assistance, please don’t hesitate to reach out.

    Best regards,
    8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 19, 2024 at 17:47

    dear sir

    greetings!

    we have installed the insert headers and footers plugin, please let us know, where we have to paste either header or body or footer.

    thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    November 20, 2024 at 06:28

    Dear Khurram Virk,

    We hope this message finds you well.

    Could you kindly resend the login URL, as the previous one has already expired? Once received, we will proceed with placing the custom code for you.

    Thank you for your attention to this matter.

    Best regards,
    8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 20, 2024 at 09:23

    dear sir

    good day to you!

    PC

    THANKS

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 20, 2024 at 10:21

    Dear Khurram Virk,

    We hope this message finds you well.

    We apologize for any confusion caused earlier. The correct plugin we are referring to can be found here: [Screenshot Link](https://prnt.sc/My6ANgFhi3fV).

    However, we are currently encountering a restriction, as shown in this screenshot: [Screenshot Link](https://prnt.sc/62N2AScSLjQN). Could you kindly assist us in disabling this restriction?

    Here is the relevant link for your reference: [https://***feandsecureksa.com/wp-admin/admin.php?page=wpcode](https://***feandsecureksa.com/wp-admin/admin.php?page=wpcode).

    Thank you in advance for your support.

    Best regards,
    8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    November 20, 2024 at 11:24

    dear sir

    greetings!

    you can access now, it is disabled now.

    thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    November 20, 2024 at 13:17

    Hi @khurram virk,

    We’ve inserted the code snippet for you:

    https://prnt.sc/sGUJK0Yei3aD

    If you need anything else, please let us know.

    Best regards,
    8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 20, 2024 at 14:17

    Dear khurram virk,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 13 results - 1 through 13 (of 13 total)

The issue related to '‘SITEHEALTH PERFORMANCE CRITICAL ISSUE: Autoloaded options could affect performance’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.