WordPress contact form plugins are an easy way to create a contact form on your blog. You can use a simple shortcode to display the contact form in a page, in a post or may be in the sidebar. Contact form plugins are really good, but there is a serious problem often ignored.
The Problem With WordPress Contact Form Plugins
I have earlier used CForms and Contact form 7 plugins in this blog. No doubt, both these Plugins are great but both of them insert some scripts in your header. These scripts are called from every page of your blog which reduces the page load time considerably.
Inference : 140 Lines of unnecessary codes were injected in every page of our blog due to the contact form plugin. There is no need to load these files on any other page except the contact page of your blog.
To fix these issues, there are 3 Options available :
1. Edit the plugin source such that the scripts and the CSS loads only on the page where contact form is used (do at your own risk ).
2. Dump the contact form plugin and design a contact page for your blog with PHP, HTML and CSS.(See our contact page)
3. Use other tools to create a simple HTML contact form and embed that code in your contact page
Removing the contact form plugin decreased our page load time by 0.8 seconds. I will be discussing how to create a Contact Page for your blog without using any WordPress plugin. Stay tuned !