Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter KloudBoy

    (@kloudboyhosting)

    Temporary workaround (Make MU plugin for fix)

    We were able to reproduce the slow admin performance caused by the notification count logic hooked to google_for_woocommerce_admin_menu_notification_count.

    As a temporary workaround, you can disable this filter using an MU plugin so the fix remains active regardless of theme changes.

    Steps:

    1. Create the folder if it does not exist:

    wp-content/mu-plugins/

    1. Create a file:

    wp-content/mu-plugins/google-woocommerce-admin-performance-fix.php

    1. Add the following code:
    <?php
    /**
    * Temporary workaround: disable Google for WooCommerce admin notification count
    * Reason: Notification count filter impacts admin performance on every page load
    */

    add_action( 'admin_menu', function () {
    remove_all_filters( 'google_for_woocommerce_admin_menu_notification_count' );
    }, 0 );

    This removes the notification count filter and restores normal backend performance while keeping the plugin enabled and configured.

    This should be considered a temporary workaround until the notification count logic is optimized (for example, by caching the response instead of running the calculation on every admin page render).

    Thanks

    Thread Starter KloudBoy

    (@kloudboyhosting)

    i have attached a profiler screenshot.

    The profiling clearly shows Google for WooCommerce consuming the majority of execution time (~7s+), while other plugins remain minimal. 📊 When the Issue Occurs

    The slowdown is consistent across backend operations, including:

    • General WP Admin browsing
    • Product edit / product list
    • WooCommerce dashboard
    • Background sync processes (suspected)

    Yes — we are running the latest versions of:

    • WooCommerce core
    • Google for WooCommerce

    Issue reproduced on multiple sites. 🔌 Other Integrations

    No custom code directly integrating with Google for WooCommerce.
    Typical WooCommerce stack only (SEO, Elementor, payments, etc.).

    Disabling this plugin immediately removes the latency.

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