Resume Doctor AI - WordPress SaaS Plugin with Serverless Architecture
Full-stack WordPress SaaS plugin that transforms any WordPress site into an AI-powered resume optimization business. Features 30+ serverless Edge Functions, automated license management, Stripe subscription processing, and zero-maintenance operations for site owners.
Founder Web Dev Marketing
React 18 TypeScript React Router v7 TailwindCSS Vite Lucide React Supabase PostgreSQL Deno Runtime Edge Functions WordPress PHP Stripe API REST API Row-Level Security Plugin Update Checker AJAX JWT Authentication Webhook Processing PDF Generation DOCX Generation HTML to Word File Upload Processing Async Job Queue Email Queue System Audit Logging CORS Handling Rate Limiting Domain Verification
The Problem
Job seekers struggle to optimize resumes for Applicant Tracking Systems (ATS), often missing interviews because resumes don't pass automated screening. Meanwhile, WordPress site owners (career bloggers, job boards, recruitment sites) lack easy ways to monetize traffic with premium services without extensive technical expertise. The challenge required building a white-label solution that: handles complex subscription and payment processing automatically, provides professional AI-powered resume optimization, requires zero technical knowledge to deploy and operate, prevents license sharing and piracy through domain locking, scales automatically as the business grows, and generates recurring revenue through tiered pricing. Traditional solutions required expensive custom development or complicated third-party integrations that broke frequently.
The Solution
**Frontend Architecture**: Built with React 18 and TypeScript for type-safe component development, using React Router v7 for navigation, TailwindCSS for responsive modern UI, and Vite for optimized builds. Implemented drag-and-drop file upload supporting PDF, DOCX, and TXT formats up to 5MB. Created tab-based input interface with real-time validation feedback and progress indicators. Designed mobile-responsive, WCAG-compliant interface with color-coded usage warnings (red at limit, orange near limit) and pulsing upgrade prompts.
**Backend Infrastructure**: Deployed on Supabase serverless platform with 30+ Edge Functions running on Deno runtime. Built RESTful API architecture for WordPress integration with custom CORS handling for cross-domain communication. Implemented asynchronous job processing system to handle 10-30 second AI optimization tasks without HTTP timeouts - initial request creates job with ID, client polls status endpoint every 2 seconds, results retrieved when status changes to "completed".
**WordPress Plugin (PHP)**: Developed custom admin interface with shortcode system for easy page integration ([resume_doctor_form], [resume_doctor_dashboard], [resume_doctor_pricing], [resume_doctor_billing]). Implemented AJAX-based asynchronous job processing, file upload handling with validation, and Plugin Update Checker library for automatic updates bypassing WordPress.org. Built one-click update system checking plugin-update-info endpoint, displaying "Update available" in WordPress admin, with automatic download from Supabase Storage.
**License Management System**: Created domain-locked licensing preventing license sharing. Automatic license generation on Stripe subscription creation via webhooks. Email-based license delivery with recovery system for lost keys. Single activation per license with domain change support. Built comprehensive Edge Functions: generate-license (automatic generation), activate-license (domain verification), validate-license (WordPress site verification), refresh-license-status (subscription sync), reset-license-domain (domain changes), monitor-license-health (automated health checks), recover-missing-licenses (recovery system), backfill-missing-license-emails (data integrity).
**Payment Processing**: Integrated Stripe with subscription management supporting three tiers - Free (5/month), Starter ($5.99/month, 30 optimizations), Pro ($19.99/month, 150 optimizations). Built webhook handlers for real-time subscription updates (upgrades, cancellations, renewals, failed payments). Implemented automated billing portal for self-service plan changes and cancellations. Created Edge Functions: stripe-webhook (event processing), site-owner-checkout (plugin purchase), site-owner-change-plan (tier changes), site-owner-billing-portal (customer portal), import-stripe-history (historical data migration).
**AI Optimization Engine**: Custom AI prompts for resume enhancement with ATS compatibility scoring (0-100 scale). Job description matching with keyword optimization. Multi-format output generation preserving key details (dates, companies). Built document processing system generating professional PDF with line wrapping (90 chars/line) and DOCX using HTML-to-Word conversion with smart bullet point detection, header recognition, and professional typography.
**Email Automation System**: Built transactional email queue with 7 automated sequences - welcome emails for new signups, license delivery emails, checkout reminder sequences (cart abandonment), renewal reminders, plugin update notifications, onboarding followup series, admin alerts. Edge Functions: send-signup-welcome-email, send-recovery-email, send-checkout-reminder-email, send-renewal-reminder-email, send-onboarding-followup-email, send-plugin-update-notification, send-admin-alert, process-email-queue (async processing), test-email-config (SMTP validation).
**Dual Dashboard System**: Plugin Creator Dashboard for system monitoring with real-time revenue tracking, subscription metrics, churn analysis, MRR calculations, customer lifetime value tracking. Site Owner Dashboard for license and subscription management with one-click license activation, subscription sync with Stripe, usage analytics.
**Database Architecture**: PostgreSQL with 8 core tables - wordpress_subscriptions (user tracking and usage), wordpress_jobs (async optimization queue), site_owner_licenses (domain-locked licenses), site_owner_signups (pre-launch registration), email_queue (transactional emails), email_preferences (user communication), audit_logs (activity tracking), stripe_configurations (payment config). Row-Level Security (RLS) enabled on all tables with proper policies.
**Security Implementation**: Service role isolation for Edge Functions, rate limiting (50-100 req/min), domain verification for license activation, input sanitization and validation, CORS protection with WordPress-specific headers, SQL injection prevention, XSS protection. Comprehensive audit logging tracking license activation/deactivation, subscription changes, security events, IP addresses for fraud prevention.
**Edge Functions (30+ APIs)**: Core WordPress integration (wordpress-optimize, wordpress-job-status, wordpress-usage-status, wordpress-create-checkout, wordpress-billing-portal, wordpress-download), license management (8 functions), payment processing (6 functions), email system (9 functions), update system (plugin-update-info, upload-plugin), administration and analytics functions.
**Backend Infrastructure**: Deployed on Supabase serverless platform with 30+ Edge Functions running on Deno runtime. Built RESTful API architecture for WordPress integration with custom CORS handling for cross-domain communication. Implemented asynchronous job processing system to handle 10-30 second AI optimization tasks without HTTP timeouts - initial request creates job with ID, client polls status endpoint every 2 seconds, results retrieved when status changes to "completed".
**WordPress Plugin (PHP)**: Developed custom admin interface with shortcode system for easy page integration ([resume_doctor_form], [resume_doctor_dashboard], [resume_doctor_pricing], [resume_doctor_billing]). Implemented AJAX-based asynchronous job processing, file upload handling with validation, and Plugin Update Checker library for automatic updates bypassing WordPress.org. Built one-click update system checking plugin-update-info endpoint, displaying "Update available" in WordPress admin, with automatic download from Supabase Storage.
**License Management System**: Created domain-locked licensing preventing license sharing. Automatic license generation on Stripe subscription creation via webhooks. Email-based license delivery with recovery system for lost keys. Single activation per license with domain change support. Built comprehensive Edge Functions: generate-license (automatic generation), activate-license (domain verification), validate-license (WordPress site verification), refresh-license-status (subscription sync), reset-license-domain (domain changes), monitor-license-health (automated health checks), recover-missing-licenses (recovery system), backfill-missing-license-emails (data integrity).
**Payment Processing**: Integrated Stripe with subscription management supporting three tiers - Free (5/month), Starter ($5.99/month, 30 optimizations), Pro ($19.99/month, 150 optimizations). Built webhook handlers for real-time subscription updates (upgrades, cancellations, renewals, failed payments). Implemented automated billing portal for self-service plan changes and cancellations. Created Edge Functions: stripe-webhook (event processing), site-owner-checkout (plugin purchase), site-owner-change-plan (tier changes), site-owner-billing-portal (customer portal), import-stripe-history (historical data migration).
**AI Optimization Engine**: Custom AI prompts for resume enhancement with ATS compatibility scoring (0-100 scale). Job description matching with keyword optimization. Multi-format output generation preserving key details (dates, companies). Built document processing system generating professional PDF with line wrapping (90 chars/line) and DOCX using HTML-to-Word conversion with smart bullet point detection, header recognition, and professional typography.
**Email Automation System**: Built transactional email queue with 7 automated sequences - welcome emails for new signups, license delivery emails, checkout reminder sequences (cart abandonment), renewal reminders, plugin update notifications, onboarding followup series, admin alerts. Edge Functions: send-signup-welcome-email, send-recovery-email, send-checkout-reminder-email, send-renewal-reminder-email, send-onboarding-followup-email, send-plugin-update-notification, send-admin-alert, process-email-queue (async processing), test-email-config (SMTP validation).
**Dual Dashboard System**: Plugin Creator Dashboard for system monitoring with real-time revenue tracking, subscription metrics, churn analysis, MRR calculations, customer lifetime value tracking. Site Owner Dashboard for license and subscription management with one-click license activation, subscription sync with Stripe, usage analytics.
**Database Architecture**: PostgreSQL with 8 core tables - wordpress_subscriptions (user tracking and usage), wordpress_jobs (async optimization queue), site_owner_licenses (domain-locked licenses), site_owner_signups (pre-launch registration), email_queue (transactional emails), email_preferences (user communication), audit_logs (activity tracking), stripe_configurations (payment config). Row-Level Security (RLS) enabled on all tables with proper policies.
**Security Implementation**: Service role isolation for Edge Functions, rate limiting (50-100 req/min), domain verification for license activation, input sanitization and validation, CORS protection with WordPress-specific headers, SQL injection prevention, XSS protection. Comprehensive audit logging tracking license activation/deactivation, subscription changes, security events, IP addresses for fraud prevention.
**Edge Functions (30+ APIs)**: Core WordPress integration (wordpress-optimize, wordpress-job-status, wordpress-usage-status, wordpress-create-checkout, wordpress-billing-portal, wordpress-download), license management (8 functions), payment processing (6 functions), email system (9 functions), update system (plugin-update-info, upload-plugin), administration and analytics functions.
Key Highlights
- Built 30+ serverless Edge Functions on Deno runtime handling WordPress integration, licensing, payments, and email automation
- Developed custom WordPress plugin with automatic update system bypassing WordPress.org submission requirements
- Implemented domain-locked licensing system with automated generation via Stripe webhooks preventing piracy
- Created dual dashboard architecture - Plugin Creator Dashboard for monitoring and Site Owner Dashboard for license management
- Designed asynchronous job processing system with status polling handling 10-30 second AI optimization tasks without HTTP timeouts
- Built multi-format document generation system creating professional PDF and DOCX files with smart formatting and typography
- Implemented comprehensive audit logging system tracking all license activations, subscription changes, and security events
- Developed email automation with 7 automated sequences including welcome, license delivery, cart abandonment, and renewals
- Created three-tier subscription model (Free/Starter/Pro) with automated billing and self-service plan changes
- Implemented Row-Level Security (RLS) across 8 database tables with proper isolation and access controls
- Built custom CORS handling system dynamically allowing WordPress domains while maintaining security through rate limiting
- Developed license recovery system for lost emails with domain change support and health monitoring
- Created real-time usage tracking with color-coded warnings (red at limit, orange near limit) and upgrade prompts
- Implemented Stripe webhook processing for subscription lifecycle events (upgrades, cancellations, renewals, failed payments)
- Built Plugin Update Checker integration with version checking, changelog display, and one-click updates
- Designed mobile-responsive, WCAG-compliant interface with drag-and-drop upload and real-time validation
- Developed revenue analytics with MRR calculations, churn analysis, and customer lifetime value tracking
- Created shortcode system for WordPress integration ([resume_doctor_form], [resume_doctor_dashboard], [resume_doctor_pricing])
- Implemented AI-powered ATS compatibility scoring (0-100 scale) with keyword optimization and job matching
- Built secure file upload handling supporting PDF, DOCX, TXT formats with 5MB limit and validation
- Developed historical data migration tools (import-stripe-history, backfill-missing-license-emails) ensuring data integrity
- Created comprehensive API architecture with 35+ endpoints for WordPress, licensing, payments, and administration
- Implemented service role isolation in Edge Functions with proper authentication and authorization
- Built email queue system with async processing, SMTP configuration testing, and delivery monitoring
Project Screenshots
Interested in Similar Work?
Let's discuss how I can help with your project.