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

Simple Plugin Selector

外掛說明

By default, WordPress will load every plugin on every page. SPS allows the webmaster to select which plugins are activated on a page-by-page basis. This prevents page loads including plugin support files which are not needed for that page. This reduces HTTP requests and download size, so improving website performance for the visitor.

For example, you probably use your contact form plugin only on your Contact Us page. SPS allows you to deactivate it when the page request is for one of your other pages to avoid downloading your contact form style sheets and scripts unnecessarily.

螢幕擷圖

  • Settings - Disable / Enable the plugin
  • Settings - Set plugin type: Always / Never / Sometimes
  • Settings - Set plugin loading per page for "Sometimes" plugins
  • Settings - Set plugin loading per post for "Sometimes" plugins

安裝方式

Not for newbies! The webmaster must have a clear grasp of which plugins are required for which pages, otherwise some pages will have a bunch of errors because the relevant plugin is not loaded.

Using FTP or your host’s file manager system, check for the sub-folder wp-content/mu-plugins and create this subfolder if it doesn’t exist. Upload the SPS folder, simple-plugin-selector.php file and readme.txt into this folder. If you can’t find wp-content, it may have been renamed.

SPS is always-on, so there is no need to enable via admin and users cannot deactivate it by accident.

Plugins in the must-use directory will not appear in the update notifications nor show their update status on the plugins page, so you are responsible for learning about and performing updates on your own.

Settings

Go to Dashboard > Settings > Simple Plugin Selector to set which plugins you would like to activate on a page by page basis.

If a new page, post or product is created, all plugins will be activated for that by default until set by SPS settings.

If a new plugin is activated, it will be loaded for all pages by default until set differently by SPS settings.

There is a setting to deactivate SPS for debugging. To delete the plugin, remove its files using FTP.

常見問題集

How much faster will my site run?

The degree of improvement will vary between sites. Users with slow connections are likely to see a big improvement.

The theme customizer is not working properly

The page inside the customizer is working in front-side context. If there is a plugin which is set to not load on the front-side page, then it won’t be available to the admin-side customizer either. Temporarily disable the plugin filter in SPS settings while using the customizer.

Will it work with WooCommerce

Yes.

Will it work with Polylang

Yes, from SPS v1.0.4
Not tested with the premium plugin: Polylang for WooCommerce.

Will it work with WPML (WordPress Multilingual Plugin)

Not tested with the premium plugin WPML.

Will it work on multi-site installations?

Not tested on multi-site installations.

It works on some pages but not others

If you create a new page, post or product, SPS does not make assumptions about which plugins are needed for it, so SPS will load all plugins. Run through the settings screens to set plugins for any new pages, posts or products.

It doesn’t work at all

SPS won’t work if permalinks are set to “Plain”

使用者評論

2020 年 11 月 4 日
I feared a little to use this new plugin. Was looking for a way to avoid downloading useless resources on all my WordPresss / Woocommerce website pages and this plugin does the job well.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Simple Plugin Selector〉的開發相關工作。

參與者

將〈Simple Plugin Selector〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.2.0

Support for Tags, Product Tags and Product Attributes withdrawn as too buggy.
Tested with WP 5.8

1.1.1

Fixed minor bug that occured infrequently.

1.1.0

Added support for post, category and tag pages.
Added support for WooCommerce pages: products, product categories, product tags and product attributes.
Added “Copy settings” button on page settings tabs to make settings easier.
Added pagination of long page lists in settings.

1.0.4

Amended to work on with Polylang sites where language codes are embedded in page urls.

1.0.3

Amendments to meet WordPress.org guidelines.

1.0.2

Submitted to WordPress.org for review.