Se hai un blog WordPress, probabilmente ti sei chiesto almeno una volta: “Come faccio a renderlo più veloce e più performante senza impazzire tra mille plugin?” Buona notizia: puoi migliorare le prestazioni del tuo sito in meno di 10 minuti, senza riempirlo di plugin che promettono miracoli e poi ti rallentano tutto.
In questa guida ti spiego, passo dopo passo, come fare una bella ottimizzazione pulita, sfruttando ciò che già hai a disposizione. Pronto? Timer alla mano, iniziamo!
Il tema del tuo sito è il vestito che gli fai indossare. Se è pesante, pieno di animazioni e funzioni inutili, il caricamento sarà lento come una domenica pomeriggio in ufficio.
Consiglio pratico: Se usi un tema vecchio o super personalizzato che carica mille cose, cambia. Passa a un tema leggero e ottimizzato, come:
GeneratePress
Astra
Neve
Blocksy
Sono gratuiti, puliti e super veloci. Bastano pochi click per installarli e sei già a metà dell’opera.
Molti temi e plugin caricano script JS e CSS ovunque, anche dove non servono. Il risultato? Pagina più lenta e utente frustrato.
ome fare senza plugin: Se hai dimestichezza con il codice, puoi aggiungere uno snippet nel file functions.php
del tuo tema child per disattivare alcuni script nelle pagine dove non servono. Esempio
function remove_wp_block_library_css(){
wp_dequeue_style('wp-block-library');
}
add_action('wp_enqueue_scripts', 'remove_wp_block_library_css', 100);
Se non sei pratico puoi decidere di saltare questo passaggio, ma sappi che può fare la differenza, oppure contattarmi perchè lo faccia io per te!
Le immagini sono spesso il colpevole numero uno dei tempi di caricamento lenti. Ma non hai bisogno di un plugin per comprimerle!
➡ Cosa fare:
Usa TinyPNG o Squoosh per comprimere le immagini prima di caricarle.
Salva sempre in formato WebP quando possibile, è più leggero e moderno.
Una buona immagine dovrebbe pesare meno di 150 KB, anche se è bella grande.
La home è la porta d’ingresso del tuo blog. Deve caricarsi in un lampo. Se ci hai infilato widget inutili, 10 post in evidenza, caroselli e feed social… beh, non ti stupire se ci mette una vita a caricare.
➡ Cosa fare:
Mostra solo gli ultimi 4-6 articoli.
Evita caroselli e animazioni.
Togli il feed Instagram integrato (che pesa tantissimo).
Semplice è meglio. Sempre.
Se lavori solo con l’editor classico o un page builder tipo Elementor, puoi disattivare l’editor a blocchi di WordPress (che comunque carica i suoi bei CSS anche se non lo usi).
➡ Come fare:
Nel file functions.php
:
add_filter('use_block_editor_for_post', '__return_false');
E voilà, niente più blocchi in giro.
Non serve installare un plugin per la cache, almeno non per quella del browser. Basta aggiungere qualche riga al file .htaccess
del tuo sito.
➡ Codice da incollare (solo se usi Apache):
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresDefault "access plus 2 days"
</IfModule>
Non serve essere sviluppatori per copiarlo e incollarlo. Solo attenzione: fai sempre un backup del file .htaccess
prima di modificarlo!
I commenti WordPress generano query extra, script e stile. Se tanto non li usi, eliminali del tutto.
➡ Come fare:
Vai su Impostazioni > Discussione
Togli la spunta a “Consenti la pubblicazione di commenti…”
Poi, rimuovili anche dai singoli post già pubblicati (modifica rapida > disabilita commenti)
Troppi redirect rallentano il sito. E magari non lo sai, ma ne hai un paio che non servono a nulla.
➡ Cosa controllare:
Accedi al sito con e senza www, e con e senza https. Devono tutti puntare alla versione finale corretta.
Se il tuo sito è su https://www.tuosito.it, tutte le versioni alternative devono reindirizzare lì con un 301.
WordPress per impostazione predefinita carica script per gestire l’embed dei contenuti (tipo YouTube, Twitter, ecc.) anche se non li usi.
➡ Come disattivarli:
function disable_embeds_code_init() {
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js');
remove_filter('pre_oembed_result', 'wp_filter_pre_oembed_result', 10);
}
add_action('init', 'disable_embeds_code_init', 9999);
Ora che hai fatto tutto, vai su PageSpeed Insights o GTmetrix e dai un’occhiata alle prestazioni.
➡ Se hai seguito questi consigli, dovresti vedere:
Un caricamento più veloce (soprattutto su mobile)
Meno richieste al server
Meno script caricati inutilmente
Ottimizzare WordPress non significa installare 25 plugin per fare ogni singola cosa. A volte basta un pizzico di buon senso, un tema ben fatto e un po’ di pulizia per ottenere risultati concreti. Certo, se hai un sito molto complesso, allora plugin come WP Rocket o LiteSpeed Cache possono avere senso. Ma per un blog o un sito vetrina, puoi fare tantissimo senza complicarti la vita.
Ricorda: meno roba = più velocità = utenti più felici (e Google anche).
Cookie | Durata | Descrizione |
---|---|---|
cookielawinfo-checkbox-advertisement | 1 year | Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category . |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
CookieLawInfoConsent | 1 year | Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie. |
JCS_INENREF | 1 hour | The cookie is a part of the website security measures and is used for anti-spam purposes. |
JCS_INENTIM | 1 hour | The cookie is a part of the website security measures and is used for anti-spam purposes. |
PHPSESSID | session | This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed. |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
_GRECAPTCHA | 5 months 27 days | This cookie is set by the Google recaptcha service to identify bots to protect the website against malicious spam attacks. |
_wpss_h_ | 1 hour | This cookie is used for anti-spam and security of the website. |
_wpss_p_ | 1 hour | This cookie is used for anti-spam and security of the website. |
Cookie | Durata | Descrizione |
---|---|---|
d | 3 months | Quantserve sets this cookie to anonymously track information on how visitors use the website. |
Cookie | Durata | Descrizione |
---|---|---|
CONSENT | 2 years | YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data. |
u | 1 year | This cookie is used by Bombora to collect information that is used either in aggregate form, to help understand how websites are being used or how effective marketing campaigns are, or to help customize the websites for visitors. |
_ga | 2 years | The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors. |
_gat_gtag_UA_54545659_3 | 1 minute | Set by Google to distinguish users. |
_gid | 1 day | Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously. |
__gads | 1 year 24 days | The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites. |
Cookie | Durata | Descrizione |
---|---|---|
ab | 1 year | Owned by agkn, this cookie is used for targeting and advertising purposes. |
CMID | 1 year | Casale Media sets this cookie to collect information on user behavior, for targeted advertising. |
CMPRO | 3 months | CMPRO cookie is set by CasaleMedia for anonymous user tracking, and for targeted advertising. |
CMPS | 3 months | CMPS cookie is set by CasaleMedia for anonymous user tracking based on user's website visits, for displaying targeted ads. |
CMST | 1 day | Casale Media sets this cookie to collect information on user behavior, for targeted advertising. |
DSID | 1 hour | This cookie is set by DoubleClick to note the user's specific user identity. It contains a hashed/encrypted unique ID. |
id | 1 year 1 month | Set by Google DoubleClick, this cookie is used to create user profiles to display relevant ads. |
IDE | 1 year 24 days | Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile. |
KADUSERCOOKIE | 3 months | The cookie, set by PubMatic, registers a unique ID that identifies a returning user's device across websites that use the same ad network. The ID is used for targeted ads. |
KTPCACOOKIE | 1 day | The cookie, set by PubMatic, registers a unique ID that identifies a returning user's device across websites that use the same ad network. The ID is used for targeted ads. |
mc | 1 year 1 month | Quantserve sets the mc cookie to anonymously track user behaviour on the website. |
mdata | 1 year 1 month | This cookie is used by Media Innovation group and registers a unique ID to identify a visitor on their revisit, in order to show them relevant ads. |
ov | 1 year 1 month | This cookie is set by the provider mookie1.com. This cookie is used for serving the user with relevant content and advertisement. |
test_cookie | 15 minutes | The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies. |
uuid | 3 months | MediaMath sets this cookie to avoid the same ads from being shown repeatedly and for relevant advertising. |
VISITOR_INFO1_LIVE | 5 months 27 days | A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface. |
YSC | session | YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages. |
yt-remote-connected-devices | never | YouTube sets this cookie to store the video preferences of the user using embedded YouTube video. |
yt-remote-device-id | never | YouTube sets this cookie to store the video preferences of the user using embedded YouTube video. |
yt.innertube::nextId | never | This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen. |
yt.innertube::requests | never | This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen. |
Cookie | Durata | Descrizione |
---|---|---|
04ecbdc3c8cf16f1be009c66ff1e1338 | 4 hours | No description |
058d1dd4c2b7a954880e0bbdb1870438 | 4 hours | No description |
06c08a52fb366b586c4a5a60bd81a032 | 4 hours | No description |
06cf9d7ef1d1881252ce47dd06ac08f3 | 4 hours | No description |
09440368c01217c60d60dd49cb763134 | 4 hours | No description |
0b06a9c49a6ae83407d78fa2c6cbb754 | 4 hours | No description |
0b2c5193e048ed914b2305e520425354 | 4 hours | No description |
0eb805528ad5c11759038444ff2341d9 | 4 hours | No description |
0fc3184b8684aacdd2d4a61212650c67 | 4 hours | No description |
0fe5b5ff96e0ebe112cd7b65a4b80e01 | 4 hours | No description |
12cb367bf061181ec080adeb0a979a63 | 4 hours | No description |
15743677e19d30149a85ea11579014c6 | 4 hours | No description |
1595c8a1e8f3d7936c76235fccb642d4 | 4 hours | No description |
180ccbb64978ceddfede7c1ded4fcc33 | 4 hours | No description |
1e3aa9c49fa6a3708c10698621561970 | 4 hours | No description |
1eff2c6050bd1a67bf59750bde8aa48a | 4 hours | No description |
22cc47102aa5930b376a1e850f9f7998 | 4 hours | No description |
2471fd4fbd0697c13a585de398e09cd6 | 4 hours | No description |
3038be542854f1abfe8398702470e2d9 | 4 hours | No description |
314165b7e8774789dd6594155f831d59 | 4 hours | No description |
31fcd56e023a056286bd963a2b7d9f91 | 4 hours | No description |
34be7884060f1d4b14bb2c0f5475f0d0 | 4 hours | No description |
364de52a19c37e44e56f104a25e869f7 | 4 hours | No description |
36547837130fd63665fd4de9211211f5 | 4 hours | No description |
38e93c3cfe326d787b45698a5a6bbfea | 4 hours | No description |
392959a50eb044c5a7a7de09899c7baa | 4 hours | No description |
3b5808709edd28b3d43cfaf46bdbfe13 | 4 hours | No description |
42db14d707fd007b171fb3cd183c716e | 4 hours | No description |
435d77343474100c952e594530cac6c7 | 4 hours | No description |
45d7cbc98cc5939ccaa31374d9501ee9 | 4 hours | No description |
4a17a7ac22d9100a17fc08365601a82b | 4 hours | No description |
4c3920b813956aad13fbf65e142958aa | 4 hours | No description |
4debd2636f1f4ed491b1fac2ecbe7818 | 4 hours | No description |
4f11801af7e6e577b3058dfbb8f007e9 | 4 hours | No description |
55eeca3eec69236f8c7c606b74d3387b | 4 hours | No description |
5d0c045aeff810303a5e8df2f7748631 | 4 hours | No description |
5d0c8e1d0dc504433e046993f4fa449a | 4 hours | No description |
5df70a264e8f43a64bdc1b79d5efb2e5 | 4 hours | No description |
5fa57ec7b68228177f48af589712c121 | 4 hours | No description |
61b279df23b147bc81ffd53a81fe2957 | 4 hours | No description |
647e91c682ee42138176157cbfadbe66 | 4 hours | No description |
67893c43404db52849ed4ca6cb145346 | 4 hours | No description |
681114604376872d4d04a7324e1f936d | 4 hours | No description |
70bb13372da078a313a3602c4b1108a2 | 4 hours | No description |
735b38aa234c6176d1803e2cd3cf7c20 | 4 hours | No description |
760cdecc7adf05d51d44a2ef21adf908 | 4 hours | No description |
785c4969ce93ee004f1fb17c836905cb | 4 hours | No description |
7978221bfaca83cfd66a6102b88a0e49 | 4 hours | No description |
7f1cd1ee4843eb910e614e7a03e4dd87 | 4 hours | No description |
813a2d9f186728cf33c2a881a88a65b6 | 4 hours | No description |
Contattami con WhatsApp ora !