6 Tips to Speed Up and Optimize Your WordPress Plugins

Date:


background image

The WordPress engine is pretty efficient out of the box, but once you start loading plugins the performance and responsiveness of your site might go downhill. On top of that the consumption of resources might become too big, possibly leading to a suspension of your hosting account (especially if you use shared hosting).

Over the years I played with and tweaked my WordPress plugins trying to achieve a good performance level, and below you’ll find the tips I learned along the way:

1. Use a Cache Plugin

Serving cached versions of your pages is one of the most efficient ways to speed up your site and to reduce the CPU and memory consumption on your server. Also, if you are not using the W3TC plugin yet I highly recommend you switch to it, as it works much more efficiently than the other plugins available.

2. Remove All Unnecessary Plugins

Unless your site absolutely relies on a plugin to work I would recommend removing it. Sure, you might need to lose a functionality or two, but in the long run this will keep your site running fast and securely. Keep in mind that it’s possible to hard code what some plugins do, as well. For example, instead of using a plugin to generate a list of “Popular Posts” on your sidebar you could create the list yourself with raw HTML. Instead of using a contact form plugin you could simply write a paragraph on your “Contact” page including your email address there. So on and so forth.

3. Pay Special Attention to Post-Level Plugins

On most WordPress sites and blogs, the bulk of the traffic goes to the posts. The homepage, the category and archive pages receive around 20% of the overall traffic, if that, while the posts receive 80%.

This means that plugins that act at post-level will consume most of your resources. Examples include plugins to change SEO aspects of your posts (e.g., All in One SEO Pack), plugins to display related posts and so on. As a result you should put an extra effort to either remove or optimize those plugins (more on that below).

4. Consider Substituting All In One SEO Pack

The All in One SEO Pack plugin is certainly one of the best SEO plugins around, but it’s also pretty intensive on the resources of your server. For small sites this won’t be a problem, but once your traffic starts growing you might start to feel it.

A good alternative is called Greg’s High Performance SEO. According to the author All in One SEO Pack outputs 2023 lines of code per page load/view, while Greg’s plugin output only 700 lines.

In my opinion the main benefit of those SEO plugins is the ability to customize the title tag. If that is the most important factor for you as well you can be even more extreme and use no plugin at all. Instead use the piece of code below to create optimized title tags for your posts:

<title><?php if (is_home () ) { bloginfo(‘name’); }
elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo(‘name’); }
elseif (is_single() ) { single_post_title();}
elseif (is_page() ) { single_post_title();}
else { wp_title(‘’,true); } ?></title>

5. Consider Substituting YARPP

Along with All In One SEO Pack there’s another plugin that is very popular and yet very resource intensive: YARPP (Yet Another Relate Posts Plugin).

One alternative you can consider is the Efficient Related Posts plugin. The main difference is that the database of related posts is updated only when a post is created/updated, while other plugins tend to build the list on the fly, whenever a post is loaded.

6. Optimize Your Database Tables

As with any dynamic content management system, great part of the work your WordPress site does is related to getting, storing, removing and updating information on its database. That’s why optimizing your database tables can affect your site’s performance.

A nice plugin you can use for this purpose is WP-Optimize. It will remove your post revisions, clean your comments (e.g., spam and deleted ones), run optimization queries and so on.

6 Tips to Speed Up and Optimize Your WordPress Plugins Photo

About Daniel

Daniel Scocco is a programmer and entrepreneur located in São Paulo, Brazil. His first company, Online Profits, builds and manages websites in different niches. His second company, Kubic, specializes in developing mobile apps for the iOS and Android platforms.



Source link

Share post:

[tds_leads title_text="Subscribe" input_placeholder="Email address" btn_horiz_align="content-horiz-center" pp_checkbox="yes" pp_msg="SSd2ZSUyMHJlYWQlMjBhbmQlMjBhY2NlcHQlMjB0aGUlMjAlM0NhJTIwaHJlZiUzRCUyMiUyMyUyMiUzRVByaXZhY3klMjBQb2xpY3klM0MlMkZhJTNFLg==" f_title_font_family="653" f_title_font_size="eyJhbGwiOiIyNCIsInBvcnRyYWl0IjoiMjAiLCJsYW5kc2NhcGUiOiIyMiJ9" f_title_font_line_height="1" f_title_font_weight="700" f_title_font_spacing="-1" msg_composer="success" display="column" gap="10" input_padd="eyJhbGwiOiIxNXB4IDEwcHgiLCJsYW5kc2NhcGUiOiIxMnB4IDhweCIsInBvcnRyYWl0IjoiMTBweCA2cHgifQ==" input_border="1" btn_text="I want in" btn_tdicon="tdc-font-tdmp tdc-font-tdmp-arrow-right" btn_icon_size="eyJhbGwiOiIxOSIsImxhbmRzY2FwZSI6IjE3IiwicG9ydHJhaXQiOiIxNSJ9" btn_icon_space="eyJhbGwiOiI1IiwicG9ydHJhaXQiOiIzIn0=" btn_radius="3" input_radius="3" f_msg_font_family="653" f_msg_font_size="eyJhbGwiOiIxMyIsInBvcnRyYWl0IjoiMTIifQ==" f_msg_font_weight="600" f_msg_font_line_height="1.4" f_input_font_family="653" f_input_font_size="eyJhbGwiOiIxNCIsImxhbmRzY2FwZSI6IjEzIiwicG9ydHJhaXQiOiIxMiJ9" f_input_font_line_height="1.2" f_btn_font_family="653" f_input_font_weight="500" f_btn_font_size="eyJhbGwiOiIxMyIsImxhbmRzY2FwZSI6IjEyIiwicG9ydHJhaXQiOiIxMSJ9" f_btn_font_line_height="1.2" f_btn_font_weight="700" f_pp_font_family="653" f_pp_font_size="eyJhbGwiOiIxMyIsImxhbmRzY2FwZSI6IjEyIiwicG9ydHJhaXQiOiIxMSJ9" f_pp_font_line_height="1.2" pp_check_color="#000000" pp_check_color_a="#ec3535" pp_check_color_a_h="#c11f1f" f_btn_font_transform="uppercase" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjQwIiwiZGlzcGxheSI6IiJ9LCJsYW5kc2NhcGUiOnsibWFyZ2luLWJvdHRvbSI6IjM1IiwiZGlzcGxheSI6IiJ9LCJsYW5kc2NhcGVfbWF4X3dpZHRoIjoxMTQwLCJsYW5kc2NhcGVfbWluX3dpZHRoIjoxMDE5LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" msg_succ_radius="2" btn_bg="#ec3535" btn_bg_h="#c11f1f" title_space="eyJwb3J0cmFpdCI6IjEyIiwibGFuZHNjYXBlIjoiMTQiLCJhbGwiOiIxOCJ9" msg_space="eyJsYW5kc2NhcGUiOiIwIDAgMTJweCJ9" btn_padd="eyJsYW5kc2NhcGUiOiIxMiIsInBvcnRyYWl0IjoiMTBweCJ9" msg_padd="eyJwb3J0cmFpdCI6IjZweCAxMHB4In0="]
spot_imgspot_img

Popular

More like this
Related

Green Bean Casserole – Spend With Pennies

Everyone loves this classic holiday side dish—and it...

Dr. Oz Invested in Businesses Regulated by Agency Trump Wants Him To Lead

President-elect Donald Trump’s choice to run the sprawling...

Good News For Investors—Commercial Real Estate is Finally Catching a Break

<div id="page" x-data="sidebarAds(24%7C&utm_source=Bigger%20Pockets&utm_term=Bigger%20Pockets","linkTitle":"Schedule a Call Today","id":"65d4be7b89ca4","impressionCount":"574628","dailyImpressionCount":"773","impressionLimit":"878328","dailyImpressionLimit":"2780","r720x90":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/08/REI-Nation-X-BP-Blog-Ad-720x90-1.png","r300x250":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/08/REI-Nation-X-BP-Blog-Ad-300x250-1.png","r300x600":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/08/REI-Nation-X-BP-Blog-Ad-300x600-1.png","r320x50":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/08/REI-Nation-X-BP-Blog-Ad-320x50-1.png","r720x90Alt":"","r300x250Alt":"","r300x600Alt":"","r320x50Alt":""},{"sponsor":"Center Street Lending","description":"","imageURL":null,"imageAlt":null,"title":"","body":"","linkURL":"https://centerstreetlending.com/bp/","linkTitle":"","id":"664ce210d4154","impressionCount":"305483","dailyImpressionCount":"751","impressionLimit":"600000","dailyImpressionLimit":"2655","r720x90":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/05/CSL_Blog-Ad_720x90-1.png","r300x250":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/05/CSL_Blog-Ad_300x250-2.png","r300x600":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/05/CSL_Blog-Ad_300x600-2.png","r320x50":"https://www.biggerpockets.com/blog/wp-content/uploads/2024/05/CSL_Blog-Ad_320x50.png","r720x90Alt":"","r300x250Alt":"","r300x600Alt":"","r320x50Alt":""},{"sponsor":"BiggerPockets...