Hello @matteoputzolu1996
Thanks for using the Yoast SEO plugin. It seems your website environment hasn’t been changed from staging/development to production/live. Kindly share a screenshot of what you have in WordPress > Tools > Site Health > Info > WordPress.
Thank you for you answer! I don’t know how to send the image so I just copy what I see, hope that helps:
Versione6.7.2 Lingua del sito it_IT Lingua utente it_IT Fuso orario Europe/Rome URL della home https://amiciperlezampe.it URL del sito https://amiciperlezampe.it Struttura dei permalink /%postname%/ Questo sito utilizza HTTPS? Sì Questo è un multisito? No Chiunque può registrarsi su questo sito? No Questo sito sta scoraggiando i motori di ricerca? No Stato predefinito per i commenti Chiusi Tipo di ambiente local Conteggio degli utenti 1 Comunicazione con ww.wp.xz.cn ww.wp.xz.cn è raggiungibile
Thanks for copying and pasting; I forgot to share how to add a screenshot. Next time, you can use any image-sharing service like https://pasteboard.co/, https://snag.gy/, https://imgur.com/, https://snipboard.io/, or even upload the screenshot to your own website. Once you upload it to an image-sharing service, you can share the link to the image here.
Regarding the issue, your environment is set to local instead of production. This is due to a setting in your wp-config file. The wp_get_environment_type() WordPress function’s default value on a live site should have been 'production' . Since this did not return production on your live site, you can set the WP_ENVIRONMENT_TYPE constant to 'production' by adding the line below to the wp-config.php file.
define( 'WP_ENVIRONMENT_TYPE', 'production' );
You can read more about it here. You may also reach out to your web hosting provider to override the default settings if you are facing issues.
Once done, you can run SEO data optimization in WordPress > Yoast SEO > Tools and you should get the scores in the dashboard.
You did it! Thanks a lot!