ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization source code

By ShortPixel, on WordPress.org since 2018. 10,000+ active installs.

Browse code Download zip

An easy-to-use plugin that lets you solve any problems with images and improve your website’s Core Web Vitals in a minute. Below is its source code for every one of its 131 releases, what changed in the latest one, and how often it ships.

What changed in 3.12.0

Released Nov 12, 2026, 2 months after 3.11.6
  • Smarter Native Lazy-Loading: When the “Native lazy-loading” option is enabled, images now get their CDN address and the loading=”lazy” attribute directly in the page, so the browser handles the lazy-loading on its own, with any replace method. Images that you excluded from lazy-loading or that WordPress marks as high priority don’t get the attribute.
  • Lite YouTube Embeds: Background images set on elements are now optimized and served from the CDN.
  • PHP 7.4 Minimum: The plugin now requires PHP 7.4 or newer, the oldest version it is tested on.
  • Comprehensive Automated Testing: The plugin now runs a comprehensive suite of automated tests (unit, integration, compatibility, multisite and end-to-end browser tests) on every change, on all the supported PHP versions, complemented by the relevant manual tests done by our engineering and testing teams.
  • Code Documentation: Improved the overall code documentation of the plugin.
  • XSS Fix: Hardened the output escaping of the image and background image addresses that the plugin rewrites in the page, preventing a potential cross-site scripting issue, responsibly disclosed by the PatchStack and Wordfence teams.

56 files changed since 3.11.6: 45 modified, 11 added, 0 removed.

And 46 more.

Compare 3.11.6 with 3.12.0

Release history

131 releases since December 2018
  1. 3.12.0 Nov 12, 2026 Smarter Native Lazy-Loading: When the “Native lazy-loading” option is enabled, images now get their CDN address and the loading=”lazy” attribute directly in the page, so the browser handles the lazy-loading on its own, with any replace method. Images that you excluded from lazy-loading or that WordPress marks as high priority don’t get the attribute.
  2. 3.11.6 Aug 20, 2026 Authorization Bypass Patched: Fixed an authorization bypass vulnerability responsibly disclosed by the WordFence team.
  3. 3.11.5 Jun 19, 2026 🛡️ The Security Hardening Update
  4. 3.11.4 May 18, 2026 🔐 The Hardened Settings Update
  5. 3.11.3 May 12, 2026 🔒 The Secure Exclusions Update
Full ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization changelog with diffs

Source of 3.12.0

196 files
Browse all ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization 3.12.0 files Browse trunk