Area: Engagement (audit p9) · Surface: templates/stats/leaderboard.php · Dimension: dead-code · Severity: minor
templates/stats/leaderboard.php is a self-contained leaderboard page (karma/posts/files/credits/achievements category tabs + Top 25 table) that no controller renders and no template includes. It was superseded when the leaderboard was folded into /stats (the #leaderboards section in templates/stats/index.php) and the /leaderboard route was turned into a 302 redirect. It is NOT a policy-disabled feature — it is a generic community leaderboard, just dead. Safe to delete.
Evidence
grep -rn "stats/leaderboard" platform/ --include="*.php" (excluding the template itself) → exit code 1 (zero matches). The only render('leaderboard...') call in the codebase is StatsController.php:708 → render('leaderboard/week', ...) which targets a DIFFERENT, live template (templates/leaderboard/week.php). The /leaderboard route (routes.php:579) maps to LeaderboardController@index, whose entire body is: `$this->redirect('/stats#leaderboards');` (LeaderboardController.php:6-10) — it renders nothing. The leaderboard content now lives in templates/stats/index.php (section id="leaderboards", line 130). The orphaned file's own markup still links to the retired flow: `<a href="/leaderboard?category=<?= $cat ?>">` and header 'High Scores' / 'Top 25', and the 2026-04-28 site inventory (docs/reviews/2026-04-28-site-inventory.csv:260) lists stats/leaderboard.php — confirming it predates the /stats consolidation.
Suggested fix. Delete platform/templates/stats/leaderboard.php. It is genuinely unreferenced; the live leaderboard surfaces are templates/stats/index.php (#leaderboards) and templates/leaderboard/week.php.
Filed by the automated tenant-app audit and adversarially evidence-verified. Status: verified. Open — not yet actioned.
Patrick Bass
@mobieus