WordPress plugin intelligence profile

Switcheroo

Easily manage feature flags to control the availability of features on your WordPress site without deploying new code.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.7
Current version1.0.2
WordPress coverageTested up to WordPress 6.7
Minimum stackWP 5.0 · PHP 8.0
Directory statusactive
Last directory update12 Mar 20251y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Switcheroo version 1.0.2 as active, updated 1y ago and tested up to WordPress 6.7.

Overview

About this plugin

Feature flags are a powerful tool for controlling the availability of features on your site. By enabling or disabling flags, you can control what is active on your site without needing to deploy new code.

json file located in the root of your project.

Each feature has:

  • Unique ID: An identifier for the feature.
  • Title: A human-readable name.
  • Description: Explains the feature’s purpose.
  • Status: Indicates whether the feature is active, experimental, deprecated, etc.
  • Link: An optional link to further information.

You can toggle each feature within the Switcheroo Settings in the WP Admin (Settings -> Switcheroo).

Usage

Managing Feature Flags in Code

You can wrap your feature-specific code in a conditional statement to check if a flag is enabled.

For example, use the switcheroo_flag_status('my_feature') function to determine whether a feature is active and include its logic conditionally.

Suggested Feature Flag Statuses

Each feature flag can be assigned a status, allowing for better organisation and understanding of the feature’s state:

  • Draft: The feature is still in development and not ready for use.
  • Experimental: The feature is available for testing but may have known issues.
  • Active: The feature is live and functional on the site.
  • Deprecated: The feature is being phased out and may be removed in the future.
  • Breaking: The feature introduces significant changes; enabling or disabling it may cause issues.
  • Archived: The feature has been permanently removed or is no longer supported.
  • High-Risk: The feature introduces significant changes or is under scrutiny for potential issues.

Command Line Management

You can also manage your feature flags via the command line using WP-CLI. The wp switcheroo command allows you to view and modify feature flags.

Examples:

– wp switcheroo: List all flags and their statuses.

– wp switcheroo my_feature: Check the status of the my_feature flag.

– wp switcheroo my_feature on: Enable the my_feature flag.

– wp switcheroo my_feature off: Disable the my_feature flag.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • feature flags
  • site management
  • development
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.7
Minimum requirementsWordPress 5.0 · PHP 8.0
Update activity12 Mar 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.