Contributing to WebDecoy
March 1, 2026 ยท View on GitHub
Thank you for your interest in contributing to WebDecoy! This guide covers setup, coding standards, and the pull request process.
Development Environment
- 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 install
Code Style
This project follows the WordPress Coding Standards. All PHP files are checked automatically by PHPCS.
Run the linter:
vendor/bin/phpcs
Auto-fix what can be fixed:
vendor/bin/phpcbf
Static Analysis
PHPStan is configured at level 5. Run it with:
vendor/bin/phpstan analyse
PHP Compatibility
The plugin supports PHP 7.4 and above. Check compatibility with:
vendor/bin/phpcs --standard=PHPCompatibilityWP --runtime-set testVersion 7.4- .
Submitting a Pull Request
- 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.
Testing Checklist
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.
Reporting Issues
Open an issue with:
- WordPress and PHP versions.
- Steps to reproduce.
- Expected vs. actual behavior.
- Any relevant error log output.