Professional Documents
Culture Documents
The first classification category distinguishes between life cycle and other phases of the
software system:
Timetable
Productivity.
A sizeable number of software quality metrics involve one of the two following measures for
system size:
KLOC – this classic metric measures the size of software by thousands of code lines. As the
number of code lines required for programming a given task differs substantially with each
programming tool, this measure is specific to the programming language or development tool
used. Application of metrics that include KLOC is limited to software systems developed using
the same programming language or development tool.
Software volume measures. Some density metrics use the number of lines of code while others
apply function points.
Errors counted measures. Some relate to the number of errors and others to the weighted
number of errors. Weighted measures that ascertain the severity of the errors are considered to
provide more accurate evaluation of the error situation. A common method applied to arrive at
this measure is classification of the detected errors into severity classes, followed by weighting
each class. The weighted error measure is computed by summing up multiples of the number of
errors found in each severity class by the adequate relative severity weight.
Example 1. This example demonstrates the calculation of the number of code errors (NCE)
and the weighted number of code errors (WCE). A soft-ware development department applies
two alternative measures, NCE and WCE, to the code errors detected in its software development
projects. Three classes of error severity and their relative weights are also defined:
Low severity 1
Medium severity 3
High severity 9
The code error summary for the department’s Atlantis project indicated that there were 42 low
severity errors, 17 medium severity errors, and 11 high severity errors. Calculation of NCE and
WCE gave these results:
Calculation of
NCE Calculation of WCE
A B c d=bxc
Low severity 42 1 42
Medium
severity 17 3 51
High severity 11 9 99
Total 70 — 192
NCE 70 — —
WCE — — 192
NCE = number of code errors detected in the software code by code inspections and testing. Data
for this measure are culled from code inspection and testing reports.
NDE = total number of development (design and code) errors detected in the software
development process. Data for this measure are found in the various design and code reviews and
testing reports conducted.
WCE = weighted code errors detected. The sources of data for this metric are the same as those
for NCE.
WDE = total weighted development (design and code) errors detected in development of the
software. The sources of data for this metric are the same as those for NDE.
NFP = number of function points required for development of the software. Sources for the
number of function points are professional surveys of the relevant software.
CED - Code error density = NCE / KLOC
DED- Development Error Density= NDE/KLOC
WCED - Weighted Code Error Density = WCE/KLOC
WDED - Weighted Development Error Density = WDE/KLOC
WCE — 192
KLOC 40 40
The conclusions reached after application of the unweighted versus weighted metrics are
different. While the CED does not indicate quality below the acceptable level, the WCED metric
does indicate quality below the acceptable level (in other words, if the error density is too high,
the unit’s quality is not acceptable), a result that calls for management intervention.