Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stack-packs): adds links to some wordpress stack strings #8079

Merged

Conversation

housseindjirdeh
Copy link
Contributor

Summary

Adds links for search results + more to Wordpress stack pack audits

@wardpeet @paulirish

Related Issues/PRs

#7243

'efficient-animated-content':
'Consider uploading your GIF to a service which will then make it available to embed an HTML5 video. Alternatively find a plugin that will automatically convert GIF images into videos upon upload.',
'Consider uploading your GIF to a service which will then make it available to embed an HTML5 video.',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not find a single plugin that automatically converts GIFs to videos, so removed this mention.

@housseindjirdeh housseindjirdeh changed the title adds links to a bunch of wordpress stack strings feat(stack-packs): adds links to some wordpress stack strings Apr 8, 2019
'offscreen-images':
'Install a WordPress plugin that provides the ability to defer (lazy-load) any offscreen images, or switch to a theme that provides that functionality. Also consider using AMP.',
'Install a [WordPress plugin](https://wordpress.org/plugins/search/lazy+load/) that provides the ability to defer (lazy-load) any offscreen images, or switch to a theme that provides that functionality. Also consider using the [AMP plugin](https://wordpress.org/plugins/amp/).',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Install a [WordPress plugin](https://wordpress.org/plugins/search/lazy+load/) that provides the ability to defer (lazy-load) any offscreen images, or switch to a theme that provides that functionality. Also consider using the [AMP plugin](https://wordpress.org/plugins/amp/).',
'Install a [lazy-load WordPress plugin](https://wordpress.org/plugins/search/lazy+load/) that provides the ability to defer any offscreen images, or switch to a theme that provides that functionality. Also consider using [the AMP plugin](https://wordpress.org/plugins/amp/).',

@@ -17,28 +17,28 @@ module.exports = {
'unused-css-rules':
'Consider reducing, or switching, the number of [WordPress plugins](https://wordpress.org/plugins/) loading unused CSS in your page. To identify plugins that are adding extraneous CSS, try running [code coverage](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage) in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the stylesheet. Look out for plugins that have many stylesheets in the list which have a lot of red in code coverage. A plugin should only enqueue a stylesheet if it is actually used on the page.',
'uses-webp-images':
'Consider using a plugin/service that will automatically convert your uploaded images to the optimal formats.',
'Consider using a [plugin/service](https://wordpress.org/plugins/search/convert+webp/) that will automatically convert your uploaded images to the optimal formats.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Consider using a [plugin/service](https://wordpress.org/plugins/search/convert+webp/) that will automatically convert your uploaded images to the optimal formats.',
'Consider using a [plugin](https://wordpress.org/plugins/search/convert+webp/) or service that will automatically convert your uploaded images to the optimal formats.',

'uses-optimized-images':
'Consider using a WordPress plugin that optimizes your images, automatically serves the required sizes, and serves them from a CDN.',
'Consider using a [WordPress plugin](https://wordpress.org/plugins/search/optimize+images/) that optimizes your images, automatically serves the required sizes, and serves them from a CDN.',
Copy link
Member

@paulirish paulirish Apr 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

automatically serves the required sizes

this is the uses-responses-images audit

and serves them from a CDN.

Lighthouse doesn't have strong feeling about the images being served from a CDN, per se. I would remove this bit.

'uses-optimized-images':
'Consider using a WordPress plugin that optimizes your images, automatically serves the required sizes, and serves them from a CDN.',
'Consider using a [WordPress plugin](https://wordpress.org/plugins/search/optimize+images/) that optimizes your images, automatically serves the required sizes, and serves them from a CDN.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Consider using a [WordPress plugin](https://wordpress.org/plugins/search/optimize+images/) that optimizes your images, automatically serves the required sizes, and serves them from a CDN.',
'Consider using an [image optimization WordPress plugin](https://wordpress.org/plugins/search/optimize+images/) that compresses your images while retaining quality.',

just a fan of link text being descriptive ;)

'unminified-css':
'A number of WordPress plugins can speed up your site by concatenating, minifying, and compressing your styles. You may also want to use a build process to do this minification up-front if possible.',
'A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+css/) can speed up your site by concatenating, minifying, and compressing your styles. You may also want to use a build process to do this minification up-front if possible.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may also want to use a build process to do this minification up-front if possible

Is this possible in WP world? In my experience all CSS/JS comes from either the theme or a plugin, and you can't change those assets with a build process.

@paulirish
Copy link
Member

Shane had some comments over in #7243 (review) that apply here.

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM really like the more specific changes 👍

'unminified-javascript':
'A number of WordPress plugins can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible',
'A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+javascript/) can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+javascript/) can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible',
'A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+javascript/) can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible.',

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also no hyphen for up front

'efficient-animated-content':
'Consider uploading your GIF to a service which will then make it available to embed an HTML5 video. Alternatively find a plugin that will automatically convert GIF images into videos upon upload.',
'Consider uploading your GIF to a service which will then make it available to embed an HTML5 video.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Consider uploading your GIF to a service which will then make it available to embed an HTML5 video.',
'Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.',

'uses-text-compression': 'You can enable this in your web server configuration.',
'uses-responsive-images':
'Upload images directly through the media library to ensure that the required image sizes are available, and then insert them from the media library or use the image widget to ensure the optimal image sizes are used (including those for the responsive breakpoints). Avoid using `Full Size` images unless the dimensions are adequate for their usage. [Learn More](https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages#Image_Size)',
'Upload images directly through the [media library](https://codex.wordpress.org/Media_Library_Screen) to ensure that the required image sizes are available, and then insert them from the media library or use the image widget to ensure the optimal image sizes are used (including those for the responsive breakpoints). Avoid using `Full Size` images unless the dimensions are adequate for their usage. [Learn More](https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages#Image_Size)',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Upload images directly through the [media library](https://codex.wordpress.org/Media_Library_Screen) to ensure that the required image sizes are available, and then insert them from the media library or use the image widget to ensure the optimal image sizes are used (including those for the responsive breakpoints). Avoid using `Full Size` images unless the dimensions are adequate for their usage. [Learn More](https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages#Image_Size)',
'Upload images directly through the [media library](https://codex.wordpress.org/Media_Library_Screen) to ensure that the required image sizes are available, and then insert them from the media library or use the image widget to ensure the optimal image sizes are used (including those for the responsive breakpoints). Avoid using `Full Size` images unless the dimensions are adequate for their usage. [Learn More](https://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages#Image_Size).',

'unminified-javascript':
'A number of WordPress plugins can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible',
'A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+javascript/) can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up-front if possible',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also no hyphen for up front

@exterkamp exterkamp merged commit 456f598 into GoogleChrome:feat/stack-packs Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants