Releases: Druckermeister/codguard-for-woocommerce
Release list
v2.2.7 - Feedback Reporting System
What's New in v2.2.7
Added
- Feedback Reporting System: Real-time analytics feedback to CodGuard API
- Automatically sends feedback after each reputation check
- Reports both blocked and allowed COD payment attempts
- Includes customer email, reputation score, threshold, and action taken
- Enables dashboard analytics and aggregated statistics
- Non-blocking: failures don't affect checkout process
- Uses existing API key authentication
Technical Details
- Added send_feedback() method to checkout validator
- Feedback sent to https://api.codguard.com/api/feedback
- 5-second timeout to avoid checkout delays
- Comprehensive error logging for debugging
- Email masking handled server-side for privacy
Installation
- Download codguard-2.2.7.zip
- Go to WordPress Admin > Plugins > Add New > Upload Plugin
- Upload the zip file and activate
- Configure under WooCommerce > Settings > CodGuard
Upgrade from 2.2.6
If you have auto-updates enabled from GitHub, the plugin will update automatically. Otherwise, deactivate the old version, delete it, and install this version.
Full Changelog
See CHANGELOG.md for complete version history.
v2.2.6 - Admin Panel Improvements and COD Block Statistics
What's New in v2.2.6
🎨 Admin Panel Improvements
Custom Order Status Creation
- Restored the missing UI to create custom order statuses directly from the Order Status Mapping section
- Simple input field and button to create new statuses on-the-fly
- AJAX-powered creation with instant updates to status dropdowns
- No more need to use external plugins for custom statuses!
Updated Descriptions
- Clearer, more intuitive descriptions for order status mappings:
- Successful status: "Orders with this status will be allowed for future COD payments"
- Refused status: "Orders with this status will be blocked for future COD payments"
Simplified Settings
- Removed the Notification Email field from Rating Settings for a cleaner interface
📊 COD Block Statistics Dashboard
Real-time Analytics
Track how often customers are blocked from using cash-on-delivery payment:
-
4 Time Period Counters:
- Today
- Last 7 Days
- Last 30 Days
- All Time
-
Recent Blocks Table:
- Shows last 10 blocked attempts
- Displays timestamp, customer email, and rating
- Helps identify patterns and problem customers
-
Automatic Data Management:
- Block events tracked automatically during checkout
- 90-day data retention policy
- No performance impact on checkout process
🔧 Technical Details
- Block events stored in
codguard_block_eventsWordPress option - Statistics calculated dynamically on settings page load
- Code passes PHPStan level 5 static analysis
- PSR-12 coding standards compliance (WordPress conventions)
- Zero errors in code quality checks
📦 Installation
- Download
codguard-2.2.6.zip - Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Upload the zip file and activate
- Configure your settings under WooCommerce → CodGuard
🔄 Upgrading from v2.2.5
This is a feature release with no breaking changes. Simply install and activate - all your settings will be preserved.
Full Changelog: v2.2.5...v2.2.6
v2.2.5 - PSR-12 Code Quality Improvements
Release v2.2.5 - PSR-12 Code Quality Improvements
Changed
- Code Quality Improvements: Applied PSR-12 coding standards
- Automatic formatting fixes using PHP CodeSniffer (PHPCBF)
- Improved code readability and consistency
- Fixed opening brace placements for functions and closures
- Removed trailing whitespace
- Added proper spacing between code blocks
- No functional changes - purely formatting improvements
Technical Details
- 104 automatic PSR-12 fixes across 9 PHP files
- All changes verified to maintain backward compatibility
- Code quality improvements to facilitate future maintenance
Files Modified
codguard.phpincludes/class-order-sync.phpincludes/class-settings-manager.phpincludes/class-checkout-validator.phpincludes/admin/class-admin-settings.phpincludes/functions.phpincludes/admin/views/settings-page.phpincludes/admin/views/settings-page-sync-section.phplanguages/index.php
Installation
Download codguard-2.2.5.zip and upload to your WordPress site via the Plugins → Add New → Upload Plugin interface.
🤖 Generated with Claude Code
Fixed PHPStan-related syntaxes
-
All PHPStan level 5 checks pass with zero errors
-
Comprehensive logging for checkout validation debugging
-
Code quality improvements
-
Removed non-existent schedule_sync() method call
-
Removed unused static property
-
Fixed WooCommerce payment gateways access pattern
-
Enhanced API debugging with detailed logging
-
Added PHPStan configuration for ongoing code quality checks
Version 2.2.0
What's New
Automatic Real-time Sync
- Orders are automatically queued when their status changes to your configured statuses
- Multiple orders are bundled together and sent in a single API request after 1 hour
- No manual configuration needed - works automatically on every site
- No dependency on site traffic or cron jobs
Simplified Administration
- Removed manual sync button
- Removed sync status section from admin panel
- Cleaner, simpler settings interface
Better Efficiency
- Bundled API requests reduce server load
- Near real-time sync
- Automatic retry on failure
Technical Changes
- Migrated from wp_schedule_event() daily cron to woocommerce_order_status_changed hooks
- Implemented transient-based queue system for order bundling
- Added 1-hour delay via wp_schedule_single_event() for efficient batching
- Automatic cleanup of old sync-related options on upgrade
- Removed 366 lines of legacy code
Release v2.1.10 - Final Repository Rename
Version 2.1.9
Comply with plugin checker requirements (no hidden files)
Version 2.1.8
Repository Rename: Repository and folder name changed to all lowercase
Release v2.1.7 - WordPress.org submission ready
Satisfying WordPress Plugin Repository Requirements
Version 2.1.5
The fix maintains the same functionality for custom order statuses while complying with WordPress plugin checker requirements