Performance: Default API endpoints
MEDIUM IMPACT
Default API endpoints affect the initial page load speed and server response time by handling data requests efficiently.
fetch('/wp-json/wp/v2/posts').then(res => res.json()).then(data => console.log(data));fetch('/wp-json/custom/v1/posts').then(res => res.json()).then(data => console.log(data));| Pattern | Server Processing | Network Transfer | Client Parsing | Verdict |
|---|---|---|---|---|
| Custom API Endpoint | High (complex queries) | Medium (JSON size varies) | Medium | [X] Bad |
| Default API Endpoint | Low (optimized core) | Low (standard JSON size) | Low | [OK] Good |