Plugins are a big part of WordPress, however sometimes not properly written plugins can cause performance issues. With Plugin Organizer you can disable plugins on certain pages, and let plugins run only where it is really necessary. You can set URL match, Frontend, Admin Pages, AJAX action rules and exceptions to get the best results.
With Swift plugin organizer you can disable plugins on specific pages.
Here an example to exclude Contact Form 7 on frontend sidewide, except on your contactpage.
Example settings for Contact Form 7
1.) Add a block Frontend rule, it will prevent loading Contact Form 7 everywhere on frontend by default.
2.) Add exceptions (enable rule) for pages where you are using contact form. Use URL Match rule, and add the relative URL. For example you can add “contact”, it will let the plugin load on “http://yoursite.com/contact/” page.
3.) However you also need to add an exception for the “feedback” wp-json request. It will be https://yoursite.com/wp-json/contact-form-7/v1/contact-forms/ID/feedback. The easiest if you add an URL Match enable rule: “wp-json/contact-form-7”
Some examples of leading/trailing # for regex you can find here.