Steps

1. Choose the Right Hosting Plan

Choose a hosting plan that can handle traffic spikes efficiently.

2. Use a Fast WordPress Theme

A design that has been coded badly, or uses images throughout the design, will add unnecessary weight to your page.Such a design could add a few seconds to your page loading time.

3. Monitor Your Plugins

– Before you install any plugin on your website, ask yourself “Is this plugin necessary?”.
Plugins are one of the biggest causes of WordPress websites being slow. The more plugins you install without research, the more likely you will face performance issues.Many plugins can bottleneck your CPU due to persistent processes. If this happens, your whole server could go down.

– One plugin I highly recommend you use is P3 Profiler. Developed by GoDaddy, the plugin will show you exactly how much load time your plugins are adding. A breakdown is given which displays exactly how much load each plugin adds. It is the most effective way of seeing what plugins are slowing down your website.

4. Empty Your Trash

– WordPress 2.9 introduced the WordPress trash system. Whenever content is deleted, be it a comment, post, page, media etc; it is sent to trash.

– Trash can take up a lot of unnecessary room in your website’s database. The bigger the database, the longer it is to retrieve information from it.

– By default, WordPress will automatically delete trash after thirty days. This can be reduced by modifying the wp-config.php file.

– For example, you could reduce this to seven days by adding the following:
define (‘EMPTY_TRASH_DAYS’, 7);

– You can completely disable the trash system by adding this to your wp-config.php file.
define (‘EMPTY_TRASH_DAYS’, 0);

5. Reduce Post Revisions, Drafts, Spam, Pingbacks and Trackbacks

– It is not just trash that can needlessly increase the size of your database. All post types populate table rows with data. Therefore, it is important to regularly delete spam comments and unwanted pingbacks and trackbacks.

– In addition to one autosave of your posts and pages, revisions will be generated each time you save your articles. This means that an article with ten revisions with take up ten times as much room on your database than the actual article that was published. As you can imagine, this increases the size of your database considerably.

– By default, WordPress will save an unlimited number of revisions, however this is generally not needed. It is better to reduce this limit to something more practical such as two or three.

– You can do this by adding the following code to your wp-config.php file:
define( ‘WP_POST_REVISIONS’, 3 );

– You can completely disable the post revision system by adding this to your wp-config.php file.
define (‘WP_POST_REVISIONS’, 0);

6. Optimize Your Images for the Web

– It is therefore in your best interests to optimise your images for the internet before you upload them to your website. Most photo editing applications, such as Photoshop, allow you to do this via the “Save for Web” option.

– Smush your images with WP Smush.it plugin.

– If possible, use Sprites for your themes so in this way we can make fewer http reuqest. So always look for themes that utilise sprites

7. Enable Gzip Compression

– To decrease the size of data that’s being transferred between your server and your visitors, you can enable the gZIP compression for your images, CSS and JavaScript files

– By doing this, the web server will compress (like creating a ZIP file for example) this content before it’s transferred over the Internet to your browser. On the other side, your browser decompresses the content before rendering it and so it will lowering the loading times of your pages..

– Gzip compression allows a website page to be transferred to a browser at up to 70% of its original size.

– Gzip can be enabled via the WordPress options page. You can find this page at www.yourwebsite.com/wp-admin/options.php. To enable Gzip, simply change the value of the Gzip field from 0 to 1.

– Also it can be possible to add some small code into your .htaccess file

8. Make sure your theme loads nothing more than just a few JavaScript files, one CSS file

Minify and Combine CSS and Javascript so this greatly reduces the number of HTTP requests

9. Always optimize your PHP code so make fewer database queries and use fewer PHP functions.

10. Enable Browser Caching

11. Enable Dynamic Caching by using install a Cache Plugin

12. Add expires headers for caching

13. Use a Content Delivery Network

14. Optimize your WordPress Database

15. Respect WordPress Coding Standards so for that used below standards from wordpress

– WordPress coding standards for HTML
– WordPress standards for CSS code
– PHP coding standards in WordPress
– Javascript code standards for WordPress

View More

16. Properly enque scripts and styles

Top Cache Plugins

– WP Fastest Cache
– WP Rocket
– WP Super Cache
– W3 Total Cache

Top Speed Checking Tools

Google PageSpeed Insights
Gtmetrix
pingdom