Daftaryar · WooCommerce Finance OS
Turnkey Persian WooCommerce accounting, tax invoicing, HMAC guest receipts, and Sepidar ERP bridge engineered to 15,501 unit assertions.
01 — The Operational Problem & Stakes
Iranian WooCommerce store owners struggle with fragile accounting plugins that break on modern WooCommerce Checkout Blocks, leak unauthenticated guest invoices, or lock essential Sepidar ERP sync behind confusing fragmented add-ons.
Auditing the Iranian WordPress marketplace (thousands of products across RTL-Theme and Zhaket) revealed a massive quality gap: plugins rarely ship automated test suites, one-click demo data, or native block-checkout compatibility.
02 — System Architecture & Execution
Daftaryar (`daftaryar-1.0.0-rtltheme-ready.zip`, built inside Hamid’s 28-plugin monorepo architecture) delivers all 10 accounting and fulfillment modules unlocked in one clean package: a 5-step RTL setup wizard, native WooCommerce Checkout Blocks integration, HMAC-signed guest PDF invoice downloads, Post/Tipax shipment tracking, 4 Elementor widgets, 1-click demo data import, JSON backup/restore, and a deterministic Sepidar accounting adapter.
Before packaging, Daftaryar passed 2,645 unit tests (15,501 assertions), full end-to-end verification on live WordPress + WooCommerce (`0` entries in `debug.log`), and 397/397 LDD release gate checks.
03 — Interactive Subsystem Topology (Click Any Node)
WooCommerce Classic & Blocks Hook
Captures Iranian legal buyer fields (National ID, Economic Code, Postal Code) seamlessly across both classic and React block checkouts.
04 — Key Engineering Decisions & Trade-Offs
15,501 Automated Assertions in an Ecosystem Used to Zero
Accounting bugs cost merchants real money and tax penalties; treating a WordPress plugin like banking software with 2,645 unit tests guarantees deterministic rounding, VAT, and refund math.
Marketplace Compliance Hygiene (Zero External Callbacks)
Stripped all external telemetry, Pro upsell nags, and third-party asset dependencies so the single-zip release passes strict code review cleanly.
HMAC Guest Links Instead of Sequential Order IDs
Cryptographically signed URLs ensure a customer can print their invoice from SMS/WhatsApp without exposing sequential order numbers.
Shared "Yaar" Plugin Family Architecture
Engineered inside a 28-spec monorepo blueprint with clean namespace isolation so multiple plugins coexist with zero hook/class collisions.
05 — Verified Build, Test & Runtime Proof
$ vendor/bin/phpunit (daftaryar-1.0-rtltheme-release @ d657346)
OK (2,645 tests, 15,501 assertions · 0 failures · 0 risky)
✓ E2E WordPress + WooCommerce Checkout Blocks: PASS | wp-content/debug.log: 0 lines
✓ LDD Release Gate: 397/397 assertions PASS -> dist/daftaryar-1.0.0-rtltheme-ready.zip (local build artifact, Nov 2026)