WP-Stateless – Google Cloud Storage
Upload and serve your WordPress media files from Google Cloud Storage.
Install in
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.
Benefits
- 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!
Modes
- 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.
Features
- Stateless Connect: sign in with Google from wp-admin and storage is set up in your own Google Cloud account.
- 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.
Addons
- Elementor Website Builder Addon
- Gravity Forms Addon
- Gravity Forms Signature Addon
- WPForms Addon
- WooCommerce Addon
- Easy Digital Downloads Addon
- LiteSpeed Cache Addon
- Divi Theme Addon
- SiteOrigin CSS Addon
- SiteOrigin Widgets Bundle Addon
- BuddyPress Addon
- BuddyBoss Platform Addon
- Polylang Pro Addon
- Simple Local Avatars
Support, Feedback, & Contribute
We welcome community involvement via the GitHub repository.
Custom Development
Looking for a unique feature for your next project? Hire us!
External services
WP-Stateless stores and serves your media from Google Cloud Storage in your own Google account. It relies on the services below. Your media files are sent only to Google Cloud Storage.
Google Cloud
The plugin uploads, reads and deletes media in the Google Cloud Storage bucket you configure, using your own service account. During Stateless Connect it also uses Google sign-in and Google Cloud APIs (projects, billing, IAM, service usage and storage) with the permissions you approve, to create or select the project, bucket and service account. This service is provided by Google: Terms of Service, Privacy Policy.
stateless.ci (Stateless Connect)
Stateless Connect uses stateless.ci, operated by UDX, to handle Google sign-in for the plugin. It is contacted when an administrator opens the Stateless Connect screen, which also opens once after the plugin is activated on a site that has no storage configured. Opening the screen sends the site’s WordPress admin return address and a one-time challenge so that a sign-in can be prepared. Signing in passes the Google authorization through stateless.ci for one-time delivery to your site, and later token refreshes also pass through it. The service account key is created in your own Google Cloud project and never passes through stateless.ci.
To learn whether setup works, the plugin also reports setup progress for that sign-in attempt: screen viewed, sign-in started, storage created or failed with a general reason, and whether the first upload succeeded. These records do not contain the site address, email address, project ID or bucket name, and they expire after seven days.
Sites configured by hand with a bucket and service account JSON under Stateless Settings do not need Stateless Connect, and the WP_STATELESS_MEDIA_HIDE_SETUP_ASSISTANT constant keeps the screen from opening. This service is provided by UDX: Privacy Policy.
UDX product check-in
While you use the WordPress admin, the plugin contacts UDX (usabilitydynamics.com) at most once a day to check for product notices. The request includes your site address, the plugin version and the UDX products detected on the site. This service is provided by UDX: Privacy Policy.
Written by Joobi from the project's own listing. See the source page
4.5.3 – 2026-11-28
- SECURITY – added capability checks to admin notice AJAX actions to prevent unauthorized changes to plugin settings.
4.5.2 – 2026-11-13
- ENHANCEMENT – Stateless Connect connects an existing bucket that uses uniform bucket-level access, the default for buckets created in the Google Cloud console. Setup no longer asks for WP_STATELESS_SKIP_ACL_SET in wp-config.php: uploads to such a bucket leave per-file permissions alone on their own.
- ENHANCEMENT – when such a bucket is private, setup offers to make its files public so the site can serve media from it. The choice is off by default and says what becomes readable; Backup mode keeps the bucket private.
- FIX – on a bucket without per-file permissions, a file that is already in the bucket is recognised as such: it is no longer uploaded again on every sync, non-library files are no longer dropped from the sync queue, and copying a file within the bucket no longer fails. This also applies to sites that use WP_STATELESS_SKIP_ACL_SET.
4.5.1 – 2026-11-12
- ENHANCEMENT – fresh, unconfigured activations and the Plugins screen lead directly to Stateless Connect; manual bucket and service-account settings remain available under Advanced.
- ENHANCEMENT – the recommended setup creates a project and US multi-region bucket with CDN mode, while existing projects, buckets, locations and modes remain available under Advanced.
- ENHANCEMENT – Google sign-in stays in the same tab, setup explains billing and key custody, and missing billing has a Check again path that preserves the storage choices.
- ENHANCEMENT – storage setup shows its progress on the Connect screen and no longer depends on one long request: it survives slow Google operations, proxy timeouts and page reloads, and an interrupted setup resumes its saved project, bucket and key instead of starting over.
- NEW – privacy-limited setup events measure actual Connect clicks through provisioning and the first verified upload without recording site addresses, email addresses, project IDs, bucket names or free-form errors.
- FIX – storage drafts restore the selected project and bucket after a failed attempt, and new project names are generated in Google’s accepted format.
- FIX – the result of a storage setup, including the explanation when it fails, stays on the Connect screen until the next action, so reloading the page no longer loses it.
- FIX – a storage setup that is interrupted or replaced by another no longer leaves a service account key behind: the next setup or a disconnect revokes it, and a revocation that fails is retried.
- SECURITY – stateless.ci excludes OAuth callback query parameters from its load-balancer log sinks and retains only pseudonymous, short-lived setup-funnel records.
4.5.0 – 2026-11-02
- NEW – Stateless Connect replaces the setup wizard: sign in with Google from wp-admin, confirm your site on stateless.ci, and WP-Stateless creates the project, bucket, service account and key inside your own Google Cloud account. No iframe, no copying of keys.
- NEW – setup works from Network Admin on multisite, with network and per-site connections kept separate.
- NEW – setup lets you choose an existing project, billing account and bucket from searchable lists, pick single, dual or multi-region locations, and select the storage mode with explanations.
- NEW – a pairing code completes sign-in when the browser cannot return to the site, and sign-in works for localhost installs.
- FIX – synchronization no longer reports success when an upload or a thumbnail failed to reach Google Cloud; the failure stays visible and the retry works.
- FIX – media Trash Undo link now works from the grid view of the Media Library.
- FIX – upgrading straight from a 2.x install no longer logs database errors for the 3.x sync table that never existed there; the data optimization step checks for the table first.
- ENHANCEMENT – repeated setups revoke the site’s previous service account key instead of piling keys onto the account.
- ENHANCEMENT – setup verifies the new credentials before it replaces a working configuration, remembers keys it could not revoke and retries them on the next setup, refuses existing buckets that would serve 403s under WP_STATELESS_SKIP_ACL_SET, and stops when the storage mode is pinned to Disabled.
- ENHANCEMENT – plugin header and composer now state the PHP 8.1 minimum that the bundled Google libraries already require.
- ENHANCEMENT – documentation links now point to stateless.ci, and the setup wizard links to the guides on Google permissions, storage modes and synchronization.
- ENHANCEMENT – setup resumes a project whose billing link failed instead of creating a second one, proves a public read from a new bucket before continuing (organization policies that enforce public access prevention get an explanation instead of 403s later), refuses OAuth client changes while that client holds a live connection, encrypts tokens with OpenSSL where sodium is missing, drops sign-in proofs as soon as an attempt finishes, and lists up to 10,000 projects with a note when more exist.
- SECURITY – the Google client secret never ships in the plugin: sign-in runs through stateless.ci with PKCE, single-use transactions bound to your site, and an explicit confirmation step before any token reaches WordPress.
- SECURITY – setup mints a service account key inside your own project with Storage Admin on the one bucket only, never a project-wide role; the key is written straight into the site and never passes through stateless.ci.
- SECURITY – disconnecting verifies that Google and stateless.ci revoked the access before the connection is removed, and setup refuses private or uniform-access buckets for serving modes and refuses to overwrite credentials pinned by constants or environment variables.
- SECURITY – updated the bundled firebase/php-jwt library to 7.x (CVE-2025-45769), render synchronization counters as text instead of HTML, and restrict the GitHub Actions token used by the security scan workflow to read-only.
4.4.3 – 2026-09-05
- FIX – corrected add-on file path for the WooCommerce Extra Product Options add-on: duplicate
.phpextension caused the add-on to always appear uninstalled/inactive on the Stateless Addons screen with an invalid activation link. - FIX – resolved PHP warnings in non-media file synchronization: undefined
$mediavariable after a failed object metadata update and deprecated dynamic$clientproperty creation on PHP 8.2+.
4.4.2 – 2026-09-02
- FIX –
udx/lib-wp-bootstrappackage updated to 1.3.5: security hardening of the admin notice dismissal AJAX handler (nonce verification, capability check, and option key restriction). - ENHANCEMENT – updated
guzzlehttp/guzzlelibrary from 7.10.0 to 7.15.5. - ENHANCEMENT – updated
phpseclib/phpsecliblibrary from 3.0.48 to 3.0.57. - ENHANCEMENT – updated
google/protobuflibrary from 4.33.2 to 4.33.6.
4.4.1 – 2026-01-16
- COMPATIBILITY – WooCommerce Extra Product Options Compatibility replaced with WP-Stateless – WooCommerce Extra Product Options Addon.
- FIX – resolve critical errors with
firebase/php-jwtlibrary ifAUTH_SALTWordPress constant is not set or too short.
4.4.0 – 2026-01-10
- NEW – plugin requires PHP 8.1+.
- ENHANCEMENT – updated
firebase/php-jwtlibrary from 6.11.1 to 7.0.2. - ENHANCEMENT – Updated Client library for Google APIs from 2.18.3 to 2.19.0.
- ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from 5.10.15 to 5.10.19. - ENHANCEMENT – updated
Meta Box Tabslibrary from 1.1.18 to 1.2.0. - FIX –
udx/lib-wp-bootstrappackage correctly loads text domain to prevent PHP notices.
4.3.0
- ENHANCEMENT – update dependencies for Google APIs Client Library.
- COMPATIBILITY – Simple Local Avatars Compatibility replaced with WP-Stateless – Simple Local Avatars Addon.
4.2.1
- ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from 5.10.11 to 5.10.15. - FIX – correctly loads text domain to prevent PHP notices.
- FIX –
udx/lib-ud-api-clientpackage correctly loads text domain to prevent PHP notices.
4.2.0
- ENHANCEMENT – Updated Client library for Google APIs from 2.18.2 to 2.18.3.
- ENHANCEMENT – updated
firebase/php-jwtlibrary from 6.10.2 to 6.11.1. - ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from 5.10.1 to 5.10.11. - DEPRECATED – Setup Assistant removed.
4.1.3
- COMPATIBILITY – PolyLang Compatibility replaced with WP-Stateless – Polylang Pro Addon.
- ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from from 5.10.1 to 5.10.7. - ENHANCEMENT – updated
Meta Box Tabslibrary from 1.1.18 to 1.2.0. - ENHANCEMENT – updated
firebase/php-jwtlibrary from from 6.10.1 to 6.10.2. - ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from from 5.10.1 to 5.10.2. - ENHANCEMENT – Updated Client library for Google APIs from 2.17.0 to 2.18.2.
- FIX – apply
Cache Controlsetting to all files (previously applied only to images).
4.1.2
- ENHANCEMENT – added
REST API Endpointsetting, which useful when WordPress dashboard and frontend website utilize different domain names. - ENHANCEMENT – extended
Status Infowith the information to help diagnose REST API or AJAX issues. - COMPATIBILITY – SiteOrigin Widgets Bundle Compatibility replaced with WP-Stateless – SiteOrigin Widgets Bundle Addon.
- COMPATIBILITY – WPForms Compatibility replaced with WP-Stateless – WPForms Addon.
- COMPATIBILITY – Easy Digital Downloads Compatibility replaced with WP-Stateless – Easy Digital Downloads Addon.
- COMPATIBILITY – LiteSpeed Cache Compatibility replaced with WP-Stateless – LiteSpeed Cache Addon.
- COMPATIBILITY – BuddyPress Compatibility replaced with WP-Stateless – BuddyPress Addon.
- FIX: remove PHP warning on
Statussettings tab. - FIX: database updates to resolve conflicts with Polylang Pro compatibility.
4.1.1
- FIX – cache issues during Data Optimization.
4.1.0
- NEW – move compatibilities files from
wp_sm_synctowp_stateless_filestable with extended information. - COMPATIBILITY – WooCommerce Compatibility replaced with WP-Stateless – WooCommerce Addon.
- COMPATIBILITY – Gravity Forms Compatibility replaced with WP-Stateless – Gravity Forms Addon.
- COMPATIBILITY – Gravity Forms Signature Compatibility replaced with WP-Stateless – Gravity Forms Signature Addon.
- COMPATIBILITY – Divi Theme Compatibility replaced with WP-Stateless – Divi Theme Addon.
- COMPATIBILITY – SiteOrigin CSS Compatibility replaced with WP-Stateless – SiteOrigin CSS Addon.
- ENHANCEMENT – CLI command
wp stateless migratesupportsautoparameter to run all required Data Optimizations automatically. - ENHANCEMENT – Updated Client library for Google APIs from 2.15.1 to 2.17.0.
- ENHANCEMENT – updated
firebase/php-jwtlibrary from from 6.9.0 to 6.10.1. - ENHANCEMENT – updated
wpmetabox/meta-boxlibrary from from 5.8.2 to 5.10.1. - ENHANCEMENT – updated
deliciousbrains/wp-background-processinglibrary from from 1.1.1 to 1.3.1. - ENHANCEMENT – updated
composer/installerslibrary from from 1.12.1 to 2.3.0. - ENHANCEMENT – updated
Meta Box Tabslibrary from 1.1.17 to 1.1.18. - ENHANCEMENT – action
sm:sync::addFileformat changed, now it passes media object instead of file name. - ENHANCEMENT – for installed Addons replace Download action with Activate.
- ENHANCEMENT – count compatibility files from the DB instead of listing actual files to increase performance.
- FIX – CLI command
wp stateless migratesupports--yesparameter to skip confirmation. - FIX – CLI command
wp stateless migratecorrectly works with--progressparameter in multisite. - FIX – fixed synchronization for Compatibility files in Stateless Mode.
- FIX – CLI command
wp stateless upgradefixed when running with--bswitch. - FIX – fixed SiteOrigin Widgets Bundle Compatibility in
Statelessmode. - FIX – fixed WPForms Compatibility in
Statelessmode. - FIX – limit index size for compatibility with different DB engines 757.
- FIX – correctly disable
Cache-Bustingsetting for Ephemeral Mode 758, credits @Jessedev1. - FIX – Data Optimization UI adjustments.
4.0.4
- ENHANCEMENT – display success message after copying Status Info.
- FIX –
Settingspage does not open or slow when there is big amount of attachments. - FIX – in multisite network, removing custom tables properly when deleting site.
- FIX – skip setting ACL in Stateless mode and during Sync for the buckets with Uniform access, support WP_STATELESS_SKIP_ACL_SET constant #712.
4.0.3
- NEW – added
Infosection to theStatustab on the Settings page, which contains the system info and the ability to copy report to clipboard. - ENHANCEMENT – added
Documentationlink on the Plugins page. - ENHANCEMENT – added
Addonslink on the Plugins page. - ENHANCEMENT – added
Documentationlink on the Settings page. - FIX – fixed
Settingsshortcut on the Plugins page. - FIX – in multisite network, do not show Data Optimization on the Network Admin Page.
- FIX – properly set
Content Dispositionfields for media objects. - FIX – properly use
Cache Controlsetting for media objects. - FIX – fixed
Creation of dynamic propertyPHP deprecation notice. - FIX – fixed
Cannot use ::class with dynamic class namePHP warning. - FIX – avoid PHP warning when unable to get file path in
Statelessmode 728. - FIX – fixed links to the constants documentation.
4.0.2
- FIX – in multisite network, deleting site can potentially remove WP-Stateless tables from another site.
- COMPATIBILITY – Gravity Forms Compatibility updated for the newest Gravity Forms version.
4.0.1
- FIX – improvements to Data Optimization process.
- FIX – Data Optimization fixed for multisite environment.
4.0.0
- NEW – use custom database tables to store GCS file data. This increases plugin performance and will be used for future improvements.
- NEW – added filter
wp_stateless_get_file, retrieves the GCS file data, should be used instead of gettingsm_cloudpostmeta directly. - NEW – added filter
wp_stateless_get_file_sizes, retrieves the GCS file data for image sizes, should be used instead of gettingsm_cloudpostmeta directly. - NEW – added filter
wp_stateless_get_file_meta, retrieves all GCS file meta data, should be used instead of gettingsm_cloudpostmeta directly. - NEW – added filter
wp_stateless_get_file_meta_value, retrieves the GCS file meta data by meta_key, should be used instead of gettingsm_cloudpostmeta directly. - NEW – added filter
wp_stateless_get_setting_...which allows to override any WP-Stateless setting. - NEW – added setting “Send Status Emails” allowing to change email for WP-Stateless notifications.
- NEW – added setting “Use Post Meta” allowing to switch back to using
postmetainstead of custom DB tables. Can be used in case of issues after upgrading to 4.0.0. - NEW – added new Settings tab
Addons, which contains the list of WP-Stateless Addons, which replace Compatibilities. - NEW – added new Settings tab
Status, which contains status and health information related to Google Cloud Storage and WP-Stateless. - NEW – CLI command
wp stateless migrateto list and operate data optimizations. - NEW – configuration constant
WP_STATELESS_POSTMETAallows to read the GCS file data from postmeta instead of the new custom database tables. - NEW – configuration constant
WP_STA
Follow this listing's changes (Atom feed)