Deactivate Plugins Per Page – Improve WordPress Performance

Description

optimize site speed by disabling plugins on certain pages

Short Description

With “Deactivate Plugins Per Page” you can easily disable plugins on certain WordPress pages (or on all except a selected page).

This is useful for speeding up your site mainly because many front-end plugins will load their JavaScript and CSS assets on every page, even if you use them on one page.

How it works?

You can add deactivation rules for active plugins. For example for a contact form plugin, that you only use on the contact page, simply add a rule to deactivate it on all URI except on the contact page.

deactivate plugins per page

add rule

Deactivation Rules Options

1. Deactivation Type
– Deactivate on selected URI
– Deactivate on all URI except selected

2. URI selection type
– Page
– Custom

3. [Page] Select pages to extract URI from (it will update automatically if the page slug changes)

3. [Custom] Custom URI condition
– URI equals …
– URI does not equal …
– URI contains …
– URI does not contain …
– URI starts with …
– URI does not start with …
– URI ends with …
– URI does not end with …

custom deactivation rules

4. Affected devices
– All
– Desktop
– Mobile

Plugin Groups

Create groups of multiple plugins in order to add deactivation rules that affect them all.

plugin groups

Debug Mode

Enable debug mode to see what is the URI and which plugins are active/inactive on the current page on the front-end. This will help you create rules and test current ones. A debug box will appear on the front-end if you are an administrator user.

debug information

Does it affect the Back-end?

There is an option (not enabled by default) that makes all rules with Custom URI selection to also affect the back-end. Some back-end pages will still not be affected in order to avoid problems, like the pages that control plugin activation, deactivation, updates, and installation.

Plugin Settings

settings

Some things to keep in mind

When plugins are deactivated via my plugin, the actual deactivation function is not called, and the deactivation hooks will not run. Instead, to make it work per page, plugins are just dynamically removed from the list of active plugins before the page loads. This means that if a plugin has some actions that it performs when it is deactivated, these actions will not run when it is deactivated via my plugin.

For example, some plugins add code to your ”.htaccess” file when they are activated, and when they are deactivated, they remove it. In this case if you add a deactivation rule with my plugin to stop the plugin on a certain page, the ”.htaccess” code will still be there and work on that page, even though the plugin will not be active on it.

Feedback / Support / Questions

Use the support section (requires sign-in), or my email [email protected]

Changelog

1.10.0 – 30 January 2020

Deactivate Plugins Per Page - Improve WordPress Performance - 1ADDED: In debug mode you can now perform quick plugin actions for the current URI: deactivate on the current URI, deactivate on all except the current URI, add a plugin to an existing group.

Deactivate Plugins Per Page - Improve WordPress Performance - 2ADDED: A button in the top right of the debug box that reloads the page.

Deactivate Plugins Per Page - Improve WordPress Performance - 3IMPROVED: A notice about caching plugins is shown when changing the affected devices menu in the add/edit rule box.

Deactivate Plugins Per Page - Improve WordPress Performance - 4FIXED: When importing the rules and settings, an error about invalid import data sent was shown, if one of the plugins has a name starting with an empty space.

Deactivate Plugins Per Page - Improve WordPress Performance - 5FIXED: When WP CLI is used, a warning was generated: Warning: in_array() expects parameter 2 to be array, null given…

Deactivate Plugins Per Page - Improve WordPress Performance - 6UPDATED: Language files.

1.9.0 – 13 November 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 7ADDED: Global actions to export or import all rules, groups, and settings of “Deactivate Plugins Per Page”.

Deactivate Plugins Per Page - Improve WordPress Performance - 8FIXED: The width of some drop-down boxes in WordPress 5.3.

Deactivate Plugins Per Page - Improve WordPress Performance - 9UPDATED: Language files.

Deactivate Plugins Per Page - Improve WordPress Performance - 10TESTED: Compatibility with WordPress 5.3.

1.8.0 – 15 October 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 11ADDED: Five plugin (or group) actions: Front-end Deactivate, Back-end Deactivate, Start Plugin Rules, Pause Plugin Rules, Delete Plugin Rules.

Deactivate Plugins Per Page - Improve WordPress Performance - 12ADDED: A text field to find pages when adding or editing a rule.

Deactivate Plugins Per Page - Improve WordPress Performance - 13IMPROVED: Inactive plugins are now shown in red, when adding or editing groups.

Deactivate Plugins Per Page - Improve WordPress Performance - 14IMPROVED: Removed this plugin from the active plugins section.

Deactivate Plugins Per Page - Improve WordPress Performance - 15IMPROVED: Changed the icon for deleting a group, so it is different from the one for deleting rules.

Deactivate Plugins Per Page - Improve WordPress Performance - 16IMPROVED: Better responsive design for some elements on the admin page.

Deactivate Plugins Per Page - Improve WordPress Performance - 17IMPROVED: If enabled, the debug box is now visible on the back-end regardless of the setting for custom URI selection rules affecting the back-end.

Deactivate Plugins Per Page - Improve WordPress Performance - 18UPDATED: Language and documentation files.

1.7.0 – 7 September 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 19ADDED: An option to ignore URI parameters when applying rules with custom URI selection. Popular tracking parameters like fbclid, fb_source, gclid, utm_medium, utm_source, and others are ignored by default.

Deactivate Plugins Per Page - Improve WordPress Performance - 20ADDED: The sections in the admin page are now collapsible. You can show and hide them. The sections are: active plugins, inactive plugins, plugin groups, settings.

Deactivate Plugins Per Page - Improve WordPress Performance - 21ADDED: An icon that indicates which plugins are already part of at least one plugin group, when creating or editing a group.

Deactivate Plugins Per Page - Improve WordPress Performance - 22FIXED: On the plugin admin page, the back-end notices from other plugins were shown further down on the page (instead of at the top).

Deactivate Plugins Per Page - Improve WordPress Performance - 23FIXED: A few spelling mistakes.

Deactivate Plugins Per Page - Improve WordPress Performance - 24UPDATED: Language files.

1.6.0 – 9 August 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 25ADDED: An option to ignore all URI parameters (aka the query string) in the current page URI, when applying the deactivation rules with Page URI selection. This way when some tracking parameters are added to the URI (like for example ?utm_source=facebook&utm_medium=post) the page will still be recognised correctly by the plugin. Does not affect plain permalink structure. This will be enabled by default.

Deactivate Plugins Per Page - Improve WordPress Performance - 26FIXED: In the 1.5.0 version, if debug mode was enabled and if we could not copy automatically the must-use plugin file to its folder, there was a PHP fatal error.

Deactivate Plugins Per Page - Improve WordPress Performance - 27UPDATED: Language files.

1.5.0 – 5 August 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 28ADDED: An option to also affect the back-end dashboard area by all rules with Custom URI selection.

Deactivate Plugins Per Page - Improve WordPress Performance - 29ADDED: An option to control the trailing slash of Page URIs used inside the deactivation rules.

Deactivate Plugins Per Page - Improve WordPress Performance - 30IMPROVED: Changed some words in the admin area to be more clear.

Deactivate Plugins Per Page - Improve WordPress Performance - 31UPDATED: Language files.

1.4.1 – 9 July 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 32FIXED: When editing a plugin group and some of the plugins are currently not installed, even though they show as selected (green and with a checked checkbox), they are not actually selected.

1.4.0 – 8 July 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 33ADDED: The action to edit a rule.

Deactivate Plugins Per Page - Improve WordPress Performance - 34ADDED: The action to edit a plugin group.

Deactivate Plugins Per Page - Improve WordPress Performance - 35UPDATED: Language and documentation files.

1.3.0 – 25 June 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 36ADDED: The ability to add multiple custom conditions in one rule. This makes it possible for example to deactivate a plugin on all URI except if: the URI contains something, or if it ends with something, or some other condition, etc.

Deactivate Plugins Per Page - Improve WordPress Performance - 37ADDED: Links to filter pages by WPML language and also the ability to select pages from multiple languages in the Add New Rule box (if WPML is active).

Deactivate Plugins Per Page - Improve WordPress Performance - 38ADDED: An option in the Add New Rule box to automatically select all translated pages with WPML of selected pages (if WPML is active).

Deactivate Plugins Per Page - Improve WordPress Performance - 39ADDED: An option to show the Plugin Groups section before the Active Plugins.

Deactivate Plugins Per Page - Improve WordPress Performance - 40IMPROVED: The URI values of pages are now updated when the permalink structure is re-saved, even if there are no actual changes to it. This is helpful when some plugin changes the URIs and says to re-save the permalinks. Then we will also catch the URI change made by that plugin.

Deactivate Plugins Per Page - Improve WordPress Performance - 41IMPROVED: In the rules tables, the URI conditions and URI values are in one column now, with URI values in bold.

Deactivate Plugins Per Page - Improve WordPress Performance - 42FIXED: Extracts incorrect URI of a page translated with WPML.

Deactivate Plugins Per Page - Improve WordPress Performance - 43FIXED: Adding the same rule for the same plugin, but with pages selected in a different order, is no longer possible.

Deactivate Plugins Per Page - Improve WordPress Performance - 44FIXED: A PHP warning about array_key_exists() expects parameter 2 to be array, bool given.

Deactivate Plugins Per Page - Improve WordPress Performance - 45UPDATED: Language and documentation files.

1.2.0 – 4 June 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 46ADDED: A way to quickly find a plugin by typing a part of its name in a text field. The other plugins are filtered out temporarily.

Deactivate Plugins Per Page - Improve WordPress Performance - 47ADDED: Global actions: pause all rules, start all rules, and delete all rules.

Deactivate Plugins Per Page - Improve WordPress Performance - 48ADDED: The ability to create plugin groups. Group two or more plugins in order to add deactivation rules that affect them all.

Deactivate Plugins Per Page - Improve WordPress Performance - 49ADDED: An option to remove all the data of this plugin upon its deletion (not for multisite).

Deactivate Plugins Per Page - Improve WordPress Performance - 50ADDED: A warning in the plugin admin page if the version of the must-use plugin file does not match the version of the normal plugin.

Deactivate Plugins Per Page - Improve WordPress Performance - 51FIXED: One confirmation message and also the URI condition in the rules tables were not translatable.

Deactivate Plugins Per Page - Improve WordPress Performance - 52FIXED: The language files will be loaded even if they are only present in the “languages” folder inside the plugin folder and not present in the “wp-content/languages” folder.

Deactivate Plugins Per Page - Improve WordPress Performance - 53FIXED: A small conflict with the Autoptimize plugin that caused an arrow in the debug box to be visible when it should be hidden.

Deactivate Plugins Per Page - Improve WordPress Performance - 54UPDATED: Language and documentation files.

1.1.0 – 14 May 2019

Deactivate Plugins Per Page - Improve WordPress Performance - 55FIXED: When selecting multiple pages for a rule that deactivates on all except selected, it would deactivate everywhere instead.

Deactivate Plugins Per Page - Improve WordPress Performance - 56UPDATED: Language files.

1.0.0 – 13 May 2019

Initial release

1. All digital products are the most recent version, with no possibility of free updates. After payment, you can request an update to the most recent version for 7 days if a new version is released. We free support within 7 days.

2. After the purchase is confirmed, download links will be available for 7 days. If a license is required, please contact us via email or ticket for assistance with activation. Our license is only valid for activation and does not include support.

3. We provide Mobile, PHP script installation services for $19.90. Please create a backup after installation as we do not support re-installation. For mobile app source code, we do not offer installation services.

4. If you have any questions, please contact us by email [email protected] or create a ticket on this page

5. Please note that any digital products presented on the website do not contain malicious code, viruses or advertising. You will receive the original files from the developers. We do not sell any products that have been downloaded from other websites.

6. The response time can last up to 6 hours.