mdsimpson / contact-form-7-to-database-extension

CFDB - WordPress plugin to save form submissions into a database
GNU General Public License v3.0
240 stars 59 forks source link

Better initial setup for better performance #12

Open galbaras opened 7 years ago

galbaras commented 7 years ago

Better handling of form plugin detection

The plugin’s initial setup has all the possible form plugins set to “true”. This likely means that some code is being executed for each of them every time the plugin runs, which is wasteful. It also requires manual action to change the settings.

A better way would be to use is_plugin_active() to detect each of the form plugins automatically. This can be done on plugin activation to set the flags (faster), or it can be done every time the plugin runs (always up to date).

Export/import of settings

For people who manage multiple sites, it will also be good to have a settings export/import feature, so that configuration can be quickly copied from one site to another to save time.

Cosmetics

I’d move the “Save Changes” button to the bottom of the page.