Methodology
How the score works
Every report is read from a project's public GitHub history and scored the same way. This page is the whole recipe: what is measured, what it is worth, and when a project gets no score at all.
From measurements to a score
Each measurement earns points out of a maximum, on a straight line between the value that is worth nothing and the value that is worth everything (a logarithmic one where marked). A category's score is the points earned out of the points on offer, times 100. The total is the eight category scores weighed as below, leaving out any category that could not be measured.
Grades: A from 80, B from 65, C from 50, D from 30, E below that.
Stars and forks are shown on every report and count in no category. Bots are left out of every count of people, and pull requests opened by bots are left out of the sample.
Maintainers & bus factor
weighs 30 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Largest author's share of commits, last 52 weeks | 60 | 90% | 30% |
| Authors needed to cover half the commits | 40 | 1 | 4 |
Activity & release rhythm
weighs 10 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Weeks with a commit, of the last 52 | 35 | 0 | 40 |
| Commits in the last 13 weeks against the pace of the 39 before | 15 | 10% | 75% |
| Days since the last commit | 25 | 365 | 30 |
| Releases (or tags) in the last 12 months | 15 | 0 | 4 |
| Days since the latest release | 10 | 730 | 90 |
Community depth
weighs 10 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| People with a commit in the last 52 weeks (logarithmic) | 30 | 1 | 20 |
| People who wrote the sampled pull requests (logarithmic) | 25 | 1 | 15 |
| Share of those from outside the project's own members | 20 | 0% | 30% |
| People who reviewed somebody else's change | 25 | 0 | 5 |
Code quality
weighs 10 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Sampled pull requests approved by someone other than the author | 50 | 0% | 80% |
| Median size of those changes, lines (logarithmic) | 20 | 2,000 | 200 |
| Linter or formatter configuration in the root | 20 | no | yes |
Tests & automation
weighs 10 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Continuous integration configured | 30 | no | yes |
| Checks on the newest commit | 20 | failing or none | passing |
| Sampled pull requests that had checks run | 30 | 0% | 100% |
| Test files among the source files | 20 | 0% | 15% |
Security practice
weighs 20 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Security policy on GitHub | 15 | no | yes |
| Dependabot or Renovate configuration | 30 | no | yes |
| A workflow named after a scanner or an audit | 25 | no | yes |
| Published advisories that name a fixed version | 20 | 0% | 100% |
| Known vulnerabilities without a fixed version (OSV) | 30 | 2 | 0 |
Documentation
weighs 5 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| README size, bytes | 40 | 300 | 3,000 |
| Files in a documentation directory | 20 | 0 | 3 |
| Project website set | 10 | no | yes |
| Contributing guide | 15 | no | yes |
| Changelog file or GitHub releases | 15 | no | yes |
Licence & governance
weighs 5 of 100| Measurement | Points | Nothing at | Everything at |
|---|---|---|---|
| Licence (GitHub's reading, or what the project declares when GitHub cannot name it) | 40 | none | OSI-approved (any other earns 14) |
| Owned by an organisation rather than one account | 15 | no | yes |
| CODEOWNERS, GOVERNANCE or MAINTAINERS file | 15 | no | yes |
| Code of conduct | 10 | no | yes |
| Funding declared | 10 | no | yes |
| People who merged the sampled pull requests | 10 | 1 | 3 |
What is never guessed
- No total when the repository is a fork or empty, is younger than 90 days or has fewer than 20 commits, or when less than 60 of the 100 points of weight could be measured. The report says "Not enough data" and why, and the badge reads no data.
- A measurement that could not be read is listed as "not scored" and counts neither for nor against.
- Anything about review needs 10 merged pull requests by people. A project whose changes do not land through GitHub pull requests (Go is reviewed on Gerrit, Linux on mailing lists) gets "not measured" for code quality, and for continuous integration when none is found on GitHub, rather than a zero.
- No published advisories is not scored: it is not evidence that there are no vulnerabilities.
- Anything about who does the work needs 20 commits by people in the last 52 weeks.
- Pull requests are read newest first until 100 opened by people are found, or 200 have been read. Bots such as Dependabot open most of the pull requests on some projects, and their changes say nothing about how people's are reviewed.
- When GitHub cannot name a licence, what the project declares is read instead: the licence in package.json or Cargo.toml, licence files named after a licence (COPYING.0BSD), or a LICENSES/ directory. Every licence named must be OSI-approved. When licence files mix approved and other licences, the names cannot tell which code each covers, and the licence is not scored.
Known limits
Code quality is read from how changes are reviewed, not from the code itself. Tests are counted by file name. A security policy kept outside GitHub's SECURITY.md is not seen. Only GitHub repositories can be checked so far.
What the score means, and what it does not
The score describes the risk to you of depending on a project: whether it would survive its busiest person stopping, whether a second pair of eyes looks at changes, and whether problems have a way to be reported and fixed. It is not a verdict on the people who maintain it. Most open source is built by volunteers who owe their users nothing, and a low score often means a project needs help, not that anyone did bad work.
When a project is checked
A project is read from GitHub the first time somebody opens its report, its badge or a comparison with it, and again every night after that, so no report is more than a day old. Opening a report never starts a new check. The findings of every check are kept, and each report lists them, so you can see a project as it was found on any night. Each night adds a point to its score over time. Any change to how scores are made moves a version number stored with every point, so a step in a project's line can be told from a step in the method. This page describes scoring version 3.
Which reports search engines see
Anyone can check any public repository. A report is offered to search engines when it has a total and the project has at least 100 stars. Stars count for nothing in the score; they only say whether people are likely to look the project up.