[wp-trac] [WordPress Trac] #61276: Add "Audit Autoloaded Options" Site Health Check

WordPress Trac noreply at wordpress.org
Fri May 24 05:29:20 UTC 2024


#61276: Add "Audit Autoloaded Options" Site Health Check
------------------------------------------+------------------------------
 Reporter:  mukesh27                      |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Site Health                   |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  performance
------------------------------------------+------------------------------
Description changed by mukesh27:

Old description:

> The sites with many unnecessary autoloaded options face significant
> performance problems ( #54221, #42441 ). It's challenging for site owners
> to monitor and resolve these issues on their own, which can lead to
> suboptimal site performance and slower load times.
>
> To address this, I propose adding a new "Audit Autoloaded Options" Site
> Health check to core. This  would add a new test in the WordPress Site
> Health checks to monitor and report on the autoloaded options. This
> functionality helps in assessing and maintaining optimal site performance
> by providing insights into the number and size of autoloaded options.
>
> An implementation of this Site Health check is already
> [https://github.com/WordPress/performance/tree/trunk/includes/site-health
> /audit-autoloaded-options included in the Performance Lab plugin].
>

> **Key Features:**
>
> * Integration with Site Health:
>   * Adds a test under the Site Health section to monitor autoloaded
> options.
>   * Displays the number and size of autoloaded options.
> * Status Indication:
>   * Shows a 'good' status if the autoloaded options are within acceptable
> limits.
>   * Shows a 'critical' status if the autoloaded options exceed the
> predefined threshold (default: 800,000 bytes), indicating a potential
> performance issue.
> * Customizable Threshold:
>   * Introduces a filter (`wp_autoloaded_options_limit_size_in_bytes`) to
> adjust the threshold size for triggering warnings.

New description:

 The sites with many unnecessary autoloaded options face significant
 performance problems ( #54221, #42441 ). It's challenging for site owners
 to monitor and resolve these issues on their own, which can lead to
 suboptimal site performance and slower load times.

 To address this, I propose adding a new "Audit Autoloaded Options" Site
 Health check to core. This  would add a new test in the WordPress Site
 Health checks to monitor and report on the autoloaded options. This
 functionality helps in assessing and maintaining optimal site performance
 by providing insights into the number and size of autoloaded options.

 An implementation of this Site Health check is already
 [https://github.com/WordPress/performance/tree/trunk/plugins/performance-
 lab/includes/site-health included in the Performance Lab plugin].


 **Key Features:**

 * Integration with Site Health:
   * Adds a test under the Site Health section to monitor autoloaded
 options.
   * Displays the number and size of autoloaded options.
 * Status Indication:
   * Shows a 'good' status if the autoloaded options are within acceptable
 limits.
   * Shows a 'critical' status if the autoloaded options exceed the
 predefined threshold (default: 800,000 bytes), indicating a potential
 performance issue.
 * Customizable Threshold:
   * Introduces a filter (`wp_autoloaded_options_limit_size_in_bytes`) to
 adjust the threshold size for triggering warnings.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61276#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list