PHPackages                             nariyanto/wp-safe-staging-guard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nariyanto/wp-safe-staging-guard

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

nariyanto/wp-safe-staging-guard
===============================

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

v0.1.1(1mo ago)05GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Jun 3Pushed 1mo agoCompare

[ Source](https://github.com/nariyanto/wp-safe-staging-guard)[ Packagist](https://packagist.org/packages/nariyanto/wp-safe-staging-guard)[ Docs](https://github.com/nariyanto/wp-safe-staging-guard)[ RSS](/packages/nariyanto-wp-safe-staging-guard/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

SNXWorks Safe Staging Guard
===========================

[](#snxworks-safe-staging-guard)

[![CI](https://github.com/nariyanto/wp-safe-staging-guard/actions/workflows/ci.yml/badge.svg)](https://github.com/nariyanto/wp-safe-staging-guard/actions/workflows/ci.yml)[![Latest Release](https://camo.githubusercontent.com/e8f575a84b15768d979f9831a80c2c8bbe393d5d7094439759776a8ffaf7ac17/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6e61726979616e746f2f77702d736166652d73746167696e672d67756172643f6c6162656c3d72656c65617365)](https://github.com/nariyanto/wp-safe-staging-guard/releases)[![Packagist Version](https://camo.githubusercontent.com/f56e4b33502408c6d7f1ec2e8e0532c4623824bc385b27a97d1085ec0da3150e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e61726979616e746f2f77702d736166652d73746167696e672d67756172643f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/nariyanto/wp-safe-staging-guard)[![PHP](https://camo.githubusercontent.com/188197fbbe5b14e24870e423c99a2527d44476d6df6411ce0c8a4384e1562e08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230372e342d3737376262342e737667)](https://www.php.net/)[![WordPress](https://camo.githubusercontent.com/df6d36308189272770461a05b6c2e98c6a4f4edc62ca918964cfc3eacfafd0e2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d253345253344253230362e302d3231373539622e737667)](https://wordpress.org/)[![License](https://camo.githubusercontent.com/26f8b6541ea045cc1dbc2267208158b5a7ebbf5cf437c4b486d80fee9386f77e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d322e302d2d6f722d2d6c617465722d626c75652e737667)](https://www.gnu.org/licenses/gpl-2.0.html)

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

Why
---

[](#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
---------------

[](#v010-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
--------------------

[](#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
-----------

[](#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
------------

[](#safety-notes)

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

License
-------

[](#license)

GPL-2.0-or-later.

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

52d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8815470?v=4)[Septiyan Nariyanto](/maintainers/nariyanto)[@nariyanto](https://github.com/nariyanto)

---

Tags

email-safetynoindexphpstagingwordpresswordpress-pluginwordpressdevelopmentwordpress pluginnoindexstagingemail-safety

### Embed Badge

![Health badge](/badges/nariyanto-wp-safe-staging-guard/health.svg)

```
[![Health](https://phpackages.com/badges/nariyanto-wp-safe-staging-guard/health.svg)](https://phpackages.com/packages/nariyanto-wp-safe-staging-guard)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k463.8k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

375469.2k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[stevegrunwell/one-time-callbacks

Enable WordPress actions and filter callbacks to be called exactly once.

6847.4k](/packages/stevegrunwell-one-time-callbacks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
