Project Overview
Optivest’s MedXpert required a dynamic, customer-facing price calculator that could deliver real-time medical aid plan costs without compromising security or performance. We built a standalone React SPA, packaged as a WordPress plugin, providing instant, API-driven price calculations embedded via shortcode.
Scale & Performance
The calculator responds instantly to user inputs, pulling live data from secure APIs and dynamically rendering options. Its architecture ensures that no full-page reloads occur, delivering a smooth user experience across devices. Optimized for clarity and responsiveness, the tool performs consistently regardless of theme or WordPress updates.
Key Features
User Experience
- Standalone SPA for fluid interactions with zero reloads.
- Mobile-friendly interface optimized for accessibility and clarity.
- Inline dynamic updates as pricing and options load from APIs.
Security & Data Handling
- Token-based authentication for auto-loading user data.
- Secure REST API integration for real-time plan pricing.
- Scoped request handling to protect backend systems.
Administration & Extensibility
- Plugin-based install with shortcode deployment.
- Non-intrusive integration with any WordPress theme.
- Easily extendable to support future pricing logic or plan expansions.
Technology & Architecture
- Frontend: React SPA with Tailwind CSS for responsive UI.
- Backend Integration: WordPress PHP + REST API for dynamic data exchange.
- Security: Access token authentication for personalized data pre-fill.
- Deployment: Packaged as a WordPress plugin, embeddable with shortcode.
- Data Layer: MySQL-backed WordPress environment managing persistence and API bridge.
Process & Delivery
- Requirements Discovery: Defined pricing logic, API endpoints, and token-based security.
- SPA Development: Built a decoupled React application for performance and clarity.
- Plugin Integration: Wrapped the SPA into a custom WordPress plugin for easy deployment.
- API Integration: Connected to secured endpoints to retrieve dynamic pricing and user data.
- Testing & Deployment: Validated across devices and delivered plugin for WordPress rollout.
Outcomes & Impact
- Customer Transparency: Users receive instant, accurate price calculations.
- Operational Efficiency: Automatic data pre-fill reduced friction and manual errors.
- Conversion Lift: Improved confidence in plan selection increased lead quality.
- Future-Proofing: Independent plugin ensures scalability for new plans and pricing updates.
Notable Controls & Edge Cases
- Token Expiry Handling: Graceful fallback when tokens expire, prompting re-authentication.
- Dynamic Fields: Conditional rendering of fields based on API responses.
- Fail States: Clear messaging for API timeouts, errors, or missing data.
- Isolation: The plugin remains unaffected by WordPress core/theme changes.