opensourcecheck

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
MeasurementPointsNothing atEverything at
Largest author's share of commits, last 52 weeks6090%30%
Authors needed to cover half the commits4014

Activity & release rhythm

weighs 10 of 100
MeasurementPointsNothing atEverything at
Weeks with a commit, of the last 5235040
Commits in the last 13 weeks against the pace of the 39 before1510%75%
Days since the last commit2536530
Releases (or tags) in the last 12 months1504
Days since the latest release1073090

Community depth

weighs 10 of 100
MeasurementPointsNothing atEverything at
People with a commit in the last 52 weeks (logarithmic)30120
People who wrote the sampled pull requests (logarithmic)25115
Share of those from outside the project's own members200%30%
People who reviewed somebody else's change2505

Code quality

weighs 10 of 100
MeasurementPointsNothing atEverything at
Sampled pull requests approved by someone other than the author500%80%
Median size of those changes, lines (logarithmic)202,000200
Linter or formatter configuration in the root20noyes

Tests & automation

weighs 10 of 100
MeasurementPointsNothing atEverything at
Continuous integration configured30noyes
Checks on the newest commit20failing or nonepassing
Sampled pull requests that had checks run300%100%
Test files among the source files200%15%

Security practice

weighs 20 of 100
MeasurementPointsNothing atEverything at
Security policy on GitHub15noyes
Dependabot or Renovate configuration30noyes
A workflow named after a scanner or an audit25noyes
Published advisories that name a fixed version200%100%
Known vulnerabilities without a fixed version (OSV)3020

Documentation

weighs 5 of 100
MeasurementPointsNothing atEverything at
README size, bytes403003,000
Files in a documentation directory2003
Project website set10noyes
Contributing guide15noyes
Changelog file or GitHub releases15noyes

Licence & governance

weighs 5 of 100
MeasurementPointsNothing atEverything at
Licence (GitHub's reading, or what the project declares when GitHub cannot name it)40noneOSI-approved (any other earns 14)
Owned by an organisation rather than one account15noyes
CODEOWNERS, GOVERNANCE or MAINTAINERS file15noyes
Code of conduct10noyes
Funding declared10noyes
People who merged the sampled pull requests1013

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.

Think a report gets something wrong? Tell us