@dssaez You’ll want to follow this issue: https://github.com/ampproject/amp-wp/issues/958
This will increase performance by implementing “optimized AMP” in the AMP plugin, which you can read about here: https://blog.amp.dev/2019/08/07/faster-amp-on-the-origin-amp-ssr/
The optimizations outlined here are also applied by the AMP Cache, so you could test to see performance of your site loaded from the AMP Cache by testing https://test-simpledevel-com.cdn.ampproject.org/c/s/test.simpledevel.com
For me this yields a 89 performance score, versus 77 on your origin. The AMP Cache version is what visitors to your site will experience when accessing via search on mobile (Google, Bing, etc). This will be improved further once server-side rendering is implemented for layout=intrinsic. See https://github.com/ampproject/amp-toolbox/issues/264
As noted above, we’ll be implementing more of those optimizations directly in the AMP plugin as well to ensure direct visitors to your origin get the same benefits (e.g. desktop).
There is one thing you can do to “Eliminate render-blocking resources”, however your mileage may vary. What you could do is inline the @font-face
instead of loading the external stylesheet. This has some big caveats since Google Fonts serves optimized stylesheets based on the browser, but if the specific font is not important and can fallback to another version, you may want to give this a try: https://gist.github.com/westonruter/25474fcdea0dc4ac69f3af551f0f15e9
This inlines the stylesheet as served to Chrome on OSX. So again, beware of cross-platform issues.
The only other thing that I’m seeing from the Lighthouse audit is this opportunity:
Preconnect to required origins: https://cdn.ampproject.org
I didn’t think that was necessary since we have preload
links. But could you try adding this to a custom theme/plugin?
add_filter(
'wp_resource_hints',
function ( $hints, $relation_type ) {
if ( 'preconnect' === $relation_type ) {
$hints[] = 'https://cdn.ampproject.org';
}
return $hints;
},
10,
2
);
If that improves your origin Lighthouse score, we’ll add it to the AMP plugin as well.