Medical Pharm — Enterprise WordPress & WooCommerce Platform
Custom WordPress 6.x & WooCommerce HPOS platform built with Vite, Tailwind CSS, and Alpine.js. Delivered a +2566% organic traffic increase in 8 months, high eCommerce conversion rates, and super fast performance worldwide with sub-second TTFB on shared hosting. Engineered with 7 dedicated micro-plugins: B2B checkout with real-time ISO 7064 MOD 11-10 PIB and Modul 11 MB checksum validation, automated NBS IPS QR instant payments & Obrazac br. 1 generation, PostExpress 3x3 label logistics, O(1) bad-debt blacklist hash tables, ERP CSV export, and pure-PHP zero-bloat procurement PDF generation.

Overcoming production bottlenecks and scalability constraints.
B2B raw material commerce in Serbia demands rigorous regulatory compliance: strict PIB (ISO 7064 MOD 11-10) and Matični Broj (Modul 11) validation, NBS IPS QR generation, PostExpress 3x3 logistics labels, and domestic ERP code mapping. Off-the-shelf WordPress setups rely on dozens of bloated plugins and page builders, overloading shared hosting with uncached AJAX cart fragments, slow TTFB (>3.5s), and frequent package delivery refusal losses without early warning.
Engineered with disciplined primitives and modern runtimes.
Engineered a decoupled, zero-bloat classic theme using Vite, Tailwind CSS, and Alpine.js paired with 7 custom micro-plugins. Implemented O(1) in-memory Transients hash maps for instant anti-fraud order flagging, pure-PHP procurement PDF generation consuming <4MB RAM, WooCommerce cart fragments dequeuing saving 10k+ uncached requests/hour, deterministic 301 migration engine for 522 legacy URLs, and complete Generative Engine Optimization (GEO) with Schema.org entity graphs.
Decisions made for durability, zero lock-in, and throughput.
Zero-Bloat "Phyto-Pharma Precision" Theme & Alpine.js Stores
Pure presentation layer built with Vite 5, Tailwind CSS, and reactive Alpine.js stores (cart, wishlist, auth, ui, toast) with WCAG 2.1 AAA color contrast (9.33:1 to 17.14:1) and zero external UI library dependencies.
B2B Checkout & NBS IPS QR 3-in-1 Instant Payment Hub
Dual customer segmentation (Retail vs Corporate) with ISO 7064 MOD 11-10 PIB and Modul 11 MB checksum algorithms, combined with official National Bank of Serbia IPS QR API integration and interactive Obrazac br. 1 payment slip.
O(1) Anti-Fraud Transients Blacklist & Loss Prevention
Four parallel in-memory hash maps cached in WordPress Transients (normalized phones, emails, name/city transliterations, address MD5 hashes) detecting delivery refusal risks instantly during checkout with zero MySQL table scans.
Automated PostExpress 3x3 Logistics & COD Calculation
High-precision 285mm print stylesheet generating 9 shipping labels per A4 page in an exact 3x3 grid, automatically differentiating COD (OTKUP) calculations from prepaid orders with automated courier dispatch notifications.
Domestic ERP Accounting Aggregator & SKU Collision Diagnostics
Maps WooCommerce orders to official Serbian enterprise accounting codes (sif_artm) via a 1,081-item dictionary with UTF-8 BOM CSV export for Pantheon/Wings/Saop, paired with a two-pass linear catalog collision detection engine.
Deep Performance Engineering & Cart Fragments Optimization
Dequeues uncached wc-cart-fragments AJAX requests for empty carts (saving 10,000+ PHP hits/hour), throttles WordPress Heartbeat to 60s, configures 1-year browser asset caching, and achieves sub-second TTFB on shared hosting.
Complete Generative Engine Optimization (GEO) & 522-URL Deterministic 301 Engine
Enriched Schema.org Product, Brand, CoA, and MSDS entity graphs with dynamic /llms.txt endpoints for Perplexity and ChatGPT Search, backed by a two-layer migration engine ensuring zero 404s and 100% link equity retention.
Multi-tier request topology & subsystem isolation.
High-throughput classic WordPress 6.x theme paired with 7 custom micro-plugins, O(1) in-memory Transients hash tables, and pure-PHP zero-bloat PDF generation.
[ Client Layer: Desktop & Mobile Browsers | AI Search Crawlers: Perplexity, Claude, GPT ]
│
▼
[ Edge & CDN: Cloudflare Anycast (<10ms DNS, Full Strict SSL) ]
(Brotli Compression, Early Hints, HTTP_CF_CONNECTING_IP Header)
│
▼
[ Web Server: Apache / LiteSpeed (.htaccess Security & Cache) ]
├── Deterministic 301 Engine: 522 Legacy URLs (100% Equity Retention)
├── XML-RPC & Framework Scanner Hardening (xmlrpc.php blocked)
├── 1-Year Static Asset Cache TTL (WebP, JPEG, PNG, SVG, WOFF2)
└── Bypass Rules for Transactional Paths (/korpa/, /placanje/, /moj-nalog/)
│
▼
[ Application Runtime: WordPress 6.x Classic + WooCommerce HPOS (PHP 8.2) ]
├── [ medical-pharm-theme ] ──────── Vite 5 + Tailwind CSS + Alpine.js Reactive Stores
│ (wc-cart-fragments dequeued for empty carts: 10k+ req/hr saved)
├── [ medical-pharm-features ] ───── Core Business Engine:
│ • B2B Checkout: ISO 7064 MOD 11-10 PIB & Modul 11 MB Checksums
│ • NBS IPS QR 3-in-1 Payment Hub & Obrazac br. 1 Generator
│ • Hybrid Wishlist REST API + Pure-PHP Zero-Bloat PDF (<4MB RAM)
│ • Schema.org JSON-LD (Product, CoA, MSDS) & Dynamic /llms.txt
├── [ medical-pharm-posta-otpremnice ] PostExpress 3x3 Grid Shipping Slips (9 Labels/A4) & COD Logic
├── [ medical-pharm-odbijeni-paketi ] Loss Prevention Blacklist: O(1) In-Memory Transients Hash Maps
├── [ medical-pharm-knjigovodstvo-export ] ERP Sales Aggregator (SIF ARTM UTF-8 BOM CSV Export)
├── [ medical-pharm-sku-tester ] ──── Two-Pass Linear SKU Collision Diagnostics (1,000+ Items)
└── [ medical-pharm-floating-phone ] WCAG 2.1 AAA Anti-Collision Floating Contact Widget
│
┌────────────────────────────┴────────────────────────────┐
▼ ▼
[ MySQL 5.7+ / MariaDB 10.4+ Storage ] [ External Enterprise Integrations ]
• HPOS wp_wc_orders Data Layer • Official National Bank of Serbia IPS QR API
• Custom Indexed Table: mp_refusal_blacklist • PostExpress Courier Logistics Network
• Transients: 4 Parallel In-Memory Hash Maps • Domestic ERP Systems (Pantheon, Saop, Wings)
• LocalStorage: Client Wishlist & Mini-Cart7 Dedicated micro-plugins & classic theme architecture.
| Package | Architectural Role | Key Capabilities & Algorithms | Impact / Compliance |
|---|---|---|---|
| 1. medical-pharm-theme | Presentation Layer (Vite + Tailwind + Alpine.js) | Dequeues uncached cart fragments, mobile-first 2-col catalog, Slavic noun declension (mp_serbian_plural), 0 external UI dependencies. | 10k+ PHP Hits Saved/hr |
| 2. medical-pharm-features | Core Domain Logic & B2B Engine | ISO 7064 MOD 11-10 PIB checks, Modul 11 MB validation, NBS IPS QR API integration, pure-PHP PDF procurement specs, dynamic /llms.txt endpoint. | Serbian Tax & NBS Law |
| 3. medical-pharm-posta-otpremnice | Logistics & Courier Slip Automation | Exact 3x3 grid (9 labels/A4) constrained by 285mm print CSS; smart COD (OTKUP) vs prepaid 0 RSD branching; automated courier dispatch emails. | PostExpress Standard |
| 4. medical-pharm-odbijeni-paketi | Bad-Debt & Loss Prevention Engine | O(1) in-memory Transients hash maps matching phones, emails, name/city transliterations, and address MD5 hashes with silent warehouse alerts. | Zero MySQL Lockup |
| 5. medical-pharm-knjigovodstvo-export | ERP Accounting CSV Sales Aggregator | Aggregates completed sales minus refunds, maps to 1,081-item dictionary (sif_artm), exports UTF-8 BOM CSV for Pantheon/Wings/Saop. | Domestic ERP Sync |
| 6. medical-pharm-sku-tester | Catalog & SKU Collision Diagnostics | Two-pass linear algorithm testing 1,000+ items against accounting codes, distinguishing true collisions from shared category variants; real-time health score. | O(N) Linear Audit |
| 7. medical-pharm-floating-phone | High-Contrast Call & Support Widget | WCAG 2.1 AAA color contrast (9.33:1 to 17.14:1), anti-collision layout algorithm preventing overlap with bug reporting pills down to 320px screens. | WCAG 2.1 AAA |
Deterministic compliance & DSA optimizations.
ISO 7064 MOD 11-10 (PIB)
Mathematical iterative remainder algorithm validating Serbian 9-digit Tax IDs. Completely rejects fabricated company registrations before checkout submission.
Multi-Index Hash Tables
4 parallel in-memory hash maps cached in Transients (phone, email, transliterated name/city, address MD5). Detects delivery refusal records instantly without slow SQL LIKE scans.
Pure-PHP Vector PDF Engine
Generates printable A4 raw material procurement sheets on the fly using native PHP streams, eliminating 50MB+ bloated PDF dependencies (Dompdf/mPDF) on shared hosting.
Production interfaces & workflow engine.
Direct high-resolution captures across the flagship storefront, botanical catalog, variable PDPs, reactive procurement wishlist, and B2B checkout.
Storefront & B2B E-Commerce Homepage
High-converting Phyto-Pharma Precision landing page featuring botanical catalog categories, hero raw material highlights, institutional certifications, and dynamic cart integration.
Measured by results.
Delivered a verified +2566% increase in organic traffic within 8 months, category dominance across Serbian botanical search, high eCommerce conversion rates, and super fast performance worldwide. Sub-second TTFB was sustained globally on cost-effective shared hosting while eliminating 10,000+ uncached PHP executions per hour via cart fragments dequeuing, automating NBS IPS QR instant payments, generating 3x3 PostExpress logistics slips, and maintaining 100% data integrity with domestic ERP accounting software.