WP-Stateless – Google Cloud Storage


Upload and serve your WordPress media from Google Cloud Storage (GCS) with the WP-Stateless plugin. In as little as two minutes, you will be benefitting from serving your media from Google Cloud’s distributed servers.

New to Google Cloud? Google is offering you a $300 credit to get you started.


  • Store and deliver media files on Google Cloud Storage instead of your server.
  • Google Cloud Storage is geo-redundant, meaning your media is delivered by the closest server – reducing latency and improving page speed.
  • Scale your WordPress website across multiple servers without the need of synchronizing media files.
  • Native integration between Google Cloud Storage and WordPress.
  • $300 free trial from Google Cloud. Nice!


  • Backup – Upload media files to Google Storage and serve local file urls.
  • CDN – Copy media files to Google Storage and serve them directly from there.
  • Ephemeral – Store and serve media files with Google Cloud Storage only. Media files are not stored locally, but local storage is used temporarily for processing and is required for certain compatibilities.
  • Stateless – Store and serve media files with Google Cloud Storage only. Media files are not stored locally.


  • Setup assistant makes getting started fast and easy.
  • No need to manually create service accounts or buckets – handled automatically.
  • Settings panel provides you with further GCS configuration and file url customization.
  • Mask the default GCS URL with your own custom domain.
  • Automatically replace hardcoded media URLs with GCS equivalents in post editor and meta.
  • Batch image thumbnail regeneration.
  • Synchronization tools for uploading existing files and images.
  • All settings supported with wp-config constants and network setting overrides.
  • Multiple modes: Backup, CDN, Ephemeral, Stateless.
  • All files served in HTTPS mode.
  • Serverless platform compatible, including Google App Engine.
  • Multisite compatible.

Support, Feedback, & Contribute

We welcome community involvement via the GitHub repository.

Custom Development

Looking for a unique feature for your next project? Hire us!


  • Settings Panel: Supports network setting and wp-config constant overrides.
  • Setup Assistant
  • Setup Assistant: Google Login
  • Setup Assistant: Approve Permissions
  • Setup Assistant: Project & Bucket
  • Setup Assistant: Complete
  • Edit Media: Image stored on Google Cloud Storage.


  1. Search, install, and activate the WP-Stateless plugin via your WordPress dashboard.
  2. Begin WP-Stateless setup assistant at Media > Stateless Setup and click “Get Started Now.”
  3. Click “Google Login” and sign-in with your Google account.
  4. Set a Google Cloud Project, Google Cloud Storage Bucket, and Google Cloud Billing Account and click “Continue.”
  5. Installation and setup is now complete. Visit Media > Stateless Settings for more options.
    For a more detailed installation and setup walkthrough, please see the manual setup instructions on Github.


What are the minimum server requirements for this plugin?

Beyond the official WordPress minimum requirements, WP-Stateless requires a minimum PHP version of 8.0 or higher and OpenSSL to be enabled.

What wp-config constants are supported?

For a complete list of supported wp-config constants, please consult the GitHub documentation.

How do I manually generate the Service Account JSON?

The WP-Stateless setup assistant will create the Service Account JSON automatically for you, but you can follow these steps if you choose to create it manually.

  1. Visit Google Cloud Console, and go to IAM & Admin > Service accounts.
  2. Click Create Service Account and name it wp-stateless.
  3. Set the role to Storage > Storage Admin.
  4. Check Furnish a new private key and select JSON as the key type.
  5. Open the JSON file and copy the contents into the Service Account JSON textarea within the WP-Stateless settings panel.

Where can I submit feature requests or bug reports?

We encourage community feedback and discussion through issues on the GitHub repository.

Can I test new features before they are released?

To ensure new releases cause as little disruption as possible, we rely on a number of early adopters who assist us by testing out new features before they are released. Please contact us if you are interested in becoming an early adopter.

Who maintains this plugin?

UDX maintains this plugin by continuing development through it’s own staff, reviewing pull requests, testing, and steering the overall release schedule. UDX is located in Durham, North Carolina and provides WordPress engineering and hosting services to clients throughout the United States.


July 30, 2023
Never managed to get any of the offload plugins working and then I found this jewel. 🙂
May 24, 2023
Uso este plugin em diversos sites com resultados excelentes. Nunca tive qualquer problema em nenhum momento. Aplico sempre no tema DIVI usando Litespeed Cache e tdo funciona maravilhosamente bem. Agradeço aos desenvolvedores pelo excelente trabalho.
December 23, 2022 1 reply
Plugin broke the permalink structure and set the website in a state of emergency. 404 errors on all pages expect the index. Done the manual integration, although images are serving from the cloud storage as described the layout of the pages broke whenever stateless is activated. Uninstalled and left with a mess that need a fixing. Don’t try on production websites! I was lucky that I have tried it in development environment
May 28, 2022
Not sure why this plugin is allowed on the official WP Plugin directory. The only thing that its 'synchronisation' does is add a whole lot of records to the postmeta table, but not a single object was ever added to the specified bucket. No errors, and no activity whatsoever on the bucket, just an email from the plugin to notify of its completion. Traffic usage went up significantly in correlation to the synchronisation period, so it also feels dodgy, because where was all that traffic going? Unfortunately, I tried it out on a managed hosting account, which means I'm unable to investigate the nature of that traffic much further. I don't have time to investigate the plugin code itself either right now, but felt I should at least take a couple minutes to warn others. I don't normally complain about free things, but no paid option is available and this is a potentially harmful plugin.
March 21, 2022
... and nice options. Google Cloud can be a bit of pain to navigate, but the plugin works great!
November 11, 2021 1 reply
This plugin used to be great. Not sure what happened with the developer. but they no longer update the plugin. The plugin has a lot of issues and they do not maintain it. This is a dead plugin and a dead project. I contacted UDX to see if I could PAY them to fix the issues I has having on our site. They told me, NOPE... They DO NOT OFFER SUPPORT ON THIS PLUGIN... EVEN PREMIUM SUPPORT... I was like... WOW.... So... Do yourself a favor. Do not install this plugin. It's a piece of trash. It's a dead project by UDX. And it will cause you more trouble than it's worth.
Read all 44 reviews

Contributors & Developers

“WP-Stateless – Google Cloud Storage” is open source software. The following people have contributed to this plugin.




  • FIX – Website unresponsive after Upgrade #669.


  • WP-Stateless 3.2.3 requires PHP 8.0+. Recently, Google updated the official Google API PHP Client Library used by WP-Stateless to resolve security issues. This updated library requires PHP 8.0.
  • ENHANCEMENT – Updated Client library for Google APIs.
  • ENHANCEMENT – Updated Monolog library to version 3.
  • ENHANCEMENT – Updated JWT library.
  • FIX – Fixed vulnerability issues.
  • FIX – Fixed an errors and warnings on PHP 8.1.
  • FIX – Fixed an error that occured when WP_STATELESS_MEDIA_UPLOAD_CHUNK_SIZE is set.


  • FIX – Folder setting can’t be saved from the settings page #639.


  • FIX – Updated requirments.
  • FIX – WP-Stateless 3.2.0 doesn’t upload docs, only images #638.


  • Before upgrading to WP-Stateless 3.2.0, please, make sure you tested it on your development environment. It may have breaking changes.
  • ENHANCEMENT – Upgraded wpmetabox library.
  • ENHANCEMENT – Updated Client library for Google APIs.
  • ENHANCEMENT – Updated Guzzle library to version 7.
  • ENHANCEMENT – Updated JWT library.
  • ENHANCEMENT – Updated license functionality, removed update checker.
  • FIX – Fixed vulnerability issues.
  • FIX – Fixed erros and warnings on PHP 8.
  • FIX – problem after the upgrade #628.
  • FIX – image_downsize() PHP8 Required parameter $id follows optional parameter $false #619.


  • ENHANCEMENT – Notification for the administrator about finished synchronization. GitHub issue #576.
  • FIX – Fixed an issue with PDF thumbnails. GitHub issue #577.
  • FIX – Fixed an issue with synchronization in Stateless mode. GitHub issue #575.
  • COMPATIBILITY – Changed the way compatibility files are stored on Multisite. GitHub issue #588.


  • NEW – Completely rewritten the synchronization tool. GitHub issue #523.
  • NEW – New configuration constant WP_STATELESS_SYNC_MAX_BATCH_SIZE. Sets the maximum size of a background sync batch of items to be saved in a single row in the database. More details.
  • NEW – New configuration constant WP_STATELESS_SYNC_LOG. Sets a path to a log file where to output logging information during the background sync. More details.
  • NEW – New configuration constant WP_STATELESS_SYNC_HEALTHCHECK_INTERVAL. Defines an interval in minutes for a cron task that periodically checks the health of a particular background sync process. More details.
  • FIX – Fixed an issue when original files were not deleted from the server in the Ephemeral mode. GitHub issue #484.
  • FIX – Fixed an incorrect behavior of image srcset attribute in the Backup mode. GitHub issue #558.
  • COMPATIBILITY – Litespeed Cache – Fixed an incorrect upload folder determination. GitHub issue #527.


  • FIX – Fixed inability to use dashes in the upload folder name. GitHub issue #565.
  • COMPATIBILITY – Elementor – Fixed wrong upload directory. GitHub issue #560.


  • FIX – Fixed an incorrect file URL in Stateless mode on Edit Media screen. GitHub issue #544.


  • FIX – Refactored the way files are being uploaded to GCS when WP_STATELESS_MEDIA_UPLOAD_CHUNK_SIZE constant is defined. GitHub issue #553.
  • FIX – Fixed the process of upgrading to 3.0 for multisite installations. GitHub issue #549.


  • FIX – Fatal Error in Stateless mode. GitHub issue #546.


  • Before upgrading to WP-Stateless 3.0, please, make sure you tested it on your development environment. It may have breaking changes.
  • NEW – Setup assistant rewrite. GitHub issue #477.
  • NEW – Recreate attachment metabox panel using metabox.io. GitHub issue #470.
  • NEW – Updated the Stateless mode to not use local storage at all. Current Stateless mode setting mapped to new Ephemeral mode. GitHub issue #482.
  • NEW – Files are now uploaded to GCS in chunks and chunk size will be determined based on free memory available. GitHub issue #478.
  • NEW – File upload chunk size can be controlled with WP_STATELESS_MEDIA_UPLOAD_CHUNK_SIZE constant. GitHub issue #478.
  • FIX – Changed the default value for the Cache-Busting setting. GitHub issue #361.
  • FIX – Fixed network override of Cache-Busting. GitHub issue #468.
  • FIX – Fixed “Passing glue string after array is deprecated.”. GitHub issue #444.
  • FIX – Fixed Compatibility default value in multisite. GitHub issue #464.
  • FIX – Fixed multisite wrong GCS path. GitHub issue #407.
  • FIX – Don’t check for Google Cloud Storage connectivity in stateless mode unless uploading. GitHub issue #442.
  • COMPATIBILITY – Google App Engine – Added new compatibility support for Google App Engine. #486
  • COMPATIBILITY – Elementor – Fixed wrong MIME type for CSS files. GitHub issue #395.
  • COMPATIBILITY – Polylang – Fixed missing metadata issue. GitHub issue #378.
  • COMPATIBILITY – EWWW – Fixed mime type for WEBP images. GitHub issue #371.
  • COMPATIBILITY – Simple Local Avatars – Added new compatibility support for Simple Local Avatars. GitHub issue #297.
  • COMPATIBILITY – BuddyPress – Fixed BuddyPress compatibility. GitHub issue #275.
  • COMPATIBILITY – Divi – Fixed Divi cache issue. GitHub issue #430.
  • COMPATIBILITY – Gravity Forms – add compatibility for Gravity Forms Signature Add-On. #501.
  • COMPATIBILITY – Litespeed – Fixed fatal error and warnings. #491.
  • COMPATIBILITY – Imagify – Added support for webp. #403.
  • ENHANCEMENT – Update Client library for Google APIs. #446.
  • ENHANCEMENT – Wildcards for bucket folder settings. GitHub issue #149.
  • ENHANCEMENT – Better CLI integration. GitHub issue #447, #450 and #451.
  • ENHANCEMENT – Sync media according to new Bucket Folder settings. GitHub issue #449.
  • ENHANCEMENT – Moved Bucket Folder setting in the File URL section. GitHub issue #463.
  • ENHANCEMENT – Hide Regenerate and Sync with GCS when the mode is Disabled. GitHub issue #440.
  • ENHANCEMENT – New endpoint for the Google Cloud Storage JSON API. GitHub issue #384.
  • ENHANCEMENT – Renamed current Stateless mode to Ephemeral. GitHub issue #481.


  • FIX – Fixed video file doesn’t get deleted from the server in Stateless mode. GitHub issue #418.
  • FIX – Fixed file size doesn’t show under attachment details in Stateless mode. GitHub issue #413.
  • FIX – Fixed Cache-Busting feature works even if the Mode is Disabled. GitHub issue #405.
  • COMPATIBILITY – Fixed Gravity Form Post Image didn’t include Bucket Folder. GitHub issue #421.
  • COMPATIBILITY – Fixed Divi Builder Export. GitHub issue #420.
  • COMPATIBILITY – Fixed BuddyBoss pages breaking after updating to 2.3.0. GitHub issue #417.


  • Fix – Fixed fatal error, undefined function is_wp_version_compatible. GitHub issue #414.


  • FIX – Fixed problem with WordPress 5.3. GitHub issue #406.
  • FIX – Fixed problem with the Cache Busting feature. GitHub issue #377.
  • COMPATIBILITY – Added compatibility support for WP Retina 2x pro. GitHub issue #380.
  • COMPATIBILITY – Enhanced compatibility support for LiteSpeed Cache. GitHub issue #365.
  • COMPATIBILITY – Enhanced compatibility support for ShortPixel Image Optimizer. GitHub issue #364, #398.
  • COMPATIBILITY – Fixed Gravity Form export. GitHub issue #408.
  • ENHANCEMENT – Improved upon add_media function for better compatibility support. GitHub issue #382.


  • FIX – WP-Smush compatibility enhanced. GitHub Issue #366.
  • FIX – Fixed multisite installation support. GitHub Issue #370.
  • FIX – Fixed settings UI problems related to Cache-Busting option. GitHub Issue #373.
  • FIX – Other minor fixes.


  • FIX – Multisite Network Settings page fixed. GitHub Issue #369.
  • FIX – Fixed incorrect Compatibilities behavior when Bucket Folder is set. GitHub Issue #368.
  • FIX – Other minor fixes.


  • NEW – Added ability to start sync process from specific Attachment ID. GitHub Issue #360.
  • COMPATIBILITY – Added compatibility support for LiteSpeed Cache plugin. Especially to support optimized .webp images. GitHub Issue #357.
  • FIX – Other minor fixes.

Earlier versions

Please refer to the separate changelog.txt file.