Debloat for WooCommerce

By kgmservizi

★ 5.0/5 (7 ratings)400+ active installationsVersion 1.1.0

Optimize WooCommerce website performance.

Description

Optimize WooCommerce website performance.

Don’t work? Open ticket, we answer in max 48h.

Optimize WooCommerce installation with less clicks.

Every switch is off until you turn it on, and the settings page explains under each one what it does on your WooCommerce version and what it may break.

Optimizations

Disable WooCommerce Admin
On current WooCommerce versions this no longer turns off WooCommerce Admin: it turns off Analytics and the Customers page, and hides the Marketing items added by other extensions. Analytics data stops being collected, so turning it back on needs a historical data import.

Disable report text
Hides the outdated “With the release of WooCommerce 4.0…” banner on WooCommerce -> Reports.

WooCommerce features
Turns off the WooCommerce Admin features that your WooCommerce version still lets you turn off (for example the store alerts banner).

Connection to WooCommerce.com
Hides the notice on Dashboard -> Updates that asks you to update paid WooCommerce.com extensions before WooCommerce. It does not disconnect your store and does not stop extension updates.

Marketplace Suggestions
Hides the extension suggestions on product and order screens and the WooPayments incentive. To stop all WooCommerce suggestions, use “Show Suggestions” in WooCommerce -> Settings -> Advanced -> WooCommerce.com.

Remove styles and Remove scripts
Remove the main WooCommerce stylesheets and scripts on pages that are not shop, product, cart, checkout or account pages. Products shown on other pages lose their WooCommerce styling, and their “Add to cart” button reloads the page.

Remove styles of Gutenberg blocks
For sites that do not use WooCommerce blocks: removes the stylesheets of the older WooCommerce blocks on every frontend page. Leave it off if you use the Cart or Checkout blocks.

Remove all Widgets
Removes the 12 classic WooCommerce widgets.

Disable Cart Fragments
Removes cart fragments when your theme or another plugin loads them early. WooCommerce itself no longer loads them on every page.

Remove WooCommerce Brands
Turns off WooCommerce Brands: menu, brand pages, blocks, widgets and brand rules on coupons. Your brands are kept and come back when you turn this off or deactivate the plugin.

Orders quick link
Adds an Orders item below Dashboard with the number of orders waiting to be processed.

Hide admin menus

You can hide the Home, Marketing, Payments, Analytics, Extensions and legacy Reports menus. Hidden menus are not disabled: WooCommerce still loads those screens and they stay reachable from their URL.

Managed by WooCommerce

Some parts can now be turned off by WooCommerce itself (Analytics, suggestions and promotions, usage tracking, shipping, site visibility). The plugin shows their current state and links to the right WooCommerce setting, without changing it.

Deprecated options

Since WooCommerce 11.1 most WooCommerce Admin features are always loaded and can no longer be turned off. The options that have no effect on your WooCommerce version are grouped in the Deprecated tab, and a notice tells you if any of them is still on.

Installation

  1. Upload the plugin files to the ‘/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins page directly.
  2. Activate the plugin through the ‘Plugins’ page in WordPress.
  3. Go to WooCommerce -> Debloat and turn on the switches you need: nothing is disabled until you do.

FAQ

Why disable WooCommerce Analytics, Home and Notification Bar?

Disable this features is useful in some base hosting. Some hosting don’t have the required resources for work in the better way with this WooCommerce feature.

Why base hosting don’t have the required resources?

Because these shared base plans usually have basic feature and less resources.

How I can use WooCommerce Analytics if my hosting don’t support it?

Upgrade your hosting plan or change provider if it don’t offer a better solution.
Ask to a developer for choice your best solution.

Why disable scripts and styles in non WooCommerce pages?

You can improve performance of your website where WooCommerce isn’t loaded.

Why disable Cart Fragments?

Cart fragments refresh the mini-cart with an AJAX request on every page. WooCommerce no longer loads them on every page by itself, so the option only matters when your theme or another plugin loads them.

Site Health says “WooCommerce shipping is enabled but no shipping methods are configured”

If you do not ship anything (for example a catalog of external or affiliate products), go to WooCommerce -> Settings -> General -> Shipping location(s) and choose “Disable shipping & shipping calculations”. The notice goes away. The plugin links to this setting in the “Managed by WooCommerce” tab.

Why are some WooCommerce features in the Deprecated tab?

WooCommerce 11.1 retired the switches that turned those features off: they are now always loaded. The options stay in the Deprecated tab so you can turn them off; on older WooCommerce versions they keep working as before.

Changelog

1.1.0

  • New: the settings page is organized in tabs (Optimizations, Hide admin menus, Managed by WooCommerce, Deprecated), and each switch explains what it does on your WooCommerce version and what it may break.
  • New: hide the Home, Marketing, Payments, Analytics and legacy Reports menus. The Extensions switch moved to this tab.
  • New: “Managed by WooCommerce” tab with the current state of Analytics, suggestions, tracking, shipping and site visibility, and links to the WooCommerce settings that control them.
  • New: options that no longer have an effect on your WooCommerce version are grouped in the Deprecated tab, and a dismissible notice tells administrators if any of them is still on.
  • Changed: “Disable WooCommerce Admin” no longer removes the WooCommerce admin stylesheets, which left Home, Marketing and Payments screens unstyled. It keeps turning off Analytics.
  • Changed: the deprecated “onboarding”, “homescreen” and “marketing” switches no longer remove the onboarding stylesheet.
  • Changed: removed the Stripe notice: the current Stripe plugin does not depend on WooCommerce Admin.
  • Fixed: the Orders quick link and its counter now work with High-Performance Order Storage (HPOS), and the plugin declares HPOS compatibility.
  • Tested with WordPress 7.1 and WooCommerce 11.2. Option names are unchanged: settings from every previous version are kept.

1.0.3

  • Accessibility: visible focus ring on the switches, decorative icons hidden from screen readers, proper roles on admin notices.
  • Performance: fewer redundant checks on every page load, lighter order count cache and migration logic.
  • Hardening: safer output escaping on the settings page, inline scripts loaded through the WordPress enqueue system, AJAX handler using the recommended helpers.
  • Fixed the Stripe notice link, a typo in the “Remove scripts” label and a duplicate script dequeue.
  • Coding standards cleanup. Option names and stored data are unchanged.

1.0.2

  • Bug fixes.