diff --git a/plugins/auto-sizes/auto-sizes.php b/plugins/auto-sizes/auto-sizes.php index 0259418294..0958051057 100644 --- a/plugins/auto-sizes/auto-sizes.php +++ b/plugins/auto-sizes/auto-sizes.php @@ -5,7 +5,7 @@ * Description: Improves responsive images with better sizes calculations and auto-sizes for lazy-loaded images. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 1.0.2 + * Version: 1.1.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,7 +25,7 @@ return; } -define( 'IMAGE_AUTO_SIZES_VERSION', '1.0.2' ); +define( 'IMAGE_AUTO_SIZES_VERSION', '1.1.0' ); require_once __DIR__ . '/hooks.php'; diff --git a/plugins/auto-sizes/hooks.php b/plugins/auto-sizes/hooks.php index 83f48e816a..77e9ff5ccb 100644 --- a/plugins/auto-sizes/hooks.php +++ b/plugins/auto-sizes/hooks.php @@ -97,7 +97,7 @@ function auto_sizes_render_generator(): void { * It will return the smaller image size and return "px" if the layout width * is something else, e.g. min(640px, 90vw) or 90vw. * - * @since n.e.x.t + * @since 1.1.0 * * @param string $layout_width The layout width. * @param int $image_width The image width. @@ -113,7 +113,7 @@ function auto_sizes_get_width( string $layout_width, int $image_width ): string /** * Filter the sizes attribute for images to improve the default calculation. * - * @since n.e.x.t + * @since 1.1.0 * * @param string $content The block content about to be rendered. * @param array $parsed_block The parsed block. @@ -147,7 +147,7 @@ function auto_sizes_filter_image_tag( string $content, array $parsed_block ): st /** * Filter the sizes attribute for images to improve the default calculation. * - * @since n.e.x.t + * @since 1.1.0 * * @param string $content The block content about to be rendered. * @return string The updated block content. diff --git a/plugins/auto-sizes/optimization-detective.php b/plugins/auto-sizes/optimization-detective.php index 7b265edf5d..e753fd2f38 100644 --- a/plugins/auto-sizes/optimization-detective.php +++ b/plugins/auto-sizes/optimization-detective.php @@ -2,7 +2,7 @@ /** * Optimization Detective extensions by Auto Sizes. * - * @since n.e.x.t + * @since 1.1.0 * @package auto-sizes */ @@ -13,7 +13,7 @@ /** * Visits responsive lazy-loaded IMG tags to ensure they include sizes=auto. * - * @since n.e.x.t + * @since 1.1.0 * * @param OD_Tag_Visitor_Context $context Tag visitor context. * @return false Whether the tag should be recorded in URL metrics. @@ -54,7 +54,7 @@ function auto_sizes_visit_tag( OD_Tag_Visitor_Context $context ): bool { /** * Registers the tag visitor for image tags. * - * @since n.e.x.t + * @since 1.1.0 * * @param OD_Tag_Visitor_Registry $registry Tag visitor registry. */ diff --git a/plugins/auto-sizes/readme.txt b/plugins/auto-sizes/readme.txt index 7923659d02..a69ec3f604 100644 --- a/plugins/auto-sizes/readme.txt +++ b/plugins/auto-sizes/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 1.0.2 +Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, auto-sizes @@ -52,6 +52,24 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 1.1.0 = + +**Features** + +* Initial implementation of improved image `sizes` algorithm. ([1250](https://github.com/WordPress/performance/pull/1250)) + +**Enhancements** + +* Improved image `sizes` for left/right/center alignment. ([1290](https://github.com/WordPress/performance/pull/1290)) +* Integrate Auto Sizes with Image Prioritizer to ensure correct sizes=auto. ([1322](https://github.com/WordPress/performance/pull/1322)) +* Update `Auto-sizes for Lazy-loaded Images` plugin name to `Enhanced Responsive Images`. ([1335](https://github.com/WordPress/performance/pull/1335)) +* Use correct sizes for small images. ([1252](https://github.com/WordPress/performance/pull/1252)) + +**Documentation** + +* Update the plugin description for Enhanced Responsive Images. ([1339](https://github.com/WordPress/performance/pull/1339)) +* Update the plugin header description. ([1344](https://github.com/WordPress/performance/pull/1344)) + = 1.0.2 = * Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775)) diff --git a/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php b/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php index 5a61cb843e..19875c9a24 100644 --- a/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php +++ b/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php @@ -3,7 +3,7 @@ * Tag visitor for Embed Optimizer. * * @package embed-optimizer - * @since n.e.x.t + * @since 0.2.0 */ // Exit if accessed directly. @@ -14,7 +14,7 @@ /** * Tag visitor that optimizes embeds. * - * @since n.e.x.t + * @since 0.2.0 * @access private */ final class Embed_Optimizer_Tag_Visitor { @@ -29,7 +29,7 @@ final class Embed_Optimizer_Tag_Visitor { /** * Visits a tag. * - * @since n.e.x.t + * @since 0.2.0 * * @param OD_Tag_Visitor_Context $context Tag visitor context. * @return bool Whether the visit or visited the tag. diff --git a/plugins/embed-optimizer/hooks.php b/plugins/embed-optimizer/hooks.php index 58022a8832..9b1c325726 100644 --- a/plugins/embed-optimizer/hooks.php +++ b/plugins/embed-optimizer/hooks.php @@ -13,7 +13,7 @@ /** * Add hooks. * - * @since n.e.x.t + * @since 0.2.0 */ function embed_optimizer_add_hooks(): void { add_action( 'wp_head', 'embed_optimizer_render_generator' ); @@ -29,7 +29,7 @@ function embed_optimizer_add_hooks(): void { /** * Registers the tag visitor for embeds. * - * @since n.e.x.t + * @since 0.2.0 * * @param OD_Tag_Visitor_Registry $registry Tag visitor registry. */ @@ -61,7 +61,7 @@ function embed_optimizer_filter_oembed_html( string $html ): string { /** * Applies changes to HTML in the supplied tag processor to lazy-load the embed. * - * @since n.e.x.t + * @since 0.2.0 * * phpcs:disable Squiz.Commenting.FunctionCommentThrowTag.Missing -- The exception is caught. * @@ -214,7 +214,7 @@ function embed_optimizer_lazy_load_scripts(): void { * * Load an embed's scripts when it approaches the viewport using an IntersectionObserver. * - * @since n.e.x.t + * @since 0.2.0 */ function embed_optimizer_get_lazy_load_script(): string { return <<open_stack_tags` and `$this->open_stack_indices`. * - * @since n.e.x.t + * @since 0.4.0 * @var array */ private $bookmarked_open_stacks = array(); @@ -155,7 +155,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor { * This is used so that repeated calls to {@see self::get_xpath()} won't needlessly reconstruct the string. This * gets cleared whenever {@see self::open_tags()} iterates to the next tag. * - * @since n.e.x.t + * @since 0.4.0 * @var string|null */ private $current_xpath = null; @@ -163,7 +163,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor { /** * Whether the previous tag does not expect a closer. * - * @since n.e.x.t + * @since 0.4.0 * @var bool */ private $previous_tag_without_closer = false; @@ -171,7 +171,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor { /** * Mapping of bookmark name to a list of HTML strings which will be inserted at the time get_updated_html() is called. * - * @since n.e.x.t + * @since 0.4.0 * @var array */ private $buffered_text_replacements = array(); @@ -183,7 +183,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor { * It will _always_ visit tag closers. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param null $query Query. * @return bool Whether a tag was matched. @@ -200,7 +200,7 @@ public function next_tag( $query = null ): bool { /** * Finds the next open tag. * - * @since n.e.x.t + * @since 0.4.0 * * @return bool Whether a tag was matched. */ @@ -217,7 +217,7 @@ public function next_open_tag(): bool { * Whether the tag expects a closing tag. * * @see WP_HTML_Processor::expects_closer() - * @since n.e.x.t + * @since 0.4.0 * * @param string|null $tag_name Tag name, if not provided then the current tag is used. Optional. * @return bool Whether to expect a closer for the tag. @@ -241,7 +241,7 @@ public function expects_closer( ?string $tag_name = null ): bool { * Finds the next token in the HTML document. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @return bool Whether a token was parsed. */ @@ -329,7 +329,7 @@ public function next_token(): bool { * Updates or creates a new attribute on the currently matched tag with the passed value. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param string $name The attribute name to target. * @param string|bool $value The new attribute value. @@ -365,7 +365,7 @@ public function set_meta_attribute( string $name, $value ): bool { * Removes an attribute from the currently-matched tag. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param string $name The attribute name to remove. */ @@ -381,7 +381,7 @@ public function remove_attribute( $name ): bool { // phpcs:ignore SlevomatCoding /** * Returns the nesting depth of the current location in the document. * - * @since n.e.x.t + * @since 0.4.0 * @see WP_HTML_Processor::get_current_depth() * * @return int Nesting-depth of current location in the document. @@ -394,7 +394,7 @@ public function get_current_depth(): int { * Move the internal cursor in the Tag Processor to a given bookmark's location. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param string $bookmark_name Jump to the place in the document identified by this bookmark name. * @return bool Whether the internal cursor was successfully moved to the bookmark's location. @@ -412,7 +412,7 @@ public function seek( $bookmark_name ): bool { * Sets a bookmark in the HTML document. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param string $name Identifies this particular bookmark. * @return bool Whether the bookmark was successfully created. @@ -432,7 +432,7 @@ public function set_bookmark( $name ): bool { * Removes a bookmark that is no longer needed. * * @inheritDoc - * @since n.e.x.t + * @since 0.4.0 * * @param string $name Name of the bookmark to remove. * @return bool Whether the bookmark already existed before removal. @@ -454,7 +454,7 @@ public function release_bookmark( $name ): bool { * * A breadcrumb consists of a tag name and its sibling index. * - * @since n.e.x.t + * @since 0.4.0 * * @return Generator Breadcrumb. */ @@ -467,7 +467,7 @@ private function get_breadcrumbs(): Generator { /** * Determines whether currently inside a foreign element (MATH or SVG). * - * @since n.e.x.t + * @since 0.4.0 * * @return bool In foreign element. */ @@ -486,7 +486,7 @@ private function is_foreign_element(): bool { * It would be nicer if this were like `/html[1]/body[2]` but in XPath the position() here refers to the * index of the preceding node set. So it has to rather be written `/*[1][self::html]/*[2][self::body]`. * - * @since n.e.x.t + * @since 0.4.0 * * @return string XPath. */ @@ -505,7 +505,7 @@ public function get_xpath(): string { * * The provided HTML must be valid! No validation is performed. * - * @since n.e.x.t + * @since 0.4.0 * * @param string $html HTML to inject. */ @@ -518,7 +518,7 @@ public function append_head_html( string $html ): void { * * The provided HTML must be valid! No validation is performed. * - * @since n.e.x.t + * @since 0.4.0 * * @param string $html HTML to inject. */ @@ -561,7 +561,7 @@ public function get_updated_html(): string { /** * Warns of bad markup. * - * @since n.e.x.t + * @since 0.4.0 * * @param string $message Warning message. */ diff --git a/plugins/optimization-detective/class-od-link-collection.php b/plugins/optimization-detective/class-od-link-collection.php index 7d4d984aaa..28084c9bd5 100644 --- a/plugins/optimization-detective/class-od-link-collection.php +++ b/plugins/optimization-detective/class-od-link-collection.php @@ -34,7 +34,7 @@ * } * * @since 0.3.0 - * @since n.e.x.t Renamed from OD_Preload_Link_Collection. + * @since 0.4.0 Renamed from OD_Preload_Link_Collection. * @access private */ final class OD_Link_Collection implements Countable { diff --git a/plugins/optimization-detective/class-od-tag-visitor-context.php b/plugins/optimization-detective/class-od-tag-visitor-context.php index 38fe6111c6..b31f02b3af 100644 --- a/plugins/optimization-detective/class-od-tag-visitor-context.php +++ b/plugins/optimization-detective/class-od-tag-visitor-context.php @@ -3,7 +3,7 @@ * Optimization Detective: OD_Tag_Visitor_Context class * * @package optimization-detective - * @since n.e.x.t + * @since 0.4.0 */ // Exit if accessed directly. @@ -14,7 +14,7 @@ /** * Context for tag visitors invoked for each tag while walking over a document. * - * @since n.e.x.t + * @since 0.4.0 * @access private */ final class OD_Tag_Visitor_Context { diff --git a/plugins/optimization-detective/load.php b/plugins/optimization-detective/load.php index ec5389eaf6..197e136bdf 100644 --- a/plugins/optimization-detective/load.php +++ b/plugins/optimization-detective/load.php @@ -5,7 +5,7 @@ * Description: Provides an API for leveraging real user metrics to detect optimizations to apply on the frontend to improve page performance. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 0.3.1 + * Version: 0.4.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -65,7 +65,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi } )( 'optimization_detective_pending_plugin', - '0.3.1', + '0.4.0', static function ( string $version ): void { // Define the constant. diff --git a/plugins/optimization-detective/readme.txt b/plugins/optimization-detective/readme.txt index 40d2a371b1..150940fd89 100644 --- a/plugins/optimization-detective/readme.txt +++ b/plugins/optimization-detective/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 0.3.1 +Stable tag: 0.4.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, optimization, rum @@ -133,6 +133,13 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.4.0 = + +**Enhancements** + +* Avoid passing positional parameters in Optimization Detective. ([1338](https://github.com/WordPress/performance/pull/1338)) +* Send preload links via HTTP Link headers in addition to LINK tags. ([1323](https://github.com/WordPress/performance/pull/1323)) + = 0.3.1 = **Enhancements** diff --git a/plugins/performance-lab/includes/site-health/audit-autoloaded-options/hooks.php b/plugins/performance-lab/includes/site-health/audit-autoloaded-options/hooks.php index cd3fa5889f..95f9036752 100644 --- a/plugins/performance-lab/includes/site-health/audit-autoloaded-options/hooks.php +++ b/plugins/performance-lab/includes/site-health/audit-autoloaded-options/hooks.php @@ -120,7 +120,7 @@ function perflab_aao_admin_notices(): void { /** * Extends the health check description that merged in WordPress 6.6. * - * @since n.e.x.t + * @since 3.3.0 * * @param string $description Description message when autoloaded options bigger than threshold. * @return string Extended health check description. diff --git a/plugins/performance-lab/load.php b/plugins/performance-lab/load.php index 3c33dfce2b..f83a22a2c2 100644 --- a/plugins/performance-lab/load.php +++ b/plugins/performance-lab/load.php @@ -5,7 +5,7 @@ * Description: Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 3.2.0 + * Version: 3.3.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'PERFLAB_VERSION', '3.2.0' ); +define( 'PERFLAB_VERSION', '3.3.0' ); define( 'PERFLAB_MAIN_FILE', __FILE__ ); define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); define( 'PERFLAB_SCREEN', 'performance-lab' ); diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index 41cbad5a6b..671872148d 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 3.2.0 +Stable tag: 3.3.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, site health, measurement, optimization, diagnostics @@ -58,6 +58,20 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 3.3.0 = + +**Enhancements** + +* Bump minimum WP versions and WP version tested up to. ([1333](https://github.com/WordPress/performance/pull/1333)) +* Improve message for WebP site health test. ([1249](https://github.com/WordPress/performance/pull/1249)) +* Remove 'Requires at least' and 'Requires PHP' from plugin readmes. ([1334](https://github.com/WordPress/performance/pull/1334)) +* Upgrade PHPStan to 1.11.6. ([1325](https://github.com/WordPress/performance/pull/1325)) + +**Bug Fixes** + +* Extend core's Autoloaded Options Site Health test if present (in WP 6.6). ([1298](https://github.com/WordPress/performance/pull/1298)) +* Generate phpunit-multisite.xml on the fly. ([1327](https://github.com/WordPress/performance/pull/1327)) + = 3.2.0 = **Enhancements** diff --git a/plugins/webp-uploads/load.php b/plugins/webp-uploads/load.php index da30cec855..6150b61853 100644 --- a/plugins/webp-uploads/load.php +++ b/plugins/webp-uploads/load.php @@ -5,7 +5,7 @@ * Description: Converts images to more modern formats such as WebP or AVIF during upload. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 2.0.1 + * Version: 2.0.2 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -25,7 +25,7 @@ return; } -define( 'WEBP_UPLOADS_VERSION', '2.0.1' ); +define( 'WEBP_UPLOADS_VERSION', '2.0.2' ); define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) ); require_once __DIR__ . '/helper.php'; diff --git a/plugins/webp-uploads/readme.txt b/plugins/webp-uploads/readme.txt index 094dff354c..5e0660a1a2 100644 --- a/plugins/webp-uploads/readme.txt +++ b/plugins/webp-uploads/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 2.0.1 +Stable tag: 2.0.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, images, webp, avif, modern image formats @@ -60,6 +60,16 @@ By default, the Modern Image Formats plugin will only generate WebP versions of == Changelog == += 2.0.2 = + +**Enhancements** + +* I18N: Add context to Modern Image Formats section title. ([1287](https://github.com/WordPress/performance/pull/1287)) + +**Bug Fixes** + +* Improve compatibility of styling picture elements. ([1307](https://github.com/WordPress/performance/pull/1307)) + = 2.0.1 = **Bug Fixes**