There are some opportunities for the AMP plugin to integrate with the Site Health Check in 5.2, including both status and info:
curl_multi_* functions aren't available (#2423).We should include as much information as is helpful to debug issues that are reported on the forums.
Detect whether loopback requests are working.
Site Health does that by default because of cron. Perhaps that check is already enough.
See also #2006 (Add warning when a site is not served via HTTPS)
Every warning that we're showing in the plugin admin screen should also be shown in Site Health.
Request To Work On This
Hi @westonruter,
Hope your day's off to a great start.
Could I work on this? Thanks!
Yes, please.
Something that has come up twice recently (1, 2, 3) is a deprecation notice:
PHP Deprecated: idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated in ...amp/includes/class-amp-http.php on line 233
We may want to consider adding a Site Health check for outdated ICU version. /cc @schlessera
It was noted by @swissspidy that:
This typically happens when the version of PHP has been compiled with an older version of ICU.
Something else which may end up needing to be tested for is whether zlib output compression is enabled, as apparently this breaks the output buffer processing. Awaiting to confirm. See https://wordpress.org/support/topic/links-and-buttons-are-disabled/#post-12161184
Testing Steps
/wp-admin/site-health.php, and ensure the 'Status' tab is showing
In the 'Passed tests' section:

/wp-admin/site-health.php?tab=debugExpected: Something like this should display:

Make some changes to the 'AMP Settings' page. For example, disable Pages:

Go back to the Site Health 'Info' tab in Step 3

Verified in QA