diff --git a/README.md b/README.md index 2f2ba8608b..dc5fd54770 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,19 @@ For WordPress and PHP version requirements, please refer to the [CONTRIBUTING.md The feature plugins which are currently highlighted by this plugin are: -Plugin | Slug | Experimental | Links ---------------------------------|---------------------------|--------------|------------- -[Embed Optimizer][5] | `embed-optimizer` | No | [Source][13], [Issues][21], [PRs][29] -[Enhanced Responsive Images][6] | `auto-sizes` | No | [Source][14], [Issues][22], [PRs][30] -[Image Placeholders][1] | `dominant-color-images` | No | [Source][9], [Issues][17], [PRs][25] -[Image Prioritizer][7] | `image-prioritizer` | No | [Source][15], [Issues][23], [PRs][31] -[Instant Back/Forward][41] | `nocache-bfcache` | No | [Source][42], [Issues][43], [PRs][44] -[Modern Image Formats][2] | `webp-uploads` | No | [Source][10], [Issues][18], [PRs][26] -[Optimization Detective][33] | `optimization-detective` | No | [Source][34], [Issues][35], [PRs][36] -[Performant Translations][3] | `performant-translations` | No | [Source][11], [Issues][19], [PRs][27] -[Speculative Loading][4] | `speculation-rules` | No | [Source][12], [Issues][20], [PRs][28] -[View Transitions][37] | `view-transitions` | Yes | [Source][38], [Issues][39], [PRs][40] -[Web Worker Offloading][8] | `web-worker-offloading` | Yes | [Source][16], [Issues][24], [PRs][32] +Plugin | Slug | Experimental | Links +--------------------------------|---------------------------|------------------------|------------- +[Embed Optimizer][5] | `embed-optimizer` | No | [Source][13], [Issues][21], [PRs][29] +[Enhanced Responsive Images][6] | `auto-sizes` | No | [Source][14], [Issues][22], [PRs][30] +[Image Placeholders][1] | `dominant-color-images` | No | [Source][9], [Issues][17], [PRs][25] +[Image Prioritizer][7] | `image-prioritizer` | No | [Source][15], [Issues][23], [PRs][31] +[Instant Back/Forward][41] | `nocache-bfcache` | No | [Source][42], [Issues][43], [PRs][44] +[Modern Image Formats][2] | `webp-uploads` | No | [Source][10], [Issues][18], [PRs][26] +[Optimization Detective][33] | `optimization-detective` | No | [Source][34], [Issues][35], [PRs][36] +[Performant Translations][3] | `performant-translations` | No | [Source][11], [Issues][19], [PRs][27] +[Speculative Loading][4] | `speculation-rules` | No | [Source][12], [Issues][20], [PRs][28] +[View Transitions][37] | `view-transitions` | Yes | [Source][38], [Issues][39], [PRs][40] +[Web Worker Offloading][8] | `web-worker-offloading` | Yes ([sunsetting][45]) | [Source][16], [Issues][24], [PRs][32] [1]: https://wordpress.org/plugins/dominant-color-images/ [2]: https://wordpress.org/plugins/webp-uploads/ @@ -73,4 +73,6 @@ Plugin | Slug | Experimental | Lin [40]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+View%20Transitions%22 [44]: https://github.com/westonruter/nocache-bfcache/pulls +[45]: https://github.com/WordPress/performance/issues/2284 + Note that the plugin names sometimes diverge from the plugin slugs due to scope changes. For example, a plugin's purpose may change as some of its features are merged into WordPress core. diff --git a/plugins/performance-lab/load.php b/plugins/performance-lab/load.php index 8d7f9b9932..b1396552b0 100644 --- a/plugins/performance-lab/load.php +++ b/plugins/performance-lab/load.php @@ -123,10 +123,6 @@ function perflab_get_standalone_plugin_data(): array { 'constant' => 'VIEW_TRANSITIONS_VERSION', 'experimental' => true, ), - 'web-worker-offloading' => array( - 'constant' => 'WEB_WORKER_OFFLOADING_VERSION', - 'experimental' => true, - ), 'webp-uploads' => array( 'constant' => 'WEBP_UPLOADS_VERSION', ), diff --git a/plugins/performance-lab/readme.txt b/plugins/performance-lab/readme.txt index c16429dcec..d217a6e706 100644 --- a/plugins/performance-lab/readme.txt +++ b/plugins/performance-lab/readme.txt @@ -25,7 +25,6 @@ The feature plugins which are currently featured by this plugin are: * [Performant Translations](https://wordpress.org/plugins/performant-translations/) * [Speculative Loading](https://wordpress.org/plugins/speculation-rules/) * [View Transitions](https://wordpress.org/plugins/view-transitions/) _(experimental)_ -* [Web Worker Offloading](https://wordpress.org/plugins/web-worker-offloading/) _(experimental)_ These plugins can also be installed separately from installing Performance Lab, but having the Performance Lab plugin also active will ensure you find out about new performance features as they are developed. diff --git a/plugins/web-worker-offloading/helper.php b/plugins/web-worker-offloading/helper.php index 0a33068f70..3dd7923918 100644 --- a/plugins/web-worker-offloading/helper.php +++ b/plugins/web-worker-offloading/helper.php @@ -198,3 +198,33 @@ function plwwo_render_generator_meta_tag(): void { // Use the plugin slug as it is immutable. echo '' . "\n"; } + +/** + * Displays a sunset warning notice for the plugin in the plugin row meta. + * + * @since n.e.x.t + * @access private + * + * @param string $plugin_file Path to the plugin file relative to the plugins directory. + */ +function plwwo_render_sunset_notice( string $plugin_file ): void { + if ( 'web-worker-offloading/load.php' !== $plugin_file ) { + return; + } + + $message = sprintf( + /* translators: 1: GitHub issue URL. 2: Support forum URL. */ + __( 'The Web Worker Offloading plugin is proposed for being sunset. Please refer to the GitHub issue for more information. If you have metrics showing how this plugin specifically improved your Interaction to Next Paint (INP), please share them in the support forum as this could provide a reason to keep the plugin.', 'web-worker-offloading' ), + esc_url( 'https://github.com/WordPress/performance/issues/2284' ), + esc_url( 'https://wordpress.org/support/plugin/web-worker-offloading/' ) + ); + ?> +
+ +
+