nariyanto/wp-safe-staging-guard

Prevent WordPress staging-site accidents with visible environment labels, noindex controls, and safe email handling.

Maintainers

Package info

github.com/nariyanto/wp-safe-staging-guard

Type:wordpress-plugin

pkg:composer/nariyanto/wp-safe-staging-guard

Transparency log

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-06-03 01:19 UTC

This package is auto-updated.

Last update: 2026-07-04 04:04:58 UTC


README

CI Latest Release Packagist Version PHP WordPress License

Prevent staging-site accidents with visible environment labels, noindex controls, and safe email handling.

Why

Staging sites are useful, but they can accidentally:

  • get indexed by search engines,
  • send real emails to users,
  • look too similar to production,
  • confuse support and testing workflows.

SNXWorks Safe Staging Guard adds a small safety layer for WordPress staging/local environments.

v0.1.0 features

  • Admin bar environment label.
  • Frontend staging banner for logged-in users.
  • Noindex/nofollow for local/staging environments.
  • Email block or redirect mode.
  • Production mode disables email interception and noindex.

Staging verification

Installed and verified on peepso.nariyanto.id staging with:

  • staging environment mode enabled,
  • noindex, nofollow robots meta active,
  • email safety mode set to block,
  • Plugin Check completed with no errors.

Development

Run tests:

php tests/run.php

Run PHP syntax checks:

find . -path ./.git -prune -o -name '*.php' -print0 | xargs -0 -n1 php -l

Build release ZIP:

bash scripts/build-release.sh

Safety notes

  • No tracking by default.
  • No external network calls.
  • No destructive operations.
  • Production mode keeps emails and robots behavior untouched.

License

GPL-2.0-or-later.