This plugin follows WordPress Coding Standards and uses PHP CodeSniffer (PHPCS) for code quality checks.
Install development dependencies using Composer:
composer installCheck code compliance:
composer run lintor
vendor/bin/phpcsMany coding standards issues can be automatically fixed:
composer run formator
vendor/bin/phpcbfThe coding standards configuration is in phpcs.xml.dist. It includes:
- WordPress Core standards
- WordPress Extra standards (extended ruleset)
- WordPress Documentation standards
- PHP Compatibility checks (PHP 7.0+)
- Custom rules for the plugin
✅ 0 Errors
current_time() usage)
The warnings are acceptable as they relate to WordPress-specific timestamp handling that works correctly in the plugin context.
- Make your changes
- Run
composer run lintto check for issues - Run
composer run formatto auto-fix what can be fixed - Fix remaining issues manually if needed
- Commit your changes
log-http-requests/
├── assets/
│ ├── css/
│ │ └── admin.css
│ └── js/
│ └── admin.js
├── includes/
│ ├── class-main.php # Main plugin class
│ ├── class-query.php # Database queries
│ └── class-upgrade.php # Database upgrades
├── templates/
│ └── page-settings.php # Admin page template
├── log-http-requests.php # Plugin bootstrap file
├── composer.json # Composer configuration
├── phpcs.xml.dist # PHPCS configuration
└── readme.txt # WordPress.org readme
- PHP: 7.0 or higher
- WordPress: 5.0 or higher
- Composer: For development dependencies
When contributing to this plugin:
- Ensure your code passes PHPCS checks
- Follow WordPress Coding Standards
- Add PHPDoc blocks for all functions and classes
- Test your changes thoroughly
- Update documentation as needed