Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.75k stars 885 forks source link

[Feature Request] Move the JavaScript that renders the SEO/Readability scores to the Server Side #7344

Closed Pcosta88 closed 7 years ago

Pcosta88 commented 7 years ago

We use JavaScript to render the SEO and Readability Scores. We have a guide that helps users better integrate their plugins here: https://github.com/Yoast/YoastSEO.js/blob/master/README.md

However, some plugins such as WordPress import ones may not be able to integrate well or other plugins may not be able to integrate at all.

For example, users who create import scripts to automatically populate _yoast_wpseo_metadesc, _yoast_wpseo_focuskw may not be able to recalculate the SEO/Readability ratings without lots of hacking.

We may wish to move part of the logic to the server side or add additional hooks/filters etc. to make it easier for other plugins to tap into the JavaScript.

See also: https://wordpress.org/support/topic/programmatically-update-scores/

imbeingfollowed commented 7 years ago

Thank you Pat. Commenting for updates. I suspect the most simplest of import scripts that just populate the standard post title and description will not get updated scores either.

jdevalk commented 7 years ago

While I agree it has some downsides sometimes, this is not going to happen. We've moved it to javascript to ease the burden on servers and we're not changing that back. If people want to know how to rerun the JS analysis, see the YoastSEO.js GitHub repo.