Descripción
El plugin Performance Lab es una colección de módulos centrados en la mejora del rendimiento de tu sitio, la mayoría de los cuales deberían integrarse en el núcleo de WordPress. El plugin permite activar y probar individualmente los módulos para obtener sus beneficios antes de que estén disponibles en el núcleo de WordPress y proporcionar comentarios para mejorar aún más las soluciones.
Actualmente, el plugin incluye los siguientes módulos de rendimiento:
- Dominant Color Images: Adds support to store the dominant color of newly uploaded images and create a placeholder background of that color.
- WebP Support Health Check: Adds a WebP support check in Site Health status.
- Subidas de WebP: Crea versiones WebP para las nuevas subidas de imágenes JPEG si el alojamiento es compatible.
- Enqueued Assets Health Check: Adds a CSS and JS resource check in Site Health status.
- Autoloaded Options Health Check: Adds a check for autoloaded options in Site Health status.
Instalación
Instalación desde WordPress
- Visita Plugins > Añadir nuevo.
- Busca Performance Lab.
- Instala y activa el plugin Performance Lab.
Instalación manual
- Sube el contenido completo de la carpeta
performance-lab
al directorio/wp-content/plugins/
. - Visita Plugins.
- Activa el plugin Performance Lab.
Después de la activación
- Visita el nuevo menú Ajustes > Rendimiento.
- Activa los módulos individuales que te gustaría utilizar.
FAQ
-
¿Cuál es el propósito de este plugin?
-
El propósito principal del plugin Performance Lab es permitir la prueba de varios módulos de rendimiento cuyo objetivo es, eventualmente, incorporarlos en el núcleo de WordPress. Es esencialmente una colección de «plugins de características», que lo hace diferente de otros plugins de rendimiento que ofrecen características de rendimiento que no están dirigidas al núcleo de WordPress y potencialmente dependen de una funcionalidad que no sería factible de usar en el núcleo de WordPress. La lista de módulos disponibles cambiará regularmente: Los módulos existentes pueden eliminarse después de que se hayan lanzado en el núcleo de WordPress, mientras que se pueden añadir nuevos módulos en cualquier versión.
-
¿Puedo usar este plugin en mi sitio en producción?
-
Según el propósito principal del plugin (ver arriba), principalmente se puede considerar un plugin de pruebas beta para los diversos módulos de rendimiento que incluye. Sin embargo, a menos que un módulo esté explícitamente marcado como «experimental», se ha probado y establecido hasta un punto en el que debería funcionar bien para su uso en producción. Aun así, como con cada plugin, lo haces bajo tu propia responsabilidad.
-
¿Dónde puedo enviar mis comentarios sobre el plugin?
-
Feedback is encouraged and much appreciated, especially since this plugin is a collection of future WordPress core features. If you have suggestions or requests for new features, you can submit them as an issue in the Performance Lab GitHub repository. If you need help with troubleshooting or have a question about the plugin, please create a new topic on our support forum.
-
Where can I report security bugs?
-
The Performance team and WordPress community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
To report a security issue, please visit the WordPress HackerOne program.
-
¿Cómo puedo colaborar con el plugin?
-
Contributions are always welcome! Learn more about how to get involved in the Core Performance Team Handbook.
-
I’ve activated the WebP Uploads module, but WebP images are not always generated when I upload a JPEG image. Why?
-
There are two primary reasons that a WebP image may not be generated:
- Performance Lab has identified that the WebP version of the uploaded JPEG image would have a larger file size than the original JPEG image, so it does not generate the WebP version.
- The JPEG image was not uploaded to the Media Library. At this time, WebP versions are only generated for images to the Media Library. WebP versions are not generated for JPEG images that are added to your site in other ways, such as in a template file or the Customizer.
-
With the WebP Uploads module activated, will the plugin generate JPEG and WebP versions of every image that I upload?
-
By default, the WebP Uploads module will only generate WebP versions of the images that you upload. If you wish to have both WebP and JPEG versions generated, you can navigate to Settings > Media and enable the Generate JPEG files in addition to WebP option.
Reseñas
Colaboradores y desarrolladores
«Performance Lab» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Performance Lab» ha sido traducido a 20 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «Performance Lab» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
2.7.0
Mejoras
- Images: Remove Fetchpriority module as the functionality is now available in WordPress core. (854)
- Infrastructure: Bump minimum required PHP version to 7.0 and minimum required WP version to 6.3. (851)
Documentación
- Infrastructure: Publish Dominant Color Images standalone plugin. (842)
2.6.1
Correcciones de fallos
- Infrastructure: Remove PHPStan config file from plugin directory. (816)
Documentación
- Infrastructure: Add standalone plugin assets. (815)
2.6.0
Características
- Infrastructure: Add output buffering checkbox to Server-Timing screen. (801)
- Infrastructure: Implement logic to measure specific hook execution time with Server-Timing controlled by a WP Admin screen. (784)
Mejoras
- Images: Fix incorrect function prefixes in Dominant Color Images. (789)
- Infrastructure: Add early exit clauses to files with procedural code. (790)
- Infrastructure: Allow disabling Server-Timing entirely using
PERFLAB_DISABLE_SERVER_TIMING
constant. (795)
Correcciones de fallos
- Images: Fix WebP handling when editing images based on WordPress 6.3 change. (796)
- Infrastructure: Fix errors detected by Plugin Checker. (788)
2.5.0
Mejoras
- Images: Check for fetchpriority feature being available in WordPress core before loading the module. (769)
- Database Optimization: Remove SQLite module. (764)
- Infrastructure: Bump tested up to version to 6.3. (772)
2.4.0
Mejoras
- Database: Implement migration prompt to migrate from SQLite module to standalone plugin due to removal in the following release. (739)
- Infrastructure: Enhance code quality by adding PHPStan and fixing level 0 issues. (730)
- Infrastructure: Use static closures for minor performance improvement whenever instance access is not needed. (729)
Correcciones de fallos
- Database: Fix SQLite module deactivation routine to make standalone plugin migration work correctly. (743)
- Infrastructure: Make
Server-Timing
header output more robust. (736)
2.3.0
Mejoras
- Images: Configure
Dominant Color
andFetchpriority
modules for their standalone plugins. (704) - Infrastructure: Temporarily remove Dominant Color Images from standalone
plugins.json
definition. (719) - Infrastructure: Use dynamic version from
plugins.json
for manual workflow. (710)
Correcciones de fallos
- Images: Add dominant color styling before any existing inline style attributes. (716)
- Infrastructure: Resolve low-severity security advisory GHSA-66qq-69rw-6×63.
2.2.0
Mejoras
- Images: Remove «experimental» flag from Fetchpriority module. (702)
- Infrastructure: Implement infrastructure for launching standalone plugins from modules, including WebP Uploads. (699)
- Infrastructure: Include
WordPress-Extra
rules in PHPCS configuration and fix resulting problems. (695)
Correcciones de fallos
- Images: Sanitize target param before using it. (690)
Documentación
- Images: Change module slug/directory from
dominant-color
todominant-color-images
. (708) - Images: Rename
Dominant Color
module toDominant Color images
. (705)
2.1.0
Mejoras
- Infrastructure: Add
wp-total
metric to default Server-Timing metrics. (669) - Infrastructure: Ensure module
load.php
files really only load other code to prevent conflicts in standalone plugins. (674)
Correcciones de fallos
- Infrastructure: Fix problems with placing
object-cache.php
drop-in. (672)
2.0.0
Mejoras
- Object Cache: Update WordPress version to 6.1 and remove Cache modules. (641)
- Measurement: Add
perflab_disable_object_cache_dropin
filter. (629) - Database: Add an indicator in the adminbar to show when using SQLite. (604)
Correcciones de fallos
- Images: Check for existing
$metadata['sizes']
to fix PHP warning. (648) - Images: Use correct number of arguments in filter callback. (634)
- Database: Fix invalid docs and return types as highlighted by static analysis. (645)
- Infrastructure: Fix incorrect usage of
plugin_action_links_*
filter. (647)
Documentación
- Infrastructure: Add file header to object-cache drop-in to clarify purpose. (649)
1.9.0
Mejoras
- Database: Remove warning about multi-server environment from the SQLite module description. (619)
Correcciones de fallos
- Infrastructure: Enhance object-cache.php drop-in interoperability with other plugins. (616)
1.8.0
Características
- Measurement: Implement Server-Timing API foundation as well as basic load time metrics. (553)
- Database: Implement new experimental SQLite integration module. (547)
- Images: Implement new experimental
fetchpriority
module. (528)
Correcciones de fallos
- Database: Fix SQLite notices related to undefined properties. (600)
- Database: Fix incorrect handling of
admin_email
and actual admin user’s email when originaladmin_email
user was deleted. (603) - Database: Make WP filesystem setup more robust to prevent potential errors. (595)
1.7.0
Mejoras
- Images: Change WP Image editor quality for mime types. (571)
- Infrastructure: Introduce database focus area, rename JavaScript focus area to JS & CSS, and phase out Site Health focus area. (566)
Correcciones de fallos
- Images: Avoid potentially adding invalid attributes or duplicates for dominant color images. (578)
- Images: Fix fatal error in REST API response when an image has no attachment metadata. (568)
- Images: Fix image focal point bug when dominant color is enabled by not overriding
style
attribute. (582) - Images: Fix opt-in checkbox for generating WebP and JPEG to also show on Multisite. (565)
1.6.0
Mejoras
- Site Health: Only load Site Health checks for persistent cache and full page cache when not available in core. (543)
- Images: Add checkbox to Settings > Media to control whether to generate JPEG in addition to WebP. (537)
- Images: Generate only WebP images by default for JPEG and WebP uploads. (527)
- Infrastructure: Bump minimum WordPress requirement to 6.0. (549)
1.5.0
Mejoras
- Site Health: Improve autoloaded options check by highlighting largest autoloaded options. (353)
1.4.0
Mejoras
- Images: Enhance JS replacement mechanism for WebP to JPEG to more reliably replace full file name. (443)
- Images: Introduce
webp_uploads_get_content_image_mimes()
to get content image MIME replacement rules. (420) - Infrastructure: Add
PERFLAB_PLUGIN_DIR_PATH
constant forplugin_dir_path()
. (429) - Infrastructure: Rename Site Health check modules for language and consistency. (423)
Correcciones de fallos
- Site Health: Fix incorrect usage of badge colors in all Site Health checks. (472)
- Images: Add the original image’s extension to the WebP file name to ensure it is unique. (444)
- Images: Fix REST API support for plain permalinks. (457)
- Infrastructure: Remove plugin option network-wide for Multisite during uninstall. (458)
1.3.0
Mejoras
- Images: Add replacing of images only in frontend context. (424)
- Images: Allow control for which image sizes to generate additional MIME type versions. (415)
- Images: Discard WebP image if it is larger than corresponding JPEG image. (418)
- Images: Optimize computing dominant color and transparency for images by combining the two functions. (381)
- Images: Provide fallback JPEG images in frontend when WebP is not supported by the browser. (360)
- Images: Rely on
wp_get_image_editor()
methods argument to check whether it supports dominant color methods. (404) - Images: Remove experimental label from Dominant Color module and turn on by default for new installs. (425)
- Site Health: Remove
perflab_aea_get_resource_file_size()
in favor ofwp_filesize()
. (380) - Site Health: Update documentation link for autoloaded options. (408)
- Infrastructure: Implement mechanism to not load module if core version is available. (390)
Correcciones de fallos
- Images: Ensure incorrect usage of
webp_uploads_upload_image_mime_transforms
filter is treated correctly. (393) - Images: Fix PHP notice and bug in logic for when
webp_uploads_prefer_smaller_image_file
filter is set totrue
. (397) - Images: Fix an infinite loop in the WebP fallback mechanism. (433)
- Images: Fix dominant color upload process to not override potential third-party editors. (401)
- Images: Remove additional image backup sources & sizes files when attachment deleted. (411)
- Infrastructure: Avoid including .husky directory in plugin ZIP. (421)
- Infrastructure: Do not show admin pointer in multisite Network Admin. (394)
1.2.0
Características
- Images: Add Dominant Color module to provide color background for loading images. (282)
- Site Health: Add Site Health check for Full Page Cache usage. (263)
Mejoras
- Images: Update
webp_uploads_pre_generate_additional_image_source
filter to allow returning file size. (334) - Infrastructure: Introduce plugin uninstaller routine. (345)
- Infrastructure: Use
wp_filesize
instead offilesize
if available. (376)
Correcciones de fallos
- Images: Avoid overwriting existing WebP files when creating WebP images. (359)
- Images: Back up edited
full
image sources when restoring the original image. (314)
1.1.0
Características
- Infrastructure: Add Performance Lab generator meta tag to
wp_head
output. (322)
Mejoras
- Images: Introduce filter
webp_uploads_pre_generate_additional_image_source
to short-circuit generating additional image sources on upload. (318) - Images: Introduce filter
webp_uploads_pre_replace_additional_image_source
to short-circuit replacing additional image sources in frontend content. (319) - Images: Refine logic to select smaller image file in the frontend based on
webp_uploads_prefer_smaller_image_file
filter. (302) - Images: Replace the featured image with WebP version when available. (316)
- Site Health: Update Site Health Autoloaded options documentation link. (313)
- Infrastructure: Avoid unnecessarily early escape of Site Health check labels. (332)
Correcciones de fallos
- Object Cache: Correct label for persistent object cache Site Health check. (329)
- Images: Only update the specified target images when an image is edited. (301)
1.0.0
Características
- Images: Generate secondary image MIME types when editing original image. (235)
Mejoras
- Images: Introduce
webp_uploads_prefer_smaller_image_file
filter allowing to opt in to preferring the smaller image file. (287) - Images: Select MIME type to use in frontend content based on file size. (243)
- Site Health: Update Site Health reports copy for more clarity and consistency. (272)
Documentación
- Infrastructure: Define the plugin’s version support and backward compatibility policy. (240)
1.0.0-rc.1
Mejoras
- Imágenes: Cambiar el orden esperado de los elementos en el filtro
webp_uploads_content_image_mimes
. (250) - Imágenes: Reemplazar las imágenes en el contenido de la portada sin usar una expresión regular adicional. (262)
- Imágenes: Restauración y copia de seguridad de los tamaños de las imágenes junto a las propiedades de las fuentes. (242)
Correcciones de fallos
- Imágenes: Seleccionar el editor de imágenes basado en la compatibilidad con WebP en lugar de usar siempre el predeterminado. (259)
1.0.0-beta.3
Correcciones de fallos
- Infraestructura: Asegurar que se cargan los módulos por defecto independientemente del ajuste del registro. (248)
1.0.0-beta.2
Características
- Imágenes: Crear tipos MIME adicionales para la imagen de tamaño completo. (194)
- Salud del sitio: Añade un módulo para advertir sobre la cantidad excesiva de opciones cargadas automáticamente. (124)
Mejoras
- Imágenes: Añade información de las fuentes a los detalles de los medios adjuntos de la respuesta REST. (224)
- Imágenes: Permite a los desarrolladores seleccionar qué formato de imagen utilizar para las imágenes del contenido. (230)
- Imágenes: Permitir a los desarrolladores ajustar los formatos de imagen que se generarán al subirlas. (227)
- Imágenes: Reemplaza la imagen de tamaño completo en
the_content
con el tipo MIME adicional, si está disponible. (195) - Caché de objetos: Incluir la extensión
memcached
en las comprobaciones para la compatibilidad con la caché de objetos. (206) - Infraestructura: Añadir el banner del plugin y los recursos de iconos. (231)
- Infraestructura: Usar
.gitattributes
en lugar de.distignore
para dar mejor compatibilidad a la creación de archivos ZIP. (223)
Correcciones de fallos
- Imágenes: Utiliza la imagen
original
para generar todos los subtamaños de formato de imagen adicionales. (207) - Infraestructura: Sustituir el gancho de activación no fiable por el valor por defecto para los módulos activados. (222)
Documentación
- Infraestructura: Actualizar las instrucciones de lanzamiento para incluir una estrategia de ramificación adecuada y proteger las ramas de lanzamiento. (221)
1.0.0-beta.1
Características
- Imágenes: Añadir WebP para el módulo de subidas. (32)
- Imágenes: Compatibilidad con el mecanismo de reintento para generar subtamaños en tipos MIME adicionales en entornos restringidos. (188)
- Images: Update
the_content
with the appropriate image format. (152) - Salud del sitio: Añadir compatibilidad para WebP en la salud del sitio. (141)
- Salud del sitio: Añadir un módulo para alertar sobre el exceso de recursos JS y CSS. (54)
- Caché de objetos: Añadir el módulo de comprobación de la salud del sitio para la caché de objetos persistente. (111)
- Infraestructura: Añadir una pantalla de ajustes para alternar los módulos. (30)
- Infraestructura: Añadido una indicación para administración. (199)
Mejoras
- Caché de objetos: Recomendar siempre la caché de objetos en multisitios. (200)
- Imagen: Crear subtamaños de imágenes en tipos MIME adicionales utilizando
sources
para su almacenamiento. (147) - Imágenes: Actualizar los directorios de los módulos para que estén dentro de su directorio de enfoque. (58)
- Salud del sitio: Mejora de la detección de los recursos en cola de la vista pública. (136)
- Infraestructura: Añadir un enlace a la pantalla de ajustes en el registro del plugin en la tabla de la lista de plugins. (197)
- Infraestructura: Activar todos los módulos no experimentales en la activación del plugin. (191)
- Infraestructura: Incluir en el repositorio el archivo «module-i18n.php» generado. (196)
- Infraestructura: Introducir el filtro
perflab_active_modules
para controlar qué módulos están activos. (87) - Infraestructura: Eliminar los signos de interrogación innecesarios de las etiquetas de las casillas de verificación. (110)
- Infraestructura: Renombrar
object-caching
comoobject-cache
. (108)
Correcciones de fallos
- Imágenes: Asegurar que la imagen
-scaled
permanece en el formato original subido. (143) - Imágenes: Corregir un error tipográfico para acceder a las propiedades correctas de la imagen. (203)
- Infraestructura: Garantizar que los campos de la cabecera del módulo puedan ser traducidos. (60)
Documentación
- Salud del sitio: Marcar como experimental, por el momento, el módulo de auditoría de recursos en cola de la salud del sitio. (205)
- Infraestructura: Añadir el archivo
readme.txt
y el script de actualización correspondiente. (72) - Infraestructura: Añadir un script generador del registro de cambios. (51)
- Infraestructura: Añadir documentación de contribución. (47)
- Infraestructura: Añadir documentación de la versión. (138)
- Infraestructura: Definir la especificación del módulo en la documentación. (26)