{"id":755,"date":"2024-05-07T11:42:46","date_gmt":"2024-05-07T11:42:46","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/is-autoptimize-working-well-on-my-website\/"},"modified":"2025-08-27T08:44:04","modified_gmt":"2025-08-27T08:44:04","password":"","slug":"is-autoptimize-working-well-on-my-website","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/is-autoptimize-working-well-on-my-website\/","title":{"rendered":"Is Autoptimize working well on my website?"},"content":{"rendered":"<p>\n\t WordPress has lots of plugins. And when we say lots, we mean <strong>lots<\/strong>. At the moment of writing this article, it shows <a href=\"https:\/\/wordpress.org\/plugins\/\" rel=\"noopener\">54940 plugins<\/a>. These plugins have very different purposes, and you can tell immediately if they work or not, right after installing and activating them. But, what happens with those that work on the background? For example, <a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" rel=\"noopener\">Autoptimize<\/a>? How can you know if they are doing their job correctly? Let\u2019s see it.<\/p>\n<h2>Testing Autoptimize<\/h2>\n<p>\n\t First, as a note, in this article we will just talk about the Image Optimization part of Autoptimize, which is the part we are involved in.<\/p>\n<p>\n\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-ppHbOC6XDM.png\" style=\"width: 583px;\"><\/p>\n<p>\n\t The first and <strong style=\"background-color: initial;\">most important part of this section<\/strong> in <em style=\"background-color: initial;\">Settings &gt; Autoptimize &gt; Images<\/em> is the checkbox <em style=\"background-color: initial;\">Optimize Images<\/em>. The fastest way to know if your images are being optimized is by looking at the source code of the page and see where the image is coming from. So, assuming that you already marked the checkbox and saved the changes, do the following:<\/p>\n<ol>\n<li>Reload the page (F5) <strong>twice<\/strong>. Unless a page is visited, the images on a specific page won&#8217;t be optimized. So, reload once to \u201csend\u201d the images to optimize and another time to see the results.<\/li>\n<li>Right-click on the image you want to have optimized.<\/li>\n<li>Click <em>Inspect<\/em> or <em>Inspect Element<\/em> (it depends on the browser).\n<p>\n\t\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-KBZCNxz6kZ.png\" style=\"width: 583px;\">\n\t<\/p>\n<\/li>\n<li>The source code will open next or below the page, and the relevant line of code will be highlighted. <strong>Look at the URL of the image<\/strong>; it is usually located in the&nbsp;<code>src<\/code>&nbsp;attribute:\n<p>\n\t\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-vOg3bsHfPD.jpg\">\n\t<\/p>\n<\/li>\n<li>Does the URL <strong>start<\/strong>, like on the previous image, with <code style=\"\">https:\/\/sp-ao.shortpixel.ai<\/code>? Congrats! Your image is optimized correctly.<\/li>\n<\/ol>\n<p>\n\t If you go back and uncheck the checkbox, and repeat all the process, now the same images will be coming from your own domain:<\/p>\n<p>\n\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-yvuo2faDKo.jpg\"><\/p>\n<h3>I have the checkbox active, but the images are not optimized. Why?<\/h3>\n<p>\n\t Have a look please at the following article: <a href=\"https:\/\/help.shortpixel.com\/article\/68-why-arent-all-the-images-on-a-page-optimized\" rel=\"noopener\">Why aren&#8217;t all the images on a page optimized by Autoptimize? &#8211; ShortPixel Knowledge Base<\/a><\/p>\n<h3>Are the WebP and\/or AVIF served correctly too?<\/h3>\n<p>\n\t This we can also test it using the Developer Tools of the browser. First, press F12.<\/p>\n<ol>\n<li>Click on the <em>Network<\/em> tab, and then <em>Img<\/em>:\n<p>\n\t\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-Fmo4ci8G4g.png\" style=\"width: 583px;\">\n\t<\/p>\n<\/li>\n<li>Reload the page (F5)&nbsp;<strong>twice<\/strong>, waiting a few seconds in between. Unless a page is visited, the images on a specific page won&#8217;t be optimized. So, reload once to \u201csend\u201d the images to optimize and another time to see the results.<\/li>\n<li>Now you should see all the images with Type&nbsp;<code>webp<\/code>&nbsp;or&nbsp;<code>avif<\/code>, regardless of the extension of the file. There\u2019s a chance you will also see some other unusual stuff, like&nbsp;<code>svg+xml<\/code>&nbsp;or&nbsp;<code>text\/html<\/code>. You can ignore those.\n<p>\n\t\t <img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-xB9Hfry770.jpg\" style=\"width: 583px;\">\n\t<\/p>\n<\/li>\n<\/ol>\n<h2>ShortPixel Adaptive Images (SPAI)<\/h2>\n<p>\n\t Lastly, <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-adaptive-images\/\" target=\"_blank\" rel=\"noopener\">we suggest giving SPAI a try<\/a>, as it also serves the right size of the image for the specific device that is looking at the page, saving you more load time. For more information about this, check out <a href=\"https:\/\/help.shortpixel.com\/article\/198-shortpixel-adaptive-images-vs-autoptimizes-optimize-images-option\" target=\"_blank\" rel=\"noopener\">this article<\/a>.<\/p>\n<p>\n\t We hope that helps you with your testing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has lots of plugins. And when we say lots, we mean lots. At the moment of writing this article, it shows 54940 plugins. These plugins have very different purposes, and you can tell immediately if they work or not, right after installing and activating them. But, what happens with those that work on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[36],"glossaries":[],"doc_tag":[],"class_list":["post-755","docs","type-docs","status-publish","hentry","doc_category-autoptimize"],"blocksy_meta":[],"year_month":"2026-05","word_count":508,"total_views":"3374","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"Autoptimize","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/autoptimize\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=755"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/755\/revisions"}],"predecessor-version":[{"id":2526,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/755\/revisions\/2526"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=755"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=755"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=755"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}