Title: Advice: Needs optimization
Last modified: January 25, 2025

---

# Advice: Needs optimization

 *  [MirceaR](https://wordpress.org/support/users/mircear/)
 * (@mircear)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/advice-needs-optimization/)
 * Hi,
 * The plugin has a small bug/not optimized situation. In class-mwb-zendesk-global-
   functions.php (which by the way, doesn’t contain any classes :)) ), on the mwb_zndskwoo_order_config_get_all_order_fields
   function, you need to fix the following:
 * $order_ids = wc_get_orders(
   array(‘status’ => ‘any’,‘return’ => ‘ids’,‘limit’
   => -1,));
 * Why: if anyone installs this plugin and already has a lot of created orders, 
   the page configuration will just crash. In my example, a shop which has 100.000
   orders. The fix was to change the limit from -1 to a reasonable number. 🙂
 * Good luck.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadvice-needs-optimization%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [MirceaR](https://wordpress.org/support/users/mircear/)
 * (@mircear)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/advice-needs-optimization/#post-18469021)
 * Hello,
 * Will there be any future updates on this plugin? Starting to get fatal errors
   and performance issues.

Viewing 1 replies (of 1 total)

The topic ‘Advice: Needs optimization’ is closed to new replies.

 * ![](https://ps.w.org/mwb-zendesk-woo-order-sync/assets/icon-256x256.gif?rev=2903092)
 * [Order Sync with Zendesk for WooCommerce](https://wordpress.org/plugins/mwb-zendesk-woo-order-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mwb-zendesk-woo-order-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mwb-zendesk-woo-order-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/mwb-zendesk-woo-order-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mwb-zendesk-woo-order-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mwb-zendesk-woo-order-sync/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [MirceaR](https://wordpress.org/support/users/mircear/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/advice-needs-optimization/#post-18469021)
 * Status: not a support question