From 19995ce661260c997cb5f904f244f84d26e19c98 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 20 Oct 2024 20:38:55 -0700 Subject: [PATCH 1/7] Bump versions --- plugins/embed-optimizer/load.php | 4 ++-- plugins/embed-optimizer/readme.txt | 4 +++- plugins/image-prioritizer/load.php | 4 ++-- plugins/image-prioritizer/readme.txt | 4 +++- plugins/optimization-detective/load.php | 4 ++-- plugins/optimization-detective/readme.txt | 4 +++- plugins/performance-lab/load.php | 4 ++-- plugins/performance-lab/readme.txt | 4 +++- plugins/web-worker-offloading/load.php | 4 ++-- plugins/web-worker-offloading/readme.txt | 4 +++- 10 files changed, 25 insertions(+), 15 deletions(-) diff --git a/plugins/embed-optimizer/load.php b/plugins/embed-optimizer/load.php index 002cf9787..2124b666e 100644 --- a/plugins/embed-optimizer/load.php +++ b/plugins/embed-optimizer/load.php @@ -5,7 +5,7 @@ * Description: Optimizes the performance of embeds by lazy-loading iframes and scripts. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 0.3.0-alpha + * Version: 0.3.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -70,7 +70,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi } )( 'embed_optimizer_pending_plugin', - '0.3.0-alpha', + '0.3.0', static function ( string $version ): void { if ( defined( 'EMBED_OPTIMIZER_VERSION' ) ) { return; diff --git a/plugins/embed-optimizer/readme.txt b/plugins/embed-optimizer/readme.txt index 815718922..ac1bd2880 100644 --- a/plugins/embed-optimizer/readme.txt +++ b/plugins/embed-optimizer/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 0.2.0 +Stable tag: 0.3.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, embeds @@ -51,6 +51,8 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.3.0 = + = 0.2.0 = **Enhancements** diff --git a/plugins/image-prioritizer/load.php b/plugins/image-prioritizer/load.php index 8c1d4cfd0..9e1fa4369 100644 --- a/plugins/image-prioritizer/load.php +++ b/plugins/image-prioritizer/load.php @@ -6,7 +6,7 @@ * Requires at least: 6.5 * Requires PHP: 7.2 * Requires Plugins: optimization-detective - * Version: 0.1.5-alpha + * Version: 0.2.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -71,7 +71,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi } )( 'image_prioritizer_pending_plugin', - '0.1.5-alpha', + '0.2.0', static function ( string $version ): void { if ( defined( 'IMAGE_PRIORITIZER_VERSION' ) ) { return; diff --git a/plugins/image-prioritizer/readme.txt b/plugins/image-prioritizer/readme.txt index 7e96509af..0a4733886 100644 --- a/plugins/image-prioritizer/readme.txt +++ b/plugins/image-prioritizer/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 0.1.4 +Stable tag: 0.2.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, optimization, image, lcp, lazy-load @@ -62,6 +62,8 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.2.0 = + = 0.1.4 = **Enhancements** diff --git a/plugins/optimization-detective/load.php b/plugins/optimization-detective/load.php index 301a46513..a1d638341 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.7.0-alpha + * Version: 0.7.0 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -70,7 +70,7 @@ static function ( string $global_var_name, string $version, Closure $load ): voi } )( 'optimization_detective_pending_plugin', - '0.7.0-alpha', + '0.7.0', static function ( string $version ): void { if ( defined( 'OPTIMIZATION_DETECTIVE_VERSION' ) ) { return; diff --git a/plugins/optimization-detective/readme.txt b/plugins/optimization-detective/readme.txt index d23ff3dfc..f1b884959 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.6.0 +Stable tag: 0.7.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, optimization, rum @@ -157,6 +157,8 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.7.0 = + = 0.6.0 = **Enhancements** diff --git a/plugins/performance-lab/load.php b/plugins/performance-lab/load.php index a2eeafa28..c7793abaa 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.4.1 + * Version: 3.5.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.4.1' ); +define( 'PERFLAB_VERSION', '3.5.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 f74e3e808..a875abaab 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.4.1 +Stable tag: 3.5.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, site health, measurement, optimization, diagnostics @@ -70,6 +70,8 @@ Contributions are always welcome! Learn more about how to get involved in the [C == Changelog == += 3.5.0 = + = 3.4.1 = **Bug Fixes** diff --git a/plugins/web-worker-offloading/load.php b/plugins/web-worker-offloading/load.php index 95eb7d79b..c26e98c36 100644 --- a/plugins/web-worker-offloading/load.php +++ b/plugins/web-worker-offloading/load.php @@ -5,7 +5,7 @@ * Description: Offloads select JavaScript execution to a Web Worker to reduce work on the main thread and improve the Interaction to Next Paint (INP) metric. * Requires at least: 6.5 * Requires PHP: 7.2 - * Version: 0.1.0 + * Version: 0.1.1 * Author: WordPress Performance Team * Author URI: https://make.wordpress.org/performance/ * License: GPLv2 or later @@ -43,7 +43,7 @@ ); } -define( 'WEB_WORKER_OFFLOADING_VERSION', '0.1.0' ); +define( 'WEB_WORKER_OFFLOADING_VERSION', '0.1.1' ); require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/hooks.php'; diff --git a/plugins/web-worker-offloading/readme.txt b/plugins/web-worker-offloading/readme.txt index b0b5c2af8..192f79412 100644 --- a/plugins/web-worker-offloading/readme.txt +++ b/plugins/web-worker-offloading/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.6 -Stable tag: 0.1.0 +Stable tag: 0.1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: performance, JavaScript, web worker, partytown, analytics @@ -94,6 +94,8 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu == Changelog == += 0.1.1 = + = 0.1.0 = * Initial release. From 8ab0b2995ea00fd9372ee57d3133f33cb03d5b0f Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 20 Oct 2024 20:42:58 -0700 Subject: [PATCH 2/7] Populate since version tags --- .../class-embed-optimizer-tag-visitor.php | 8 ++-- plugins/embed-optimizer/hooks.php | 10 ++--- .../class-image-prioritizer-tag-visitor.php | 2 +- ...ss-image-prioritizer-video-tag-visitor.php | 18 ++++----- plugins/image-prioritizer/helper.php | 2 +- plugins/image-prioritizer/hooks.php | 2 +- .../class-od-element.php | 38 +++++++++---------- .../class-od-html-tag-processor.php | 2 +- .../class-od-tag-visitor-context.php | 4 +- .../class-od-url-metric-group-collection.php | 10 ++--- .../class-od-url-metric.php | 6 +-- plugins/optimization-detective/detection.php | 2 +- plugins/optimization-detective/helper.php | 8 ++-- ...ss-od-url-metric-store-request-context.php | 4 +- .../storage/rest-api.php | 2 +- plugins/web-worker-offloading/hooks.php | 2 +- 16 files changed, 60 insertions(+), 60 deletions(-) diff --git a/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php b/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php index 4d57fe652..072ab0325 100644 --- a/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php +++ b/plugins/embed-optimizer/class-embed-optimizer-tag-visitor.php @@ -31,7 +31,7 @@ final class Embed_Optimizer_Tag_Visitor { /** * Determines whether the processor is currently at a figure.wp-block-embed tag. * - * @since n.e.x.t + * @since 0.3.0 * * @param OD_HTML_Tag_Processor $processor Processor. * @return bool Whether at the tag. @@ -47,7 +47,7 @@ private function is_embed_figure( OD_HTML_Tag_Processor $processor ): bool { /** * Determines whether the processor is currently at a div.wp-block-embed__wrapper tag (which is a child of figure.wp-block-embed). * - * @since n.e.x.t + * @since 0.3.0 * * @param OD_HTML_Tag_Processor $processor Processor. * @return bool Whether the tag should be measured and stored in URL metrics. @@ -196,7 +196,7 @@ public function __invoke( OD_Tag_Visitor_Context $context ): bool { /** * Gets the XPath for the embed wrapper DIV which is the sole child of the embed block FIGURE. * - * @since n.e.x.t + * @since 0.3.0 * * @param string $embed_block_xpath XPath for the embed block FIGURE tag. For example: `/*[1][self::HTML]/*[2][self::BODY]/*[1][self::FIGURE]`. * @return string XPath for the child DIV. For example: `/*[1][self::HTML]/*[2][self::BODY]/*[1][self::FIGURE]/*[1][self::DIV]` @@ -208,7 +208,7 @@ private static function get_embed_wrapper_xpath( string $embed_block_xpath ): st /** * Reduces layout shifts. * - * @since n.e.x.t + * @since 0.3.0 * * @param OD_Tag_Visitor_Context $context Tag visitor context, with the cursor currently at an embed block. */ diff --git a/plugins/embed-optimizer/hooks.php b/plugins/embed-optimizer/hooks.php index a2bc20a34..5dffa10f5 100644 --- a/plugins/embed-optimizer/hooks.php +++ b/plugins/embed-optimizer/hooks.php @@ -26,7 +26,7 @@ function embed_optimizer_add_hooks(): void { /** * Adds hooks for when the Optimization Detective logic is not running. * - * @since n.e.x.t + * @since 0.3.0 */ function embed_optimizer_add_non_optimization_detective_hooks(): void { if ( false === has_action( 'od_register_tag_visitors', 'embed_optimizer_register_tag_visitors' ) ) { @@ -37,7 +37,7 @@ function embed_optimizer_add_non_optimization_detective_hooks(): void { /** * Initializes Embed Optimizer when Optimization Detective has loaded. * - * @since n.e.x.t + * @since 0.3.0 * * @param string $optimization_detective_version Current version of the optimization detective plugin. */ @@ -81,7 +81,7 @@ function embed_optimizer_register_tag_visitors( OD_Tag_Visitor_Registry $registr /** * Filters additional properties for the element item schema for Optimization Detective. * - * @since n.e.x.t + * @since 0.3.0 * * @param array $additional_properties Additional properties. * @return array Additional properties. @@ -112,7 +112,7 @@ function embed_optimizer_add_element_item_schema_properties( array $additional_p /** * Filters the list of Optimization Detective extension module URLs to include the extension for Embed Optimizer. * - * @since n.e.x.t + * @since 0.3.0 * * @param string[]|mixed $extension_module_urls Extension module URLs. * @return string[] Extension module URLs. @@ -130,7 +130,7 @@ function embed_optimizer_filter_extension_module_urls( $extension_module_urls ): * * This ensures that the module for handling embeds is only loaded when there is an embed on the page. * - * @since n.e.x.t + * @since 0.3.0 * * @param string|mixed $html The oEmbed HTML. * @return string Unchanged oEmbed HTML. diff --git a/plugins/image-prioritizer/class-image-prioritizer-tag-visitor.php b/plugins/image-prioritizer/class-image-prioritizer-tag-visitor.php index f5e0578e5..832db34f2 100644 --- a/plugins/image-prioritizer/class-image-prioritizer-tag-visitor.php +++ b/plugins/image-prioritizer/class-image-prioritizer-tag-visitor.php @@ -42,7 +42,7 @@ protected function is_data_url( string $url ): bool { /** * Gets attribute value for select attributes. * - * @since n.e.x.t + * @since 0.2.0 * @todo Move this into the OD_HTML_Tag_Processor/OD_HTML_Processor class eventually. * * @phpstan-param NormalizedAttributeNames $attribute_name diff --git a/plugins/image-prioritizer/class-image-prioritizer-video-tag-visitor.php b/plugins/image-prioritizer/class-image-prioritizer-video-tag-visitor.php index f29d19455..060f0b899 100644 --- a/plugins/image-prioritizer/class-image-prioritizer-video-tag-visitor.php +++ b/plugins/image-prioritizer/class-image-prioritizer-video-tag-visitor.php @@ -5,7 +5,7 @@ * * @package image-prioritizer * - * @since n.e.x.t + * @since 0.2.0 */ // Exit if accessed directly. @@ -16,7 +16,7 @@ /** * Image Prioritizer: Image_Prioritizer_Video_Tag_Visitor class * - * @since n.e.x.t + * @since 0.2.0 * * @access private */ @@ -25,7 +25,7 @@ final class Image_Prioritizer_Video_Tag_Visitor extends Image_Prioritizer_Tag_Vi /** * Class name used to indicate a video which is lazy-loaded. * - * @since n.e.x.t + * @since 0.2.0 * @var string */ const LAZY_VIDEO_CLASS_NAME = 'od-lazy-video'; @@ -33,7 +33,7 @@ final class Image_Prioritizer_Video_Tag_Visitor extends Image_Prioritizer_Tag_Vi /** * Whether the lazy-loading script was added to the body. * - * @since n.e.x.t + * @since 0.2.0 * @var bool */ protected $added_lazy_script = false; @@ -41,7 +41,7 @@ final class Image_Prioritizer_Video_Tag_Visitor extends Image_Prioritizer_Tag_Vi /** * 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 tag should be tracked in URL metrics. @@ -69,7 +69,7 @@ public function __invoke( OD_Tag_Visitor_Context $context ): bool { * * Skips empty poster attributes and data: URLs. * - * @since n.e.x.t + * @since 0.2.0 * * @param OD_Tag_Visitor_Context $context Tag visitor context. * @return non-empty-string|null Poster or null if not defined or is a data: URL. @@ -85,7 +85,7 @@ private function get_poster( OD_Tag_Visitor_Context $context ): ?string { /** * Reduces poster image size by choosing one that fits the maximum video size more closely. * - * @since n.e.x.t + * @since 0.2.0 * * @param non-empty-string $poster Poster image URL. * @param OD_Tag_Visitor_Context $context Tag visitor context, with the cursor currently at a VIDEO tag. @@ -128,7 +128,7 @@ private function reduce_poster_image_size( string $poster, OD_Tag_Visitor_Contex /** * Preloads poster image for the LCP