Thank you for your interest in contributing to WebDecoy! This guide covers setup, coding standards, and the pull request process.
- A local WordPress installation (5.6+) with PHP 7.4 or higher.
- WooCommerce installed if working on payment protection features.
- Clone or symlink this plugin into
wp-content/plugins/webdecoy/. - Install dev dependencies:
composer installThis project follows the WordPress Coding Standards. All PHP files are checked automatically by PHPCS.
Run the linter:
vendor/bin/phpcsAuto-fix what can be fixed:
vendor/bin/phpcbfPHPStan is configured at level 5. Run it with:
vendor/bin/phpstan analyseThe plugin supports PHP 7.4 and above. Check compatibility with:
vendor/bin/phpcs --standard=PHPCompatibilityWP --runtime-set testVersion 7.4- .- Fork the repository and create a feature branch from
main. - Make your changes, keeping commits focused and well-described.
- Ensure all checks pass: PHPCS, PHPStan, and PHP compatibility.
- Open a pull request against
mainwith a clear description of the change.
Before submitting, manually verify:
- Plugin activates and deactivates without errors.
- Settings page loads and saves correctly.
- Detections page displays data properly.
- Dashboard widget renders without errors.
- No PHP notices, warnings, or errors in the debug log.
- If WooCommerce-related: checkout and order flow work normally.
Open an issue with:
- WordPress and PHP versions.
- Steps to reproduce.
- Expected vs. actual behavior.
- Any relevant error log output.