Hello,
I came across your post regarding slow backend performance, which might be associated with the Mailchimp for WooCommerce plugin. It’s possible that the Chimpstatic script, used by this plugin, could be contributing to this issue, though not for certain.
If you suspect that the Chimpstatic script is impacting your site’s performance and are open to modifying the plugin’s core PHP files, here’s an approach you could consider:
- Locate the File: Find the
class-mailchimp-woocommerce-public.php
file within the plugin’s directory.
- Edit the File: Open this file and search for the
enqueue_scripts
function.
- Modify the Script Loading: Look for the following line:
wp_enqueue_script($this->plugin_name.'_connected_site', $site, array(), $this->version, true);
and comment it out by adding //
at the beginning of the line:
//wp_enqueue_script($this->plugin_name.'_connected_site', $site, array(), $this->version, true);
This action might alleviate some of the performance issues by stopping the script from loading. However, be mindful that this will also disable pop-up forms powered by Mailchimp, as this functionality depend on the Chimpstatic script.
A Note of Caution: Direct modifications to plugin files can lead to complications with future updates, potentially reverting your changes. If you’re not comfortable with this risk, I recommend seeking alternatives that avoid editing the code directly.
Additionally, if your WooCommerce store is particularly large or experiences high traffic, the issue might also be related to server resource limitations. In such cases, upgrading your hosting plan or server resources could provide a more stable solution to performance problems, without the need to alter plugin functionalities.
Before making any changes, it’s always a good idea to back up your site and possibly consult with a 3rd party developer for personalized advice.