TaxDebug for WooCommerce

توضیحات

TaxDebug for WooCommerce helps store owners debug, understand, trust, and report their taxes – especially when using WooCommerce Tax (automated taxes) or other tax calculation services.

Key Features

Deep Tax Visibility
* See exactly how taxes were calculated for every order
* View applied tax rates, line-item breakdowns, and calculation formulas
* Understand which service/plugin produced each tax amount (WooCommerce Core, WooCommerce Tax, TaxJar, Avalara)

Issue Detection Engine
* Automatically detect common tax problems:
* No tax collected where expected
* Tax charged in non-taxable regions
* Rate mismatches vs reference rates
* Missing local (county/city) taxes
* Tax changes between cart and checkout
* Suspected API errors

Beautiful Dashboard & Reports
* Modern, responsive admin interface
* Interactive charts showing tax by state, country, and over time
* KPI cards for total tax, taxable sales, and effective rates
* Powerful filtering by date, country, state, tax source, and more

Order Explorer
* Search and filter all orders with tax data
* View detailed tax debug information for any order
* Identify orders with detected issues quickly

Accountant-Friendly Exports
* Export summary reports by country/state
* Export detailed order-level tax breakdowns
* Export detected issues for review
* CSV format compatible with Excel and accounting software

Safe & Non-Intrusive
* Does NOT modify how taxes are calculated
* Only observes, logs, and analyzes tax data
* Works with any tax calculation method

Feedback & Analytics
* In-app feedback widget to report false positives/negatives
* Feature request and success story submissions
* Privacy-first usage analytics (all data stored locally)
* Deactivation survey to help improve TaxDebug
* All feedback stored locally – no external tracking

Compatibility

TaxDebug works with:
* WooCommerce Core tax rates
* WooCommerce Tax (automated taxes via TaxJar)
* TaxJar plugin
* Avalara AvaTax
* Other tax plugins

Requirements

  • WordPress 5.8 or higher
  • WooCommerce 5.0 or higher
  • PHP 7.4 or higher

Privacy

TaxDebug stores order tax data locally in your WordPress database. This includes:
* Order IDs and dates
* Customer billing/shipping addresses (country, state, city, postcode only)
* Order totals and tax amounts
* Tax calculation details

TaxDebug does NOT:
* Store payment information
* Store full customer names or personal details beyond address location

Data retention can be configured in Settings. You can also manually clear all logs at any time.

Feedback Collection

TaxDebug collects optional feedback to improve the plugin:

  • In-app feedback: Report false positives, false negatives, feature requests, or success stories
  • Usage analytics: Anonymous local tracking of which features are used
  • Deactivation survey: Optional one-question survey when deactivating

Local Storage: All feedback is always stored locally in your WordPress database.

Optional Remote Sending: You can opt-in to send anonymous feedback to the developer to help improve TaxDebug. This is disabled by default and must be explicitly enabled in Settings.

What IS Sent (When Opted-In)

  • Anonymous store UUID (random identifier, NOT your domain)
  • Feedback type and message
  • Your email (only if you voluntarily provide it)
  • Store country and currency
  • Active tax plugin (e.g., TaxJar, Avalara)
  • Plugin, WordPress, and WooCommerce versions
  • Daily aggregated counts: orders logged, issues detected, features used

What is NEVER Sent

  • Your site URL or domain name
  • Customer names, emails, or addresses
  • Order details, totals, or line items
  • Tax amounts or financial data
  • Any personally identifiable information (PII)

How to Disable Remote Sending

Go to WooCommerce TaxDebug Settings and turn off “Send Anonymous Feedback”. You can do this at any time. Local feedback storage will continue to work.

Developer Notes

Hooks & Filters

TaxDebug provides several hooks for extensibility:

Actions:
* taxdebug_loaded – Fired when TaxDebug is fully loaded
* taxdebug_order_logged – Fired when an order is logged (params: log_id, order_id, payload)
* taxdebug_installed – Fired on plugin installation
* taxdebug_logs_cleaned_up – Fired when old logs are cleaned up

Filters:
* taxdebug_order_payload – Filter the order payload before logging
* taxdebug_detected_issues – Add custom issue detection rules

REST API Endpoints

TaxDebug provides a REST API under the taxdebug/v1 namespace:

  • GET /logs – Get tax logs with filtering
  • GET /logs/{id} – Get single log
  • GET /logs/order/{order_id} – Get log by order ID
  • POST /logs/reanalyze/{order_id} – Re-analyze an order
  • GET /issues – Get detected issues
  • GET /stats/dashboard – Get dashboard statistics
  • GET /stats/chart/time – Get time series chart data
  • GET /stats/chart/state – Get tax by state data
  • GET /stats/chart/country – Get tax by country data
  • GET /export/summary – Export summary CSV
  • GET /export/detailed – Export detailed CSV
  • GET /export/issues – Export issues CSV

All endpoints require manage_woocommerce capability.

Database Tables

TaxDebug creates two custom tables:

  • {prefix}taxdebug_logs – Stores order tax log data
  • {prefix}taxdebug_issues – Stores detected issues
  • {prefix}taxdebug_feedback – Stores user feedback submissions
  • {prefix}taxdebug_analytics – Stores usage analytics
  • {prefix}taxdebug_error_logs – Stores internal error logs

WP-CLI Commands

(Coming in future versions)

نصب

  1. Upload the taxdebug-for-woocommerce folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to WooCommerce TaxDebug to access the dashboard
  4. (Optional) Go to Settings to configure logging and retention options
  5. (Optional) Use “Create Sample Data” in Settings to generate test orders

Quick Start

  1. After activation, TaxDebug will automatically log tax data for new orders
  2. Visit WooCommerce TaxDebug to see the dashboard
  3. Use Order Explorer to search and filter orders
  4. Click on any order to see detailed tax debug information
  5. Use the Settings page to analyze existing orders or create sample data

سوالات متداول

Does TaxDebug change how my taxes are calculated?

No. TaxDebug is completely non-intrusive. It only observes and logs tax calculation data – it never modifies tax amounts or rates.

What data does TaxDebug store?

TaxDebug stores:
* Order IDs and dates
* Customer shipping/billing addresses (country, state, city, postcode)
* Order totals and tax amounts
* Applied tax rates and calculation details

TaxDebug does NOT store payment information or sensitive personal data.

Does TaxDebug send data to external servers?

Yes. TaxDebug uses a cloud-based analysis service (api.taxdebug.com) to provide intelligent tax issue detection. This service:
* Receives order tax data (amounts, rates, locations) for analysis
* Returns detected issues (e.g., rate mismatches, missing taxes)
* Does NOT store personally identifiable customer information
* Does NOT require an account or API key

All other data (logs, settings, feedback) is stored locally in your WordPress database. For privacy details, see our Privacy Policy.

How long is data retained?

By default, data is retained for 12 months. You can configure this in Settings (3, 6, 12, or 24 months, or forever).

Can I analyze orders that were created before installing TaxDebug?

Yes! Go to Settings and use the “Analyze Past Orders” tool to process existing orders.

What are “reference rate checks”?

TaxDebug includes approximate tax rate data for US states, Canadian provinces, and EU countries. It compares your effective tax rates against these references to detect potential mismatches. This can be disabled in Settings.

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“TaxDebug for WooCommerce” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “TaxDebug for WooCommerce” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات

1.1.0

  • NEW: In-app feedback widget on all TaxDebug screens
  • NEW: Feedback admin page (WooCommerce TaxDebug Feedback)
  • NEW: Report false positives and false negatives
  • NEW: Submit feature requests and success stories
  • NEW: Privacy-first usage analytics (local storage)
  • NEW: Optional remote feedback sending to developer (opt-in, disabled by default)
  • NEW: Deactivation exit survey
  • NEW: Internal error logging for debugging
  • NEW: CSV export for feedback data
  • Added opt-in/opt-out for local analytics in Settings
  • Added opt-in for anonymous remote feedback sending (off by default)
  • Clear documentation of what data is/isn’t sent remotely

1.0.0

  • Initial release
  • Dashboard with KPIs and charts
  • Order Explorer with search and filtering
  • Detailed Order Debug View
  • Issue Detection Engine with 7 detection rules
  • CSV exports (summary, detailed, issues)
  • Sample data generator for testing
  • Support for WooCommerce Core, WooCommerce Tax, TaxJar, and Avalara