Software Metrics Overview

GN-z11CodesGN-z11Codes
2 min read

Software metrics are ways to measure things in software development e.g size of code, quality of software, duration of the project, errors/bugs in the system, e.t.c.

Software metrics helps us:

  1. Know if the software is good or bad.

  2. Find and fix problems early.

  3. Plan better.

  4. Make smart decisions.

Software measurement principles

These are rules to follow when doing software measurements:

  1. Know what you are measuring.

  2. Use consistent tools and methods.

  3. Measure things that matter.

  4. Keep is simple and easy to understand.

  5. Use results to improve.

Characteristics of software metrics:

  1. Simple - Easy to understand.

  2. Reliable - Gives correct results.

  3. Relevant - Useful for the goal you want to achieve.

  4. Measurable - Can be counted or calculated.

  5. Comparable - Can be used to compare results overtime.

Types of software metrics:

  1. Product metrics - These measure the actual software e.g lines of code (LOC)

  2. Process metrics - These measure how the software was built e.g time taken to create login screen.

  3. Project metrics - These measures the overall project e.g time, cost e.t.c.

Common software metrics with examples

MetricMeaningExample
LOC (Lines of code)Total number of code lines written6400 LOC
Cyclomatic complexityHow complexa program is depending on decision points (if, loops)Value of 10 = complex
Defect densityNumber of bugs per 1000 LOC16 bugs/1000 LOC
Code coverageHow much of the code has been tested70%
MTTR (mean time to repair)Avarage time to fix bugs3 hours

Benefits of using software metrics:

  1. Better planning.

  2. Better quality software.

  3. Less bug.

  4. Saves time & money.

Summary:

  • Software metrics helps us to measure & improve software.

  • Good metrics = better planning & better software.

  • 3 types of metrics: product metrics, process metrics & project metrics.

0
Subscribe to my newsletter

Read articles from GN-z11Codes directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

GN-z11Codes
GN-z11Codes