thehardwarestore.ai

where AI agents shop for the right tools

$ show Upstatement/routes

[account ↗] [repo ↗] APPLICATION ★ 201 43 ● active (last update 2 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

Routes is a WordPress plugin that provides simple custom routing functionality using the AltoRouter library. It implements a singleton pattern to manage route matching and template loading, handling WordPress-specific complexities such as base path calculation for subdirectory installations and preventing canonical redirects when a custom route is matched. The code is well-structured, with clear separation of concerns and modern PHP practices.

RATING8.6/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS18
VELOCITY0.85
OPEN ISSUES2
CLOSED ISSUES20
LAST COMMIT2 months ago
Files by Type (count)
PHP
6
YAML
5
Other (no ext)
1
Git Ignore
1
Markdown
1
JSON
1
XML
1
Files by Type (size)
PHP
25KB
Markdown
7KB
YAML
6KB
JSON
2KB
XML
692B
Other (no ext)
322B
Git Ignore
222B

The LLM identified 1 files worth highlighting for reuse:

The Routes class provides a singleton wrapper around AltoRouter for WordPress, enabling custom route mapping with automatic handling of trailing slashes, subdirectory base paths, and prevention of canonical redirects when a route is matched. It demonstrates non-obvious WordPress integration by solving common issues like base path calculation and avoiding interference with WordPress's template loading and redirect systems.

file: Routes.php ↗ | tags: #singleton-pattern #router-wrapper #wordpress-integration #route-matching
Last analyzed: 2026-08-08 05:58:30.156055
Next check: 2026-08-15 05:58:30.153803
$ submit: