Quality Score: 80/100
Low RiskThis repo is in good health with CI, tests, and active maintenance.
High complexity -10Multiple anti-patterns -10
Maintainability grade
Static analysisHow maintainable the code looks — from complexity, code issues, test presence, file size, and hotspot load. It grades the shape of the code, not defect risk, and doesn't replace review.
B76/100
A ≥ 85, B ≥ 70, C ≥ 55, D ≥ 40, F < 40
Cyclomatic complexityavg 1622/35 Code issues0 errors, 8 warnings17/20 Testspresent · ~2% of files14/20 Largest file717 lines13/15 Hotspot load0 high-risk files10/10 Configuration status
CI/CD Pipeline — configured
Test Suite — detected
36 test files detected
Stack: Pytest
Where: graphs/tests · maths · geometry/tests
Test Coverage — ~2%heuristic
36 test files / 1,571 source files. This is a file-count ratio, not real line coverage — set up Codecov for authoritative numbers.
Dependency Scanning — no config detected
No Dependabot / Renovate / Snyk / Trivy / CodeQL config found. Enable Dependabot or Renovate.
Live Signals
Real-time data from Codecov, GitHub Actions, GitHub Issues, deps.dev — not estimates.
CI pass rate98%
last 50 runs · median 20s
Stale-issue ratio0%
of 2 recent open issues are 30d+ old with no replies
Maintainer response19m
median first-reply across 15 recent issues · fast
Top hotspots
Files edited often AND hard to reason about. Churn = recent commit frequency, Complexity = branches and nesting, Risk = both combined. These are the highest-leverage targets for refactoring or testing.
All hotspots
Files that change often and are complex tend to accumulate more bugs
AI-suggested anti-patterns
AI · unverifiedPattern-matches from the file structure and dependencies — useful as hypotheses, but not grounded in actual source. For real findings see Code Scanning above.
Inconsistent docstring format
MediumSome algorithms use triple-quoted docstrings with complexity notation; others lack formal documentation.
backtracking/, bit_manipulation/, ciphers/ (varying docstring styles across files)
No input validation in algorithm implementations
LowEducational algorithms assume valid input; no defensive checks for edge cases, which could mislead learners.
backtracking/n_queens.py, bit_manipulation/count_1s_brian_kernighan_method.py
Potential code duplication across similar algorithms
LowSimilar problems solved with similar patterns (e.g., all_permutations.py vs. all_combinations.py) without shared utilities.
backtracking/ (e.g., multiple permutation/combination variants)
AI-suggested bottlenecks
AI · unverifiedSpeculation from file structure, not profiling data. Validate against real metrics before acting on these.
Process/scalability Bottleneck
Manual index maintenance; adding/removing algorithms requires hand-edits; scales poorly as repository grows.
DIRECTORY.md
Human review / CI gaps Bottleneck
Subjective code quality checks and maintainer availability; no automated formatting rules reduce back-and-forth.
Contributor review cycle (CONTRIBUTING.md)
Navigation/UX Bottleneck
No centralized categorization or algorithm search feature (beyond DIRECTORY.md); relies on repository navigation.
Category discovery for newcomers
Code metrics
Static analysis on sampled source files (up to 15 files).
Avg Cyclomatic Complexity16
Counts if/for/while/switch/catch/ternary branches
Errors / Warnings0 / 8
Secrets, empty catches, console.log, var usage, long lines