Skip to content

Releases: Druckermeister/codguard-for-woocommerce

v2.2.7 - Feedback Reporting System

Choose a tag to compare

@Druckermeister Druckermeister released this 02 Jan 14:06

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

  1. Download codguard-2.2.7.zip
  2. Go to WordPress Admin > Plugins > Add New > Upload Plugin
  3. Upload the zip file and activate
  4. 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

Choose a tag to compare

@Druckermeister Druckermeister released this 17 Nov 08:57

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_events WordPress 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

  1. Download codguard-2.2.6.zip
  2. Go to WordPress Admin → Plugins → Add New → Upload Plugin
  3. Upload the zip file and activate
  4. 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

Choose a tag to compare

@Druckermeister Druckermeister released this 16 Nov 13:04

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.php
  • includes/class-order-sync.php
  • includes/class-settings-manager.php
  • includes/class-checkout-validator.php
  • includes/admin/class-admin-settings.php
  • includes/functions.php
  • includes/admin/views/settings-page.php
  • includes/admin/views/settings-page-sync-section.php
  • languages/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

Choose a tag to compare

@Druckermeister Druckermeister released this 15 Nov 12:54
  • 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

Choose a tag to compare

@Druckermeister Druckermeister released this 07 Nov 13:44

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

Choose a tag to compare

@Druckermeister Druckermeister released this 06 Nov 16:23

Version 2.1.9

Choose a tag to compare

@Druckermeister Druckermeister released this 06 Nov 13:15

Comply with plugin checker requirements (no hidden files)

Version 2.1.8

Choose a tag to compare

@Druckermeister Druckermeister released this 06 Nov 10:02

Repository Rename: Repository and folder name changed to all lowercase

Release v2.1.7 - WordPress.org submission ready

Choose a tag to compare

@Druckermeister Druckermeister released this 06 Nov 09:34

Satisfying WordPress Plugin Repository Requirements

Version 2.1.5

Choose a tag to compare

@Druckermeister Druckermeister released this 06 Nov 09:15

The fix maintains the same functionality for custom order statuses while complying with WordPress plugin checker requirements