WordPress / WordPress/performance
Improve Enqueued Assets report in Site Health
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 461
- Forks
- 165
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 28
Description
The current Site Health reports for the Enqueued Assets module, introduced in #25, do not include actionable information for users about how to address a site loading too many enqueued assets. As noted by @felixarntz here:
We also need to think about how to make this warning more actionable, e.g. at a minimum tell users which plugins or themes are responsible for enqueuing the majority of assets etc.
Suggestions for changes (in progress) are below.
Enqueued scripts
If acceptable
Current description: The amount of [#] enqueued scripts (size: [size]) is acceptable.
New description:
If not acceptable
Current description: Your website enqueues [#] scripts (size: [size]). Try to reduce the number or to concatenate them.
More info about performance optimization
New description:
Enqueued styles
If acceptable
Current description: The amount of [#] enqueued styles (size: [size]) is acceptable.
New description:
If not acceptable
Current description: Your website enqueues [#] styles (size: [size]). Try to reduce the number or to concatenate them.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Enqueued Assets module's Site Health reports for enqueued scripts and styles, then review the existing descriptions and the context from issue #25. Done means the acceptable and unacceptable reports provide actionable guidance, including which plugins or themes contribute most assets, with updated tests for both scripts and styles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100