11

Click here to load reader

Optimize your WordPress sites

Embed Size (px)

DESCRIPTION

Your site has 200 visits per day, you don't need to take care about performance. But if your site reach 2000 visits per day, the speed of your site matters. Let's see tips from our team. We ues these tips for the busy traffic sites: http://wpml.org and http://wp-types.com. This presentation was on air in Saigon on March 1, 2014 in the event: + www.meetup.com/Saigon-WordPress/events/166516282/ + https://www.facebook.com/events/1411002305815823?refid=48

Citation preview

Page 1: Optimize your WordPress sites

FASTERWordPress

Optimize WordPress performance

Page 2: Optimize your WordPress sites

About me and the companyDat Hoang

● Community & Support of OnTheGoSystems

● Marketing Online

OnTheGoSystems

● WPML● Toolset plugins● ICanLocalize

Page 3: Optimize your WordPress sites

Agenda

● Easy-to-go tips

● Tips for database

● Advanced tips

● Discussion

Page 4: Optimize your WordPress sites

Easy-to-go tips

● Update WordPress core

● Resize images

● Enable gzip or zlib

● Delete unused plugin

Page 5: Optimize your WordPress sites

Tips for database

1. No revision if you have no idea to use it● Delete current revision posts

DELETE a,b,c FROM wp_posts a WHERE a.post_type =

'revision' LEFT JOIN wp_term_relationships b ON (a.ID = b.

object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);

● Disable revision in wp-config.php

define('WP_POST_REVISIONS', FALSE);

Page 6: Optimize your WordPress sites

Tips for database

2. Automatically empty trashDefine this line in wp-config.php

define('EMPTY_TRASH_DAYS', 10 );

3. Cleanup databaseLog in phpMyAdmin -> Select your blog tables-> Click ‘repair’ button-> Click ‘optimize’ button

Page 7: Optimize your WordPress sites

Advanced tips

1. Minify CSS and JS files○ WP Minify○ Better WP Minify○ WP-Compress-HTML

2. CDN (Content delivery network)○ Amazon S3, CloudFront○ MaxCDN

3. Caching plugins○ WordPress Super Cache: small sites, low traffic○ W3 Total Cache: big sites, high traffic, supporting

CDN

Page 8: Optimize your WordPress sites

Troubleshoot more problems

● Debug Queries

● P3 (Plugin Performance Profiler)

● Google Page Speed Insights

Page 9: Optimize your WordPress sites

Discussion

Page 10: Optimize your WordPress sites

Reference links1. http://codex.wordpress.

org/WordPress_Optimization/WordPress_Performance 2. http://wpml.org/2012/01/can-your-site-run-faster/3. http://www.copyblogger.com/make-wordpress-faster4. http://premium.wpmudev.org/blog/11-ways-to-make-

your-wordpress-site-faster-and-leaner/5. http://www.wpactions.com/843/how-to-make-your-

wordpress-site-faster/6. http://www.cloudproviderusa.com/5-basic-tips-how-

make-your-wordpress-site-faster/

Page 11: Optimize your WordPress sites

Big Thanks!Dat HoangCommunity & Support Vietnam E: [email protected]: wpml.org | wp-types.com | icanlocalize.com

Saigon, March 1, 2014