• Resolved rudolfl

    (@rudolfl)


    Hi,

    Upgraded to 1.9.5
    Code profiler shows about 0.5s is taken by PayPal plugin. This is on the home page where payment plugin should not do anything at all!
    I also turned off “paypal buttons” everywhere except checkout page where it belongs.

    248 calls to Dhii\Container\DelegatingContainer->get() function!!!
    Here is an example of call trace:

    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@117 -> WooCommerce\PayPalCommerce\Vaulting\VaultingModule::WooCommerce\PayPalCommerce\Vaulting\{closure}
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@56 -> Dhii\Container\DelegatingContainer->invokeFactory
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-subscription/services.php@22 -> Dhii\Container\DelegatingContainer->get
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@117 -> WooCommerce\PayPalCommerce\Subscription\SubscriptionModule::WooCommerce\PayPalCommerce\Subscription\{closure}
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@56 -> Dhii\Container\DelegatingContainer->invokeFactory
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-compat/services.php@31 -> Dhii\Container\DelegatingContainer->get
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@117 -> WooCommerce\PayPalCommerce\Compat\CompatModule::WooCommerce\PayPalCommerce\Compat\{closure}
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php@56 -> Dhii\Container\DelegatingContainer->invokeFactory
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/CompositeContainer.php@53 -> Dhii\Container\DelegatingContainer->get
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/CachingContainer.php@61 -> Dhii\Container\CompositeContainer->get
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/CachingContainer.php@161 -> Dhii\Container\CachingContainer->Dhii\Container\{closure}
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/CachingContainer.php@128 -> Dhii\Container\CachingContainer->invokeGenerator
    wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/CachingContainer.php@62 -> Dhii\Container\CachingContainer->getCached
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-compat/src/CompatModule.php@74 -> Dhii\Container\CachingContainer->get
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-compat/src/CompatModule.php@47 -> WooCommerce\PayPalCommerce\Compat\CompatModule->initialize_ppec_compat_layer
    wp-content/plugins/woocommerce-paypal-payments/bootstrap.php@54 -> WooCommerce\PayPalCommerce\Compat\CompatModule->run
    wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php@77 -> {closure}
    wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php@90 -> WooCommerce\PayPalCommerce\init
    wp-includes/class-wp-hook.php@308 -> WooCommerce\PayPalCommerce\{closure}
    wp-includes/class-wp-hook.php@332 -> WP_Hook->apply_filters
    wp-includes/plugin.php@517 -> WP_Hook->do_action
    wp-settings.php@480 -> do_action
    wp-config.php@100 -> require_once
    wp-load.php@50 -> require_once
    wp-blog-header.php@13 -> require_once

    Obviously, plugin hooks into something it should be hooking into

    Thanks,
    Rudolf

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Thank you for reaching out to us, we are here to help.
    We are aware of this compatibility issue and are working on getting it resolved. I have linked this thread to the bug we have opened for this, so you will be updated once have this issue resolved or when a workaround is available.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @rudolfl

    I just got the response of one of my developers that this is probably not related to the compatibility issue and that this is purely a performance issue.
    The logs you showed from the profiler shows a lot of container::get calls. It would be more helpful if you can see some specific slow get call, that is, with its parameters. If the performance issues are related to it, the post only says about the number of calls, which may be fine and not the slowest part.

    Can you take another look and see if you can provide these details? If you rather share these details privately, you could also open a direct support request with us via our service desk, following these instructions.

    Sorry for the confusion.

    Kind regards,
    Joost

    Thread Starter rudolfl

    (@rudolfl)

    Thanks,

    The problem is — PayPal plugin adds about 0.8s of delay on the home page where no PayPal functionality is required at all! In fact, plugin should be restricted to the checkout pages or pages where PayPal buttons are enabled.

    I will open support ticket and give you access to the site and profiler.

    Rudolf

    Plugin Support Syde Joost

    (@joostvandevijver)

    thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Huge performance issues’ is closed to new replies.