Score overview
Repolyze analyzes repositories across six key dimensions and combines them into an overall quality score ranging from 0 to 100.Overall score calculation
The overall score is a weighted average of six category scores:Weighting rationale: Code Quality, Security, and Maintainability each carry 20% weight as they directly impact long-term project health. Documentation and Test Coverage receive 15% each, while Dependencies get 10%.
Score categories
Code Quality (20% weight)
Measures the technical quality and consistency of your codebase. Base score: 50 pointsWhat increases the score
What increases the score
- +20 points: TypeScript usage detected
- +10 points: Strict mode enabled in
tsconfig.json - +10 points: Linting configured (ESLint, Biome)
- +5 points: Prettier or formatting tools setup
- +5 points: Error handling patterns (try-catch,
.catch())
Detection methods
Detection methods
- TypeScript: Scans for
.tsor.tsxfiles - Strict mode: Parses
tsconfig.jsonforcompilerOptions.strict === true - Linting: Checks for
.eslintrc,eslint.config,biome.json, or packages indevDependencies - Prettier: Looks for
.prettierrcorprettierindevDependencies - Error handling: Pattern matching for
try\s*\{or\.catch\(
code-analyzer.ts (lines 502-528)
Documentation (15% weight)
Evaluates the quality and completeness of project documentation. Base score: 30 pointsWhat increases the score
What increases the score
- +10-50 points: README quality (see ratings below)
- +10 points: CHANGELOG.md present
- Excellent (+50): 500+ chars with install, usage, and code examples
- Good (+40): 300+ chars with 2+ key sections
- Basic (+25): 300+ chars
- Minimal (+10): 100-300 chars
- Missing (+0): Less than 100 chars
What decreases the score
What decreases the score
- -15 points: No LICENSE file
code-analyzer.ts (lines 530-553)
Security (20% weight)
Identifies security vulnerabilities and configuration issues. Base score: 70 pointsWhat increases the score
What increases the score
- +15 points: Security configuration (Dependabot, Snyk)
What decreases the score
What decreases the score
- -30 points: Exposed secrets detected (API keys, passwords, tokens)
- -15 points: Vulnerable/deprecated dependencies (e.g.,
moment,request)
code-analyzer.ts (lines 555-573)
Maintainability (20% weight)
Assesses how easy it is to maintain and evolve the codebase. Base score: 50 pointsWhat increases the score
What increases the score
- +25 points: CI/CD configured (GitHub Actions, GitLab CI, Jenkins)
- +15 points: TypeScript usage
- +10 points: Linting setup
CI/CD detection
CI/CD detection
Repolyze detects these CI providers:
- GitHub Actions:
.github/workflows/directory - GitLab CI:
.gitlab-ci.ymlfile - Jenkins:
Jenkinsfilepresent
code-analyzer.ts (lines 575-590)
Test Coverage (15% weight)
Measures testing infrastructure and practices. Base score: 20 pointsWhat increases the score
What increases the score
- +50 points: Test files detected
- +10 points: CI/CD configured (automated testing)
Test detection
Test detection
Test files are identified by:Supported patterns:
*.test.js,*.spec.ts__tests__/directory_test.go,_test.py
The test score doesn’t measure actual coverage percentage—only the presence of test infrastructure. Use coverage tools like Jest or Istanbul for detailed metrics.
code-analyzer.ts (lines 592-604)
Dependencies (10% weight)
Evaluates dependency management and health. Base score: 80 pointsWhat decreases the score
What decreases the score
- -20 points: Deprecated dependencies detected
- -10 points: Heavy dependency count (50+ dependencies)
Deprecated packages
Deprecated packages
Currently detected deprecated packages:
- moment.js → Recommend:
date-fns - request → Recommend:
axiosornode-fetch
code-analyzer.ts (lines 606-616)
Score interpretation
Use these thresholds to interpret scores:90-100: Excellent
Outstanding quality. Minimal improvements needed. Set as a benchmark for other projects.
75-89: Good
Solid foundation with minor issues. Review suggestions for optimization opportunities.
50-74: Fair
Functional but needs improvement. Prioritize medium and high priority insights.
25-49: Needs Work
Significant issues present. Address critical security and quality concerns immediately.
0-24: Critical
Major problems detected. Requires immediate attention before production use.
Score breakdown view
The analysis dashboard displays score breakdowns with visual indicators:Score card layout
Color coding
- Green (75-100): Excellent or Good
- Yellow (50-74): Fair
- Red (0-49): Needs Work or Critical
Improving your scores
Prioritize by weight
Focus on high-weight categories first: Code Quality (20%), Security (20%), and Maintainability (20%).
Address critical issues
Fix any exposed secrets, security vulnerabilities, or missing essential files.
Implement quick wins
Add missing configuration files:
.prettierrcfor formatting.eslintrcfor lintingCHANGELOG.mdfor version trackingLICENSEfor licensing
Score calculation examples
Example 1: Excellent project
Example 2: Needs improvement
Next steps
Analyzing Repositories
Learn what gets analyzed and how to interpret results
Exporting Reports
Save your analysis with detailed score breakdowns