Skip to content

Plugins that write files on a read-only site

Which plugins work on a read-only release, which need a symlink to a writable folder, and which features cannot work by design. Tested with about 105 plugins.

Live code is a read-only release. Staging and previews in Git mode are read-only too. A plugin that only reads its own files works with no change. A plugin that writes files works when it writes to wp-content/uploads or wp-content/cache, which stay writable. A plugin that writes somewhere else needs one small change, described below.

What did we test?

We installed about 105 well-known plugins on a real site, one at a time, on a read-only release. For each one we turned it on, loaded the front page, the shop, a search, the contact page, and five wp-admin screens as an administrator, and read the server error log for fatal errors and failed writes. "Works" below means all of that was clean. It does not mean we ran every feature of every plugin. Features that install, update, or restore code cannot work on a read-only release by design (see the last section).

Group Plugins that worked with no change
Builders and stores Elementor, WooCommerce, Beaver Builder Lite, Easy Digital Downloads, BuddyPress, bbPress, The Events Calendar
Forms Contact Form 7, WPForms Lite, Ninja Forms, Formidable Forms, Constant Contact Forms, Mailchimp for WP
SEO Yoast SEO, Rank Math, All in One SEO, Redirection, Polylang, TranslatePress
Security Solid Security (iThemes), Sucuri Security, Wordfence (with a symlink), Shield (with a symlink), All In One WP Security, Loginizer, Limit Login Attempts Reloaded
Stores and members WooCommerce Stripe Gateway, WooCommerce Payments, Members, User Role Editor, Ultimate Member, MailPoet, Newsletter (with a symlink), TablePress
Blocks and builders Essential Addons for Elementor, Happy Addons, Spectra, Kadence Blocks, GenerateBlocks, Otter Blocks, Smart Slider, MetaSlider, FooGallery, Envira Gallery Lite
Site tools WP Statistics, Google Site Kit, Jetpack Boost, SEOPress, Simple History, WP Crontrol, WPCode, FluentSMTP, Post SMTP, Easy WP SMTP, Redis Object Cache (the add-on provides the cache), WP Staging, SVG Support, Safe SVG
Images and speed Autoptimize, Fast Velocity Minify, Smush, EWWW, ShortPixel, Imagify, WP-Optimize, PhastPress, NitroPack (with a symlink), WebP Express (with a symlink), Hummingbird (with a symlink)
Analytics and marketing Jetpack, MonsterInsights, Facebook for WordPress, Site24x7, AMP for WP, WPForms, Cookie Law Info, Popup Builder, WPFront Notification Bar, Tweet Old Post
Tools Query Monitor, Better Search Replace, WP Migrate, ACF, Yoast, WP Mail SMTP, Force Login, WP-Ban, Posts 2 Posts, Big File Uploads (with a symlink), H5P, Broken Link Checker, Coming Soon, YotuWP
Backup and migration UpdraftPlus (with a symlink), BackWPup, Duplicator (with a symlink), All-in-One WP Migration (with a symlink), NextGEN Gallery (with a symlink)

What slows a site down?

A plugin that works can still be heavy. On a WooCommerce shop with an uncached page, each plugin adds its own time to every request. We measured the plugins one at a time on top of WooCommerce alone (137 ms per page): WPForms Lite added 71 ms (with no forms on the site), Elementor 67 ms, Jetpack 49 ms, Solid Security 45 ms, ACF 34 ms, Yoast SEO 29 ms, WP Mail SMTP 22 ms, Contact Form 7 13 ms, UpdraftPlus 10 ms, and Redirection 8 ms. Together they took a page from 137 ms to about 400 ms. Turn off what you do not use. Page caching hides this for visitors who are not logged in, but not for carts, searches, and logged in users. The Redis object cache add-on helped little here (about 5%), because the database was not the slow part. The Performance part of Monitor shows the time each plugin takes on your own site.

Some plugins write to a fixed folder under wp-content, such as wp-content/wphb-logs or wp-content/wflogs. On a read-only release that write fails with "Read-only file system". The fix is a symlink in your repository from that folder to a writable folder, plus one line in wpwaterfall.yml that creates the target folder when a release goes live.

Plugin Symlink in your repository Points to
Hummingbird wp-content/wphb-logs cache/wphb-logs
Wordfence wp-content/wflogs cache/wflogs
Big File Uploads wp-content/bfu-temp cache/bfu-temp
NitroPack wp-content/nitropack cache/nitropack
UpdraftPlus wp-content/updraft uploads/updraft
NextGEN Gallery wp-content/gallery uploads/gallery
Duplicator wp-content/backups-dup-lite uploads/backups-dup-lite
All-in-One WP Migration wp-content/ai1wm-backups and wp-content/plugins/all-in-one-wp-migration/storage uploads/ai1wm-backups and ../../uploads/ai1wm-storage
WebP Express wp-content/webp-express uploads/webp-express
Newsletter wp-content/logs cache/logs
Shield (WP Simple Firewall) wp-content/plugins/wp-simple-firewall/flags (replace the folder) ../../cache/wp-simple-firewall-flags

Put files that you want to keep (backups, galleries, converted images) under uploads. Put files that the plugin rebuilds (logs, scratch files) under cache. The cache folder is limited to 2 GB and is not backed up.

  1. In your repository, make the link. Targets are relative to the link's folder: ln -s cache/wflogs wp-content/wflogs.

  2. Commit it. Git stores a symlink as a small file.

  3. Add one deploy hook to wpwaterfall.yml that makes the target folder. A deploy hook runs after the release goes live, and it can write to the writable folders:

    deploy:
      hooks:
        - wp eval 'foreach (["cache/wflogs", "uploads/updraft"] as $d) { wp_mkdir_p(WP_CONTENT_DIR . "/" . $d); }'
    
  4. Push to staging, check it, and promote.

The target must exist before the plugin writes, or the plugin's own "is this a folder" check fails. Look at the error log of the environment if a plugin still complains.

Why did my plugin ask for FTP credentials?

WordPress checks who owns the code folder before it writes a file. On a read-only release that check fails, and WordPress used to fall back to FTP, which ended a page with a fatal error in ftp_nlist(). WP Waterfall now defines FS_METHOD as direct in the wp-config.php of every read-only environment, before any plugin loads. Writes go straight to the writable folders and fail with a plain "read-only" message anywhere else. Environments get the setting the next time their configuration is written, for example when you switch the code mode.

Why did my deploy stop with "looks like malware"?

The malware scan blocks a deploy that contains a known backdoor. One of its rules looks for request data used as a function name, such as $_GET['f']($_GET['a']). Older versions of the scan also matched text in comments, so a plugin that wrote Reads $_GET['s'] (path LIKE search) in a code comment stopped a deploy (ShortPixel did). The scan now reads PHP as code: comments are ignored, and a comment cannot hide a call. If a deploy is stopped for a file you trust, use Dispute on the finding, or ask support.

Why are some of my plugin's files missing after I committed?

A .gitignore can leave out files without telling you. New sites start with a .gitignore whose patterns begin with a slash, such as /wp-config.php, so they match only at the top of the site. Older sites may have wp-config.php without the slash, which also leaves out a plugin's own template file with that name. Add the slash, and run git status --ignored to see what Git skipped.

What cannot work on a read-only release?

  • Plugins that install, update, or delete code. Update plugins on staging, commit, and promote. A plugin's own "update" or "install add-on" button fails by design.
  • Restore and reset features that write code, such as Duplicator's installer or WP Reset. Use WP Waterfall backups and restore points, which bring back the database, uploads, and code together.
  • Page caching plugins. WP Waterfall already caches pages, and these plugins write drop-in files into the code folder, so they are kept off. See Plugins we do not allow. Leave page caching to the platform and use a plugin only for what it adds, such as minifying files.
  • Plugins that edit .htaccess, nginx.conf, or wp-config.php. The platform manages those files.

See also Files manager, Environments, and Develop locally with DDEV.

Still stuck?

Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.