Document Actions

Open source code matches proprietary for quality

PCA - The quality of open source code is on a par with proprietary code, particularly in cases where codebases are of similar size.

This was one of the key findings of development testing company Coverity's annual Scan report. The company measured the quality of code by comparing defect density - the number of defects per 1,000 lines of code. The average defect density for the software industry is 1.0.

The report found that open source projects that had completed development testing using Coverity Scan had an average defect density of 0.45. This figure is based on analysis of 37 million lines of code from 45 of the most active open source projects in Scan.

In comparison, the average defect density for proprietary codebases was 0.64, based on analysis of 300 million lines of code from 41 proprietary codebases. The average proprietary codebase has 7.5 million lines of code, compared to 832,000 lines for open source projects.