[wp-trac] [WordPress Trac] #61276: Add "Audit Autoloaded Options" Site Health Check
WordPress Trac
noreply at wordpress.org
Wed May 29 10:11:59 UTC 2024
#61276: Add "Audit Autoloaded Options" Site Health Check
-------------------------------------------------+-------------------------
Reporter: mukesh27 | Owner: mukesh27
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.6
Component: Site Health | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info has-screenshots 2nd-opinion | performance
-------------------------------------------------+-------------------------
Comment (by oglekler):
I have doubts about the phrase: "You can reduce the number of autoloaded
options by cleaning up your site's options table". I had an experience
(with another CMS I don't like at all) when I've told the manager not to
store images into the public_html folder, and she deleted everything from
it except subfolders to make things pretty. 🙈 So, taking this phrase as
it is, a person can go into the database and truncate the options table.
Btw, not loading some options can damage performance too because they will
be loaded one by one when needed. And, am I right in thinking that not
autoloaded transients are taking two trips into the database? 🤔
I believe that the correct way is to notify the user about the problem,
with note that this issue should be handled by the developer.
This information will be useful for developers to pay attention to, it is
very convenient to have it usually as a site maintainer you are not
thinking about such things (expecting that theme or plugins developers are
known what they are doing). Possibly it could be added to the Directories
and Sizes panel of the Info tab. This also can bring attention of themes
and plugins developers to what they are autoloading. "To load or not to
load" can be a tough decision 🙂
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61276#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list