• I installed the CodeProfiler plugin and it shows that this CodeSnippets plugin slows down my website the most. I have 30 plugins and this is the slowlest.

    I have 11 php snippets, they are simple. If I turn them all off, my page is faster, as shown by Code Profiler. If I turn the codes on, it slows down.

    The problem is that run snippets everywhere is checked?

    These are the types of codes I have:

    • WordPress user automatic logout after 1 month
    • Disabling password reminder emails for admins
    • Login page redirection based on membership plans
    • Hiding product links on the shopping cart page
    • Purchase quantity limits
    • Password strength removal on the checkout pag

      Thanks
Viewing 1 replies (of 1 total)
  • Plugin Contributor Carolina

    (@carolinaop)

    Hello @rinpocse91,

    Thank you for sharing your feedback.

    Performance can sometimes vary depending on how and where snippets are executed. When “Run snippets everywhere” is enabled, all snippets load on every page request, even if their logic isn’t needed on that page. This can add unnecessary overhead to your site.

    Adjusting the execution scope of your snippets should noticeably reduce load time while keeping the same functionality. We recommend reviewing your custom snippets and optimizing how they run:

    • Try limiting their scope to only the areas where they are actually needed—for example, running certain snippets only on the admin side or specific front‑end pages;
    • hook snippets only where they’re needed (e.g.,  is_admin() ,  is_page() , or conditional checks);
    • avoid running logic on every page if it only applies to login, checkout, or cart contexts.

    Many performance issues come from heavy or globally loaded custom code, rather than from the plugin itself, as you report.

    Best regards,

    Carolina

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.