SlideShare a Scribd company logo
Software Metrics
Alexandra – Ionela DONOSA
An IV, CTI
What are software metrics?
Quantitative measurements distilled from data
Distilled by measuring software development processes and
actual source code
Highlight areas that need work in specific nodes of code as
well as generalizations about your code overall
"You can't control what you can't measure" -Tom DeMarco
Limitations of metrics
Software metrics are intended to help programmers control and
monitor software production, but...
It's difficult to determine "how much" software there is in a given
program
Can give a skewed impression of software, especially when calculated
early in the software development process
Can be difficult or complex to calculate, especially as the volume of
code grows
Examples of metrics
Lines of code
Number of classes & interfaces
Code to comment ratio
Cyclomatic complexity
Code coverage
Bugs to lines of code ratio
Cohesion
Coupling
Failed tests per build
Version control commits per day
Lines of code per commit
Terminology
Node
 A block of source code, usually either a single line, a function/method, class, or package. A
node can have multiple children, but only one direct parent
Program
 A graph of all of the nodes that comprise the source code
Flow graph
 A directed graph of all of the single line nodes connected with vertices where the possible
flow of execution might proceed
Some Specifics
Lines of Code
Code to comment ratio
Cyclomatic Complexity
Code Coverage
Cohesion
Coupling
Methods for decreasing coupling and increasing cohesion
Free tools for auditing software
Bibliography :
 1. https://wiki.engr.illinois.edu/display/cs242sp13/Software+Metrics
2. http://www.projectinitiation.com/

More Related Content

PDF
The Next Static Code Analysis Tool - Today and Tomorrow
PPTX
Building Successful Apps Using Application Telemetry and Data Driven Decision...
PPTX
Waterfall model-
DOC
RESUME_YaakovBlank_2016
PPT
Software Sizing
PPTX
Software size estimation
PPTX
Presentation (software engineering)
PDF
Iv2515741577
The Next Static Code Analysis Tool - Today and Tomorrow
Building Successful Apps Using Application Telemetry and Data Driven Decision...
Waterfall model-
RESUME_YaakovBlank_2016
Software Sizing
Software size estimation
Presentation (software engineering)
Iv2515741577

What's hot (20)

PPTX
Chapter 1 1 - intro ppt
PDF
Software Engineering - Basics
PDF
Inauguration lecture Martin Pinzger, University of Klagenfurt, Austria
PPT
software process
PPTX
Risk mitigation in Embedded Software Development
PPT
Web testing
DOCX
Andrew spoden Software Engineer resume
PPTX
Characteristics of Software
PPT
Software Coding- Software Coding
PPT
9. risk-management
PPTX
PPTX
Notes on software engineering
PPT
Lecture 1-intro-to-software-development
DOC
PPSX
Scope of software engineering
PDF
Use case diagrams
PDF
Software engineering lecture notes
PPTX
Effects of Ownership on Software Quality
PPT
Software Cost Estimation in Software Engineering SE23
DOC
简历2017(英文)
Chapter 1 1 - intro ppt
Software Engineering - Basics
Inauguration lecture Martin Pinzger, University of Klagenfurt, Austria
software process
Risk mitigation in Embedded Software Development
Web testing
Andrew spoden Software Engineer resume
Characteristics of Software
Software Coding- Software Coding
9. risk-management
Notes on software engineering
Lecture 1-intro-to-software-development
Scope of software engineering
Use case diagrams
Software engineering lecture notes
Effects of Ownership on Software Quality
Software Cost Estimation in Software Engineering SE23
简历2017(英文)
Ad

Viewers also liked (15)

PDF
Software metrics
PPT
Software Metrics
PDF
Software quality metric
PPT
Software metrics
PPTX
Software quality metrics methodology _tanmi kiran
PDF
Understanding software metrics
PPT
Sw Software Metrics
PPT
Software Engineering Fundamentals
PDF
Software Engineering Practice - Software Metrics and Estimation
PPTX
Software Metrics & Measurement-Sharbani Bhattacharya
PPTX
Software Metrics - Software Engineering
PDF
Importance of software quality metrics
PPTX
Product metrics
PDF
[Mush Honda] Metrics & Reports from Test Teams (QA)
PDF
Software engineering lecture notes
Software metrics
Software Metrics
Software quality metric
Software metrics
Software quality metrics methodology _tanmi kiran
Understanding software metrics
Sw Software Metrics
Software Engineering Fundamentals
Software Engineering Practice - Software Metrics and Estimation
Software Metrics & Measurement-Sharbani Bhattacharya
Software Metrics - Software Engineering
Importance of software quality metrics
Product metrics
[Mush Honda] Metrics & Reports from Test Teams (QA)
Software engineering lecture notes
Ad

Similar to Software metrics (20)

PDF
Embedded software static analysis_Polyspace-WhitePaper_final
PDF
Measuring Your Code
PPT
Software Measurement: Lecture 3. Metrics in Organization
PDF
Software Common Defect Enumeration
PPT
Ensuring code quality
PDF
An Exploratory Study on the Occurrence of Self-Admitted Technical Debt in And...
PDF
Maturity of-code-mgmt-2016-04-06
PPTX
Software-Engineering-and-Best-Practices.
PPTX
Programming C ppt for learning foundations
PDF
software engineering
PPTX
Line Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPUR
PPT
se01.ppt
PPTX
Capability Building for Cyber Defense: Software Walk through and Screening
PPT
Software engineering
PPT
Software engineering
PDF
The Increasing Value and Complexity of Software Call for the Reevaluation of ...
PDF
How Virtual Compilation Transforms Static Code Analysis
PPTX
Coding and testing in Software Engineering
PPTX
Software Testing overview jay prakash maurya.pptx
Embedded software static analysis_Polyspace-WhitePaper_final
Measuring Your Code
Software Measurement: Lecture 3. Metrics in Organization
Software Common Defect Enumeration
Ensuring code quality
An Exploratory Study on the Occurrence of Self-Admitted Technical Debt in And...
Maturity of-code-mgmt-2016-04-06
Software-Engineering-and-Best-Practices.
Programming C ppt for learning foundations
software engineering
Line Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPUR
se01.ppt
Capability Building for Cyber Defense: Software Walk through and Screening
Software engineering
Software engineering
The Increasing Value and Complexity of Software Call for the Reevaluation of ...
How Virtual Compilation Transforms Static Code Analysis
Coding and testing in Software Engineering
Software Testing overview jay prakash maurya.pptx

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Programs and apps: productivity, graphics, security and other tools
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Mobile App Security Testing_ A Comprehensive Guide.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
Understanding_Digital_Forensics_Presentation.pptx
Spectral efficient network and resource selection model in 5G networks

Software metrics

  • 1. Software Metrics Alexandra – Ionela DONOSA An IV, CTI
  • 2. What are software metrics? Quantitative measurements distilled from data Distilled by measuring software development processes and actual source code Highlight areas that need work in specific nodes of code as well as generalizations about your code overall "You can't control what you can't measure" -Tom DeMarco
  • 3. Limitations of metrics Software metrics are intended to help programmers control and monitor software production, but... It's difficult to determine "how much" software there is in a given program Can give a skewed impression of software, especially when calculated early in the software development process Can be difficult or complex to calculate, especially as the volume of code grows
  • 4. Examples of metrics Lines of code Number of classes & interfaces Code to comment ratio Cyclomatic complexity Code coverage Bugs to lines of code ratio Cohesion Coupling Failed tests per build Version control commits per day Lines of code per commit
  • 5. Terminology Node  A block of source code, usually either a single line, a function/method, class, or package. A node can have multiple children, but only one direct parent Program  A graph of all of the nodes that comprise the source code Flow graph  A directed graph of all of the single line nodes connected with vertices where the possible flow of execution might proceed
  • 6. Some Specifics Lines of Code Code to comment ratio Cyclomatic Complexity Code Coverage Cohesion Coupling Methods for decreasing coupling and increasing cohesion Free tools for auditing software
  • 7. Bibliography :  1. https://wiki.engr.illinois.edu/display/cs242sp13/Software+Metrics 2. http://www.projectinitiation.com/