SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
Optimización de
Wordpress
Artvisual Formación 2012
sesión 7
Índice
1.¿Por qué es importante?
2.Server / Cliente
3.Server
4.Caché - W3 Total Cache
5.Cliente
6.Page Speed & YSlow
7.Tratamiento de imágenes
8.CSS & JS
9.Más
1. ¿Por qué es importante?
1. Pasta
- Gasto en servidores
- Más lento, menos usuarios/clientes
Google.com: +500 ms (speed decrease) -> -20%
traffic loss [1]
2. Móvil
3. Para no tener que llamar a los
compañeros de sistemas un domingo
porque se ha caído el servidor
4. Porque molamos y queremos
hacer las cosas bien
2. Server / Cliente
2 niveles de optimización
Servidor: optimizar el uso de
CPU de Wordpress
Cliente: Optimizar la carga de la
página, JS, CSS, imágenes,...
3. Server
Objetivo:
mejorar el tiempo de respuesta del servidor - uso de CPU -
TIPS
●define ('WP_DEBUG', true);
●Consultas lentas mysql
●Log de errores LIMPITO
●Actualizar, actualizar, actualizar! (wp y plugins)
●Instalar sólo los plugins necesarios, menos plugins, menos
consultas a BBDD
●Evitar plugins como el YARP
●Usar sistema de caché (siguiente slide)
4. Caché - W3 Total Cache
W3 Total Cache http://wordpress.org/extend/plugins/w3-total-cache/
Framework TOTAL para mejorar el rendimiento.MÁS FÁCIL
IMPOSIBLE!!
- Caché de BBDD
- Caché de objectos
- Caché de página (HTML)
- Caché de navegador (.htaccess)
- Minificador de CSS/JS/HTML
- Varnish
- CDN
Muy Fácil de configurar: http://abrahamlaria.com/acelera-
wordpress-con-w3-total-cache/
w3c
total
cache
5. Cliente
Velocidad real de carga de la Web, con imágenes, JS y CSS
80-90% of the end-user response time is spent downloading all
the components in the page: images, stylesheets, scripts,
Flash, etc
6. Google Page Speed y Yahoo YSlow
Son dos addons de Firefox que miden y te ayudan a
optimizar la velocidad de carga de tu Web
7. Tratamiento de imágenes
- Optimizar imágenes (plugins)
- Reducir a ser posible el
número de imágenes
- Cargar las imágenes más
tarde (lazyload)
- Redimensión de las imágenes
con los tamaños de
Wordpress add_image_size
( $name, $width, $height, $crop
)
- Redimensión con thumbGen
- Nunca redimensionar por
HTML o CSS
- CSS Sprites YA
- Especificar el tamaño de las
imágenes
8. CSS & JS
JS
- Cargar en el footer
- Reducir llamadas, llamar sólo donde haga falta
- Unir todos en uno y minificar (w3 total cache)
CSS
● Validar
● Unir todos en uno y minificar (w3 total cache)
● Sprites
● Serve CSS of a rarely visited component in its own file. Serve the file only when that
component is requested by a user.
● Don't use CSS @import from a CSS file.
HTML
- Corregir errores, intentar validar
- Minificar (w3 total cache)
9. Más
.htaccess
https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess
- Especificar caché del navegador (expiry date) para las
peticiones de recursos estáticos (w3 total cache)
- Quitar ETags
TODOS
- mod_pagespeed de Google. Filtros
- CDN/static domain
- Peticiones en paralelo (sólo 5 simultaneas por dominio)
- Cookieless (peticiones menos pesadas)
- Varnish cache https://www.varnish-cache.org/

Contenu connexe

En vedette

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

En vedette (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Optimización de Wordpress

  • 2. Índice 1.¿Por qué es importante? 2.Server / Cliente 3.Server 4.Caché - W3 Total Cache 5.Cliente 6.Page Speed & YSlow 7.Tratamiento de imágenes 8.CSS & JS 9.Más
  • 3. 1. ¿Por qué es importante? 1. Pasta - Gasto en servidores - Más lento, menos usuarios/clientes Google.com: +500 ms (speed decrease) -> -20% traffic loss [1] 2. Móvil 3. Para no tener que llamar a los compañeros de sistemas un domingo porque se ha caído el servidor 4. Porque molamos y queremos hacer las cosas bien
  • 4. 2. Server / Cliente 2 niveles de optimización Servidor: optimizar el uso de CPU de Wordpress Cliente: Optimizar la carga de la página, JS, CSS, imágenes,...
  • 5. 3. Server Objetivo: mejorar el tiempo de respuesta del servidor - uso de CPU - TIPS ●define ('WP_DEBUG', true); ●Consultas lentas mysql ●Log de errores LIMPITO ●Actualizar, actualizar, actualizar! (wp y plugins) ●Instalar sólo los plugins necesarios, menos plugins, menos consultas a BBDD ●Evitar plugins como el YARP ●Usar sistema de caché (siguiente slide)
  • 6. 4. Caché - W3 Total Cache W3 Total Cache http://wordpress.org/extend/plugins/w3-total-cache/ Framework TOTAL para mejorar el rendimiento.MÁS FÁCIL IMPOSIBLE!! - Caché de BBDD - Caché de objectos - Caché de página (HTML) - Caché de navegador (.htaccess) - Minificador de CSS/JS/HTML - Varnish - CDN Muy Fácil de configurar: http://abrahamlaria.com/acelera- wordpress-con-w3-total-cache/ w3c total cache
  • 7. 5. Cliente Velocidad real de carga de la Web, con imágenes, JS y CSS 80-90% of the end-user response time is spent downloading all the components in the page: images, stylesheets, scripts, Flash, etc
  • 8. 6. Google Page Speed y Yahoo YSlow Son dos addons de Firefox que miden y te ayudan a optimizar la velocidad de carga de tu Web
  • 9. 7. Tratamiento de imágenes - Optimizar imágenes (plugins) - Reducir a ser posible el número de imágenes - Cargar las imágenes más tarde (lazyload) - Redimensión de las imágenes con los tamaños de Wordpress add_image_size ( $name, $width, $height, $crop ) - Redimensión con thumbGen - Nunca redimensionar por HTML o CSS - CSS Sprites YA - Especificar el tamaño de las imágenes
  • 10. 8. CSS & JS JS - Cargar en el footer - Reducir llamadas, llamar sólo donde haga falta - Unir todos en uno y minificar (w3 total cache) CSS ● Validar ● Unir todos en uno y minificar (w3 total cache) ● Sprites ● Serve CSS of a rarely visited component in its own file. Serve the file only when that component is requested by a user. ● Don't use CSS @import from a CSS file. HTML - Corregir errores, intentar validar - Minificar (w3 total cache)
  • 11. 9. Más .htaccess https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess - Especificar caché del navegador (expiry date) para las peticiones de recursos estáticos (w3 total cache) - Quitar ETags TODOS - mod_pagespeed de Google. Filtros - CDN/static domain - Peticiones en paralelo (sólo 5 simultaneas por dominio) - Cookieless (peticiones menos pesadas) - Varnish cache https://www.varnish-cache.org/