Smart Dependency Gurdian
Prevents site crashes by managing plugin dependencies intelligently
by Subrata Sarkar · github.com/emfluenceindia/smart-dependency-gurdian
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/emfluenceindia/smart-dependency-gurdian/archive/refs/heads/main.zip
Smart Dependency Guardian
Prevent site crashes by managing plugin dependencies intelligently. Smart Dependency Guardian ensures required plugins and environment specs are active before your code runs, eliminating the "White Screen of Death" (WSOD).
📖 Description
Smart Dependency Guardian is a lightweight, developer-focused utility for the WordPress ecosystem. If your plugin relies on heavyweights like WooCommerce, ACF, or Elementor, this tool acts as a safety gate.
If requirements aren't met, the plugin gracefully halts execution and provides the administrator with clear, actionable feedback via the WordPress dashboard.
✨ Key Features
-
✅ Automatic Detection: Instantly scans for active plugins and minimum PHP versions.
-
🛡️ Graceful Degradation: Stops fatal errors by preventing code execution on incompatible environments.
-
🔔 Smart Admin Notices: Non-intrusive, dismissible alerts that tell users exactly what to install or update.
-
🪝 Developer First: Extensible via filters and hooks for custom dependency logic.
🚀 Installation
Using Git
cd wp-content/plugins
git clone https://github.com/your-username/smart-dependency-guard.git
Manual
-
Download the latest release .zip.
-
Upload the smart-dependency-guard folder to your /wp-content/plugins/ directory.
-
Activate the plugin through the Plugins menu in WordPress.
❓ FAQ
Q: Does this plugin work with WooCommerce? A: Yes! It is perfect for WooCommerce extensions to ensure the core shop is active before running custom checkout logic.
Q: Can I check for specific PHP versions? A: Absolutely. You can define a minimum PHP version to prevent syntax errors (like trailing commas in calls) from crashing older servers.
📜 Changelog
1.0.0 Initial release.
Core dependency checking engine.
Admin notice system.
🛡️ License
Distributed under the GPLv2 or later. See LICENSE.txt for more information.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.