Prompt Details
Model
(claude-5-sonnet)
Token size
1,406
Example input
[Website Name]: MarketReach (Property Rental Marketplace Platform)
[Website URL]: app.marketreach.com
[WordPress / Shopify / React / Next.js / Laravel / Node.js / etc.]: Django (backend API) + Vue.js 3 (frontend SPA) + PostgreSQL (property database) + Elasticsearch (search indexing)
[Slow Loading / High LCP / High CLS / Slow TTFB / Large Images / Render Blocking]: Search filter lag (500ms response time), Map component blocking render, Elasticsearch returning too much data (8MB search result payload), No pagination strategy (infinite scroll consuming memory), High INP on filter interactions, Image gallery carousel slow on mobile, Lazy loading not implemented, Booking form validation re-renders expensive, API response times inconsistent (caching missing)
[Improve Core Web Vitals / Faster Loading / Better SEO / Higher Conversions]: Accelerate property search experience + reduce booking abandonment (currently 68%) + improve mobile interactive performance + handle weekend traffic spikes efficiently
Example output
## 🧭 OUTPUT
### ⚡ SECTION 1 — Executive Performance Assessment
• **Website Health Score:** 57/100 (Moderate-to-High Concern)
• **Current Loading Speed:** Desktop acceptable (4.1s) | Mobile sluggish (5.8s) | Search results experience degrading during peak hours (Friday-Sunday)
• **Responsiveness Status:** 350ms INP on desktop, 420ms mobile = Noticeably sluggish | Users experiencing lag when applying filters, selecting dates, or clicking property listings | Competitive disadvantage vs. Airbnb (INP typically 120-150ms)
• **Scalability Rating:** Performance degrades 35-40% during weekend peaks | Weekend concurrent users (12K) causing API bottleneck | Elasticsearch query time degrading from 1.2s to 2.1s during peaks
• **Performance Maturity:** SPA architecture sound but insufficient optimization for marketplace friction points | Search and filtering are critical conversion funnels (unoptimized) | No systematic performance monitoring in place
• **Key Finding:** Marketplace fundamentals solid but search experience and booking flow optimization critical for retention | Search algorithm (1.2s latency) and API response times (missing caching) are primary conversion killers
---
### ⚡ SECTION 2 — Core Web Vitals Review
🟠 **High Priority Issues:**
• **INP (Interaction to Next Paint):** 350ms desktop / 420ms mobile | Should be <200ms for marketplaces | Root cause: Vue.js filter component re-renders entire result list on each filter change (no debouncing), date picker re-renders calendar grid inefficiently, Elasticsearch API latency (1.2s) causing UI thread blocking, property card interactions triggering heavy DOM updates
• **LCP (Largest Contentful Paint):** 3.1s desktop / 3.5s mobile | Should be <2.5s | Root cause: Property images loading sequentially (hero image 1.2MB uncompressed), map tiles loading before content (render-blocking), initial API call for search results (1.2s Elasticsearch response time)
🟡 **Medium Priority Issues:**
• **CLS (Cumulative Layout Shift):** 0.16 | Should be <0.1 | Root cause: Property images loading causing layout shift in property cards, rating/review count loading asynchronously, price updates from dynamic calculations, booking calendar appearing after initial render, filter panel collapsing/expanding
• **TTFB (Time to First Byte):** 420ms desktop / 480ms mobile | Should be <300ms | Root cause: Django backend initialization overhead (15+ middleware), database connection pool misconfiguration causing query delays, API endpoint not serving cached response for initial search state
🟢 **Low Priority Issues:**
• **FCP (First Contentful Paint):** 1.8s | Acceptable for complex SPA | Improvable through critical CSS extraction
---
### 🎨 SECTION 3 — Frontend Optimization
• **JavaScript Bundle Size:** 1.8MB total (Vue.js core: 340KB, map library Leaflet: 280KB, date picker library: 150KB, carousel library: 120KB, utility libraries: 180KB, app code: 730KB) | Excessive for marketplace | Recommendation: Remove duplicate date picker (3 different libraries), audit carousel necessity (custom solution could save 120KB)
• **Code Splitting Gaps:** Zero code splitting on SPA | Properties detail page route bundled with search (320KB overhead for 30% of users) | Booking flow bundled globally (180KB, only needed for checkout) | Map component loaded on all pages (280KB, not needed on mobile signup)
• **CSS Optimization:** 180KB CSS | Tailwind-based (mostly critical) | 45KB unused selectors from old components | Recommendation: Tree-shake unused Tailwind utilities
• **Image Optimization:** Hero/property images: 1.2MB each uncompressed | 45-60 property cards per search results page = 54-72MB potential image downloads | Zero WebP conversion, zero responsive srcset, zero lazy loading | Gallery carousel images loading all simultaneously (12-15 images = 18-25MB per property detail)
• **Font Loading:** Custom font (Plus Jakarta Sans) 180KB blocking render | System fonts adequate for marketplace UX | Recommendation: Use system fonts or implement font-display: swap
• **Lazy Loading:** Zero lazy loading on property images | Intersection Observer not implemented | Recommendation: Defer images below fold, defer map tiles until map comes into viewport
---
### 🖥️ SECTION 4 — Backend & Server Performance
• **Server Response Time:** 420ms TTFB | Benchmark: 150-250ms for comparable marketplaces | Django middleware chain overhead (15+ middleware: logging, security, CORS, authentication) = 120ms | Database query optimization needed
• **Elasticsearch Performance:** Search query time: 1.2s average, peaks to 2.1s during weekend traffic | Default query too broad (fetching 500+ results unnecessarily) | Recommendation: Implement query-time filtering, reduce result set to 50 properties with pagination
• **Database Query Performance:** Property list endpoint executing 8 separate queries (N+1 problem): property data, images, owner data, reviews, availability calendar, pricing rules, amenities, ratings | Should be <3 queries via JOIN optimization or GraphQL
• **API Caching Strategy:** Zero cache headers on search endpoints | Initial search results could be cached 5 minutes (major performance win) | User preference data not cached (could cache 1 hour)
• **Django Optimization:** Gunicorn configured with 4 workers (insufficient for 12K peak concurrent users) | Database connection pool limited to 10 connections | Recommendation: Scale to 16 workers, increase pool to 30 connections during peak hours
---
### 🌍 SECTION 5 — CDN & Caching Strategy
• **Browser Caching:** Search API responses: No cache header (critical miss) | Property images: 30-day TTL (appropriate) | Map tiles: 7-day TTL (good) | Recommendation: Add Cache-Control: public, max-age=300 to search endpoints
• **DigitalOcean Spaces CDN:** Configured for static assets (JS/CSS) | Property images served via CDN (good) | Recommendation: Increase cache TTL for images to 60 days with versioning
• **Server-Side Caching:** Zero caching layer (no Redis or Memcached) | Search results computed fresh on every request (1.2s latency) | Recommendation: Implement Redis caching for search results (5-minute TTL)
• **Query Result Caching:** Elasticsearch results not cached | Database query results not cached | Amenities list (static) recomputed per request
• **Compression:** Gzip enabled (58% compression ratio) | Brotli not enabled for modern browsers | API responses could compress better with Brotli (72% ratio)
---
### 🔍 SECTION 6 — SEO & UX Performance
• **Technical SEO:** Mobile usability score: 45/100 (concerning) | Core Web Vitals report: LCP and INP in "Needs Improvement" category | Mobile-first indexing impacted | Search result pages not indexable (SPA routing issue) | Recommendation: Implement server-side rendering for search result pages
• **Mobile Usability:** Mobile INP 420ms frustrating for filter interactions | Date picker difficult to use on mobile | Property card images slow to load | Booking calendar interaction laggy (250ms+ per click)
• **Accessibility:** Map component not keyboard accessible (keyboard users cannot navigate properties) | Property images missing descriptive alt text | Form labels missing proper association with inputs | Carousel controls not accessible via keyboard
• **Structured Data:** Property schema markup missing (major SEO loss) | Review schema present but incomplete | LocalBusiness schema incomplete | Recommendation: Implement comprehensive Property schema for SEO
• **User Experience Impact:** Search results loading perceived as "sluggish" | Filter interactions feeling unresponsive (420ms INP) | Mobile users experiencing 68% booking abandonment rate (majority during search refinement phase) | Competitor analysis shows similar platforms 40% faster
---
### 📈 SECTION 7 — Scalability & Infrastructure
• **Traffic Handling:** 100K monthly users, 400K sessions, 12K peak concurrent users (weekends) | Current: 4 Gunicorn workers insufficient | Database becoming bottleneck: Query latency increases 35-40% during peaks | Elasticsearch cluster single-node (should be 3-node minimum for scalability)
• **Auto-Scaling:** DigitalOcean App Platform handles app scaling automatically | Database connections not auto-scaled | Recommendation: Set up connection pooling with PgBouncer for database bottleneck
• **Resource Utilization:** Database: 55% of response time | Django processing: 25% | Network (image downloads): 15% | Elasticsearch: 5%
• **Monitoring:** Basic DigitalOcean monitoring in place | Application Performance Monitoring missing (no APM tool like New Relic) | Vue.js performance monitoring not implemented | Recommendation: Implement Sentry for error tracking + custom metrics
• **Reliability:** 99.8% uptime maintained | Database backups daily (good) | Single point of failure: Elasticsearch single-node cluster (risk) | Recommendation: Implement multi-node Elasticsearch cluster
---
### 💰 SECTION 8 — Performance Impact Analysis
• **Page Load Time Improvement:** Current: 5.8s mobile / 4.1s desktop | Optimized target: 2.4s mobile / 1.9s desktop | Impact: 59% faster mobile, 54% faster desktop
• **Search Response Time:** Current: 1.2s Elasticsearch query | Optimized: 320ms with caching + query optimization | Impact: 75% faster search results
• **Core Web Vitals Forecast:** INP: 420ms → 145ms | LCP: 3.5s → 1.8s | CLS: 0.16 → 0.07 | All metrics in "Good" range
• **Booking Abandonment Impact:** Current: 68% abandonment rate | Performance optimization targets filter/search phase (40% of abandonment) | Estimated improvement: 68% → 55% abandonment rate (13 percentage point reduction) | Revenue impact: 25-30% booking increase
• **Competitive Positioning:** Current INP 420ms vs. Airbnb ~130ms = competitive disadvantage | Optimizing to 145ms INP narrows performance gap significantly | Estimated user preference shift: 15-20% improvement in perceived responsiveness
• **Infrastructure Cost Impact:** Current: $320/month DigitalOcean (4 app servers + managed database) | With optimization: same cost supports 3x traffic (better resource utilization) | Alternative: reduce to $200/month infrastructure while supporting same traffic
---
### 🚀 SECTION 9 — Optimization Roadmap
**Phase 1 — Quick Wins (1–3 Days)**
• Implement Elasticsearch query pagination: Reduce result set from 500 to 50 properties, add pagination | Expected: 65% Elasticsearch response time improvement (1.2s → 420ms)
• Add Cache-Control headers to search API endpoints: 5-minute TTL for search results | Expected: repeat searches instant, 40% API load reduction
• Enable Brotli compression on DigitalOcean CDN | Expected: 72% vs 58% compression ratio, 150ms faster asset delivery on modern browsers
• Defer map tiles loading (load only when map comes into viewport) | Expected: 280ms LCP improvement, reduced initial page load by 280KB
• Implement debouncing on Vue.js filter component (300ms debounce) | Expected: 180ms INP improvement, 60% fewer Elasticsearch queries from filter changes
• Implementation difficulty: Easy | Resource requirement: 8 hours (full-stack developer)
**Phase 2 — Short-Term Optimizations (14–30 Days)**
• Implement Redis caching layer for search results (5-minute TTL) + user preferences (1-hour TTL) | Expected: 420ms API latency → 50ms cached response, 80% request latency improvement
• Convert property images to WebP with JPEG fallback + implement responsive srcset (3 sizes: 400px, 800px, 1200px) | Expected: 55% image payload reduction, 1.2s LCP improvement
• Implement Intersection Observer for lazy loading property card images | Expected: 800ms initial load improvement, 40MB unnecessary image downloads eliminated
• Optimize Vue.js rendering: Use v-memo on property cards, implement virtual scrolling for infinite scroll | Expected: 220ms INP improvement, 65% faster filter rendering
• Implement code splitting for booking flow (separate chunk) and detail page (separate chunk) | Expected: 180KB reduction in initial search bundle
• Upgrade Gunicorn from 4 to 12 workers + implement PgBouncer for database connection pooling | Expected: 40-50% better traffic spike handling, 150ms TTFB improvement during peaks
• Implementation difficulty: Medium | Resource requirement: 45 hours (full-stack + DevOps)
**Phase 3 — Long-Term Optimizations (60–90 Days)**
• Implement Server-Side Rendering (SSR) for search results page using Nuxt.js or Next.js wrapper | Expected: SEO improvement (property schema indexable), perceived performance improvement, 200ms TTFB improvement for first-time visitors
• Migrate to multi-node Elasticsearch cluster (3-node minimum) with automated backups | Expected: 50% query latency reduction under load, high availability
• Build custom image optimization pipeline (ImageKit or Cloudinary) with auto-responsive serving | Expected: 50% image payload reduction, auto WebP/AVIF selection
• Implement GraphQL API replacing REST endpoints | Expected: 50% payload reduction, allow clients to request only needed fields
• Implement service worker for offline property browsing + cached search results | Expected: instant repeat searches, better mobile UX, reduced data consumption
• Custom Core Web Vitals monitoring dashboard (web-vitals library + custom events) | Expected: real-time performance visibility, proactive optimization
• Implementation difficulty: Hard | Resource requirement: 140+ hours (senior architect + team)
---
### 🧾 EXECUTIVE SUMMARY — Performance Report
**Current Performance Score:** 57/100 | Status: 🟠 Moderate-to-High Concern
**Website Performance Grade:** D+
**Core Web Vitals Status:** INP and LCP in "Needs Improvement" on mobile | CLS borderline failing
**Estimated Time to Improvement:** 90 days full optimization | Quick wins visible in 3 days
**ROI of Optimization:** 13% booking abandonment rate reduction ($120K-$180K annual revenue increase for typical marketplace) + improved competitive positioning vs. Airbnb + ability to handle 3x traffic with same infrastructure costs
---
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
A slow website doesn't just frustrate users—it reduces conversions, hurts SEO, increases bounce rates, and costs businesses revenue. ⚠️
⚡ Complete website performance audit
📊 Core Web Vitals assessment
🖥️ Frontend & backend optimization strategy
🗄️ Database & server performance analysis
🌍 CDN & caching recommendations
📈 SEO & UX performance improvements
🚀 Production-ready optimization roadmap
Build websites that are fast, scalable, and optimized for users and search engines.
...more
Added 1 day ago
