這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WooCommerce Speed Drain Repair

外掛說明

WooCommerce can really drain server resources and slow down the load of your site. This plugin stops loading the extra items you do not need inside WooCommerce and speeds up WordPress core admin-ajax.php file.

Adds the below function:

add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );

function child_manage_woocommerce_styles() {
    //remove generator meta tag
    remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );

    //first check that woo exists to prevent fatal errors
    if ( function_exists( 'is_woocommerce' ) ) {
        //dequeue scripts and styles
        if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) {
            wp_dequeue_style( 'woocommerce_frontend_styles' );
            wp_dequeue_style( 'woocommerce_fancybox_styles' );
            wp_dequeue_style( 'woocommerce_chosen_styles' );
            wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
            wp_dequeue_script( 'wc_price_slider' );
            wp_dequeue_script( 'wc-single-product' );
            wp_dequeue_script( 'wc-add-to-cart' );
            wp_dequeue_script( 'wc-cart-fragments' );
            wp_dequeue_script( 'wc-checkout' );
            wp_dequeue_script( 'wc-add-to-cart-variation' );
            wp_dequeue_script( 'wc-single-product' );
            wp_dequeue_script( 'wc-cart' );
            wp_dequeue_script( 'wc-chosen' );
            wp_dequeue_script( 'woocommerce' );
            wp_dequeue_script( 'prettyPhoto' );
            wp_dequeue_script( 'prettyPhoto-init' );
            wp_dequeue_script( 'jquery-blockui' );
            wp_dequeue_script( 'jquery-placeholder' );
            wp_dequeue_script( 'fancybox' );
            wp_dequeue_script( 'jqueryui' );
        }
    }
 }

If you are are curious what exactly the above function does, we can explain more clearly as to what its doing. Its important to know what you are installing

This plugin instructs WP to not load the huge variety of WooCommerce scripts unless the user is on a WooCommerce page.

So the Non-WooCommerce pages of the site will surely load faster since many of these WooCommerce scripts are loaded on each and every page. The store itself will have some memory saved using this plugin, so the WooCommerce pages will be faster as well.

To sum it up, this plugin will turn off the WooCommerce heavy script on Non-WooCommerce pages which we see very valuable because if you are marketing your site well, there should be a blog and these pages will be Non-WooCommerce which will be indexed and drive traffic to products. Almost all visitors will land on a Non-WooCommerce page in most e-commerce sites.

There is NO EASIER or FASTER way to speed up WooCommerce sites

螢幕擷圖

  • Before and After Speed Test

安裝方式

Install from WP Dashboard

  • Log into WP dashboard then click Plugins > Add new > Then under the title “Install Plugins” click Upload > choose the zip > Activate the plugin!

Install from FTP

  • Extract the zip file and drop the contents in the wp-content/plugins/ directory of your WP installation and then activate the Plugin from Plugins page.

THAT IS IT: You’re done!

常見問題集

Do I need to do anything after plugin is activated

No, once activated yo uare all set and you will see the speed differecne

使用者評論

2019 年 2 月 12 日
This “plugin” does absolutely nothing to improve speed of shop pages, instead they said it removes woo scripts from other pages. But other pages not a problem at all. Waste of time.
2018 年 8 月 7 日
As the user cesneris said on April 11, 2017, this plugin causes the cart button to work improperly. I had exactly the same problem as this user had. So it’s not the theme’s issue, it’s the plugin’s issue. Fix this problem, please
閱讀全部 24 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WooCommerce Speed Drain Repair〉的開發相關工作。

參與者

將〈WooCommerce Speed Drain Repair〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.0 January 19th, 2022

  • Get plugin ready for WordPress 6.0

1.3 January 21st, 2020

  • Update to run on new version of WordPress core

1.2 November 21st, 2017

  • Update to run on new version of WordPress core

1.0 September 30th, 2015

  • First release of plugin.