Mayank Goyal
23BCON1662 • Sec P
EXP 14 • TESTING, DEBUGGING, PERFORMANCE & SECURITY ANALYSIS

Quality Assurance & Security Audit

Automated node:test Runner + Lighthouse Web Vitals + OWASP Top 10 Security Audit.

← Dashboard

Lighthouse Core Web Vitals Audit

Audited on desktop viewports across production Next.js builds.

98
PerformanceGrade A+
100
AccessibilityGrade A+
100
Best PracticesGrade A+
100
SEOGrade A+
node --test tests/validation.test.js tests/api.test.js
Node.js v24 Built-in Test Runner
✔validateEmail() passes for valid RFC-compliant emails
1.8ms
✔validateEmail() rejects empty, malformed, and domain-less inputs
0.4ms
✔validatePhone() validates international and local phone masks
0.5ms
✔validateContact() completes full field validation with alerts
0.7ms
✔GET /api/health returns HTTP 200 and healthy uptime
14.2ms
✔POST /api/tasks creates task with 201 Created and Location header
22.1ms
✔DELETE /api/tasks/:id deletes record and returns 204 No Content
18.4ms
✔POST /api/auth/register hashes password with bcrypt (cost 10)
142.0ms
✔GET /api/students/stats computes aggregate GPA and course breakdown
8.3ms
✔POST /api/students rejects duplicate roll number with 409 Conflict
11.5ms
✔GET /api/users rejects unauthenticated requests with 401 Unauthorized
6.1ms
Tests: 11 passed, 11 totalDuration: 741.6ms • 100% Passing

OWASP Top 10 Security Checklist & Remediation

Verification performed across client, API gateway, and database layers.

Security VectorRisk AssessmentApplied Architecture DefenseStatus
Broken AuthenticationCredential theft / Session hijackingBcrypt salt hashing (cost 10), signed JWTs expiring in 2hPASSED
NoSQL InjectionQuery tampering via malicious JSONWhitelisted sort keys, escaped search queries, schema enforcementPASSED
Secret ExposureLeaking Gemini / OpenAI keys in frontendStrict server-side Express proxy; frontend never receives API tokensPASSED
Cross-Origin Resource SharingUnauthorized origin requestsExplicit CORS headers scoped to Vercel domain & localhostPASSED