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

Optimizing your website’s images is another crucial step in improving its overall performance. To ensure your images are web-ready, consider optimizing them before uploading them to your website. 

Large images can slow down your website’s load time, negatively impacting the user experience and search engine rankings. Many photo editing applications, such as Photoshop, allow you to optimize images for the web using the “Save for Web” option.

In addition to optimizing your images manually, you can also use one of the best WordPress image optimization plugins to automate the process. By reducing the file size of your images, these plugins can significantly improve your website’s load time and overall performance. WP Smush.it is a popular plugin that compresses and optimizes your images without sacrificing quality.

Another useful technique for optimizing your website’s images is to use Sprites for your themes. By combining multiple images into a single file, Sprites reduce the number of HTTP requests needed to load your website. When choosing a WordPress theme, look for one that utilizes Sprites to improve your website’s performance.

To learn more about optimizing your website’s images, check out Elegant Themes’ blog post on the best WordPress image optimization plugins. By incorporating these tips into your website optimization strategy, you can create a faster, more user-friendly website that ranks higher in search engine results.

 

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

One of the best ways to optimize your website’s performance is by enabling dynamic caching using the best WordPress cache plugins. Caching plugins can help to speed up your website by storing frequently accessed data and serving it up quickly without having to fetch it from the server every time a user requests it. By installing one of the best WordPress cache plugins, such as WP Rocket, W3 Total Cache, or WP Fastest Cache, you can reduce your website’s load time and improve its overall performance, which can lead to higher search engine rankings and better user engagement.

To ensure your website is running at its best, consider installing one of the best WordPress cache plugins and taking advantage of its dynamic caching capabilities. With the right cache plugin and configuration, you can give your website’s performance a significant boost. Check out Elegant Themes’ blog post on the best WordPress cache plugins to help you make an informed decision about which plugin to use for your website.

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