SlideShare a Scribd company logo
1 of 12
Software
Metrics
BY- RAVINA JESWANI
Once a project is found to be feasible, software
project managers undertake project planning. Project
planning is undertaken and completed even before
any development activity starts. Project planning
consists of the following essential activities:
• Estimating the following attributes of the project:
1. Project size: What will be problem complexity in
terms of the effort and time required to develop
the product?
2. Cost: How much is it going to cost to develop the
project?
3. Duration: How long is it going to take to complete
development?
4. Effort: How much effort would be required?
The effectiveness of the subsequent planning
activities is based on the accuracy of these
estimations.
• Scheduling manpower and other resources
• Staff organization and staffing plans
• Risk identification, analysis, and abatement planning
• Miscellaneous plans such as quality assurance plan,
configuration management plan, etc.
Project Planning :
Measures, Metrics, Measurements and Indicators:
 A measure provides a quantitative indication of the extent, dimension, size, capacity, efficiency, productivity or
reliability of some attributes of a product or process.
Example: Number of defects found in component testing. LOC of each component
 Measurement is the act of determining a measure.
Example: Collecting the defect counts. Counting LOC.
 A metric is a quantitative measure of the degree to which a system, component or process possesses a given
attribute.
Example: defects found in component testing/LOC of code tested.
 A Indicator is a metrics or series of metrics that provide insight into a process, project or product.
Software Metrics :
Software Metrics refers to a range of measurements for computer software that
enable software people to gain insight into the project :
To improve the Process and the Product
Assist in Estimation
Productivity Assessment
Quality Control
Project Control
Why do we Measure?
1. To characterize
• To gain understanding of Product, Process, and ?
• To establish baseline for future comparisons
2. To evaluate
• To determine status within the plan
3. To predicate
• So that we can plan. Update estimates
4. To improve
• We would have more information “quantitative” to help determine root causes
Categories of
Metrics
Product Metrics:
 These measurements relate to SW product and all related artifacts.
 Examples: code, design docs, test plan, user manual …LOC, # of objects, #
# of pages, # of files.
Process Metrics:
 These measures used to quantify characteristics of the SW process.
 Usually related to events or things that occur.
 Examples: # defects found in test, # requirements changes, # days to
complete task …
Project Metrics:
 used to manage the SW project “Tactic”.
 Estimating cost is the first application of Project Metrics.
 Examples: estimates of SW development time based on past projects.
• Product Metrics
• Process Metrics
• Project Metrics
Software Measurements :
Two categories of measurement :
1. Direct measures - measurements that are more tangible.
o Cost, time, and efforts are Direct Process measures
o LOC, memory size are examples of Direct Product measures
2. Indirect measures - measurements of things that describe the characteristics of
a product or process. These are the "abilities".
o Functionality, quality, complexity, efficiency, reliability
Normalization for Metrics :
Normalized data are used to evaluate the process and the
product.
 Size-oriented normalization - line-of-code approach
 Function-oriented normalization - function point approach
Size-Oriented Metrics :
 Size‐oriented software metrics are derived by normalizing quality and/or productivity measures by
considering the size of the software that has been produced.
 This metrics is one of simplest and earliest metrics that is used for computer program to measure size.
 The size measurement is based on lines of code computation.
 There are thousand lines of code (KLOC) which are often chosen as the normalization value.
 While counting lines of code, simplest standard is:
 Don’t count blank lines
 Don’t count comments
 Count everything else
 The size-oriented measure is not a universally accepted method.
Metrics include:
Size = Kilo(1000) Lines of Code (KLOC)
Effort = Person / month
Productivity = KLOC / person-month
Quality = Errors/ KLOC
Cost = $ / KLOC
Documentation = Pages of documentation / KLOC
This metric is not universally accepted as the best way to measure the software
process.
Example : For a size oriented metrics, software organization maintains
records in tabular form. The typical table entries are: Project Name, LOC,
Efforts, Pages of documents, Errors, Defects, Total number of people working
on it.
 Possible data to collect :
• number of lines of code
• number of person-months to
complete
• cost of the project
• number of pages of documentation
• number of errors corrected before
release
• number of bugs found post release
1. Using these metrics, it is very simple to measure
size.
2. Artefact of Software development which is easily
counted.
3. LOC is used by many methods that are already
existing as a key input.
4. A large body of literature and data based on LOC
already exists.
1. This measure is dependent upon programming language.
2. This method is well designed upon programming
language.
3. It does not accommodate non-procedural languages.
4. Sometimes, it is very difficult to estimate LOC in early
stage of development.
5. Though it is simple to measure but it is very hard to
understand it for users.
6. It cannot measure size of specification as it is defined on
code.
Advantages Disadvantages
Size-Oriented Metric’s
Software metrics

More Related Content

What's hot

Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
Piyush Gogia
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19
koolkampus
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 
Decision table
Decision tableDecision table
Decision table
DMANIMALA
 
ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
 ppt on sOFTWARE DEVELOPMENT LIFE CYCLE ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
Swarnima Tiwari
 

What's hot (20)

Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
 
Software Metrics - Software Engineering
Software Metrics - Software EngineeringSoftware Metrics - Software Engineering
Software Metrics - Software Engineering
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
 
Functional and non functional
Functional and non functionalFunctional and non functional
Functional and non functional
 
Decision table
Decision tableDecision table
Decision table
 
Concept of Failure, error, fault and defect
Concept of Failure, error, fault and defectConcept of Failure, error, fault and defect
Concept of Failure, error, fault and defect
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Software Quality Metrics
Software Quality MetricsSoftware Quality Metrics
Software Quality Metrics
 
Object oriented testing
Object oriented testingObject oriented testing
Object oriented testing
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineering
 
Input output systems ppt - cs2411
Input output systems ppt - cs2411Input output systems ppt - cs2411
Input output systems ppt - cs2411
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
 ppt on sOFTWARE DEVELOPMENT LIFE CYCLE ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
ppt on sOFTWARE DEVELOPMENT LIFE CYCLE
 
Software Engineering Practice
Software Engineering PracticeSoftware Engineering Practice
Software Engineering Practice
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineering
 
Pressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metricsPressman ch-22-process-and-project-metrics
Pressman ch-22-process-and-project-metrics
 

Similar to Software metrics

Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptx
rituah
 

Similar to Software metrics (20)

Unit2 - Metrics.pptx
Unit2 - Metrics.pptxUnit2 - Metrics.pptx
Unit2 - Metrics.pptx
 
Project Matrix and Measuring S/W
Project Matrix and Measuring S/WProject Matrix and Measuring S/W
Project Matrix and Measuring S/W
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Project Management (2).pdf
Project Management (2).pdfProject Management (2).pdf
Project Management (2).pdf
 
Project Management.pdf
Project Management.pdfProject Management.pdf
Project Management.pdf
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
55 sample chapter
55 sample chapter55 sample chapter
55 sample chapter
 
CH. 5.pdf
CH. 5.pdfCH. 5.pdf
CH. 5.pdf
 
software metrics(process,project,product)
software metrics(process,project,product)software metrics(process,project,product)
software metrics(process,project,product)
 
Software matrics and measurement
Software matrics and measurementSoftware matrics and measurement
Software matrics and measurement
 
242296
242296242296
242296
 
Process and Project Metrics-1
Process and Project Metrics-1Process and Project Metrics-1
Process and Project Metrics-1
 
ITFT - Project planning
ITFT  -    Project planningITFT  -    Project planning
ITFT - Project planning
 
SE-Lecture-5.pptx
SE-Lecture-5.pptxSE-Lecture-5.pptx
SE-Lecture-5.pptx
 
Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)Bca 5th sem seminar(software measurements)
Bca 5th sem seminar(software measurements)
 
Software engineering 11 software quality assurance plans
Software engineering 11 software quality assurance plansSoftware engineering 11 software quality assurance plans
Software engineering 11 software quality assurance plans
 
Importance of software quality metrics
Importance of software quality metricsImportance of software quality metrics
Importance of software quality metrics
 
Cost estimation
Cost estimationCost estimation
Cost estimation
 
Software engineering 3 software process
Software engineering 3 software processSoftware engineering 3 software process
Software engineering 3 software process
 
Unit 1.pdf
Unit 1.pdfUnit 1.pdf
Unit 1.pdf
 

More from Sophia Girls' College(Autonomous), Ajmer

More from Sophia Girls' College(Autonomous), Ajmer (11)

Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Quiz on XML
Quiz on XMLQuiz on XML
Quiz on XML
 
Quiz on Relational Algebra
Quiz on Relational AlgebraQuiz on Relational Algebra
Quiz on Relational Algebra
 
Dbms quiz
Dbms quiz Dbms quiz
Dbms quiz
 
Software Engineering Quiz
Software Engineering QuizSoftware Engineering Quiz
Software Engineering Quiz
 
Managment spectrum
Managment spectrumManagment spectrum
Managment spectrum
 
Software Process
Software ProcessSoftware Process
Software Process
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Group signature
Group signatureGroup signature
Group signature
 
Data Mining
Data Mining Data Mining
Data Mining
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

Software metrics

  • 2. Once a project is found to be feasible, software project managers undertake project planning. Project planning is undertaken and completed even before any development activity starts. Project planning consists of the following essential activities: • Estimating the following attributes of the project: 1. Project size: What will be problem complexity in terms of the effort and time required to develop the product? 2. Cost: How much is it going to cost to develop the project? 3. Duration: How long is it going to take to complete development? 4. Effort: How much effort would be required? The effectiveness of the subsequent planning activities is based on the accuracy of these estimations. • Scheduling manpower and other resources • Staff organization and staffing plans • Risk identification, analysis, and abatement planning • Miscellaneous plans such as quality assurance plan, configuration management plan, etc. Project Planning :
  • 3. Measures, Metrics, Measurements and Indicators:  A measure provides a quantitative indication of the extent, dimension, size, capacity, efficiency, productivity or reliability of some attributes of a product or process. Example: Number of defects found in component testing. LOC of each component  Measurement is the act of determining a measure. Example: Collecting the defect counts. Counting LOC.  A metric is a quantitative measure of the degree to which a system, component or process possesses a given attribute. Example: defects found in component testing/LOC of code tested.  A Indicator is a metrics or series of metrics that provide insight into a process, project or product.
  • 4. Software Metrics : Software Metrics refers to a range of measurements for computer software that enable software people to gain insight into the project : To improve the Process and the Product Assist in Estimation Productivity Assessment Quality Control Project Control
  • 5. Why do we Measure? 1. To characterize • To gain understanding of Product, Process, and ? • To establish baseline for future comparisons 2. To evaluate • To determine status within the plan 3. To predicate • So that we can plan. Update estimates 4. To improve • We would have more information “quantitative” to help determine root causes
  • 6. Categories of Metrics Product Metrics:  These measurements relate to SW product and all related artifacts.  Examples: code, design docs, test plan, user manual …LOC, # of objects, # # of pages, # of files. Process Metrics:  These measures used to quantify characteristics of the SW process.  Usually related to events or things that occur.  Examples: # defects found in test, # requirements changes, # days to complete task … Project Metrics:  used to manage the SW project “Tactic”.  Estimating cost is the first application of Project Metrics.  Examples: estimates of SW development time based on past projects. • Product Metrics • Process Metrics • Project Metrics
  • 7. Software Measurements : Two categories of measurement : 1. Direct measures - measurements that are more tangible. o Cost, time, and efforts are Direct Process measures o LOC, memory size are examples of Direct Product measures 2. Indirect measures - measurements of things that describe the characteristics of a product or process. These are the "abilities". o Functionality, quality, complexity, efficiency, reliability
  • 8. Normalization for Metrics : Normalized data are used to evaluate the process and the product.  Size-oriented normalization - line-of-code approach  Function-oriented normalization - function point approach
  • 9. Size-Oriented Metrics :  Size‐oriented software metrics are derived by normalizing quality and/or productivity measures by considering the size of the software that has been produced.  This metrics is one of simplest and earliest metrics that is used for computer program to measure size.  The size measurement is based on lines of code computation.  There are thousand lines of code (KLOC) which are often chosen as the normalization value.  While counting lines of code, simplest standard is:  Don’t count blank lines  Don’t count comments  Count everything else  The size-oriented measure is not a universally accepted method.
  • 10. Metrics include: Size = Kilo(1000) Lines of Code (KLOC) Effort = Person / month Productivity = KLOC / person-month Quality = Errors/ KLOC Cost = $ / KLOC Documentation = Pages of documentation / KLOC This metric is not universally accepted as the best way to measure the software process. Example : For a size oriented metrics, software organization maintains records in tabular form. The typical table entries are: Project Name, LOC, Efforts, Pages of documents, Errors, Defects, Total number of people working on it.  Possible data to collect : • number of lines of code • number of person-months to complete • cost of the project • number of pages of documentation • number of errors corrected before release • number of bugs found post release
  • 11. 1. Using these metrics, it is very simple to measure size. 2. Artefact of Software development which is easily counted. 3. LOC is used by many methods that are already existing as a key input. 4. A large body of literature and data based on LOC already exists. 1. This measure is dependent upon programming language. 2. This method is well designed upon programming language. 3. It does not accommodate non-procedural languages. 4. Sometimes, it is very difficult to estimate LOC in early stage of development. 5. Though it is simple to measure but it is very hard to understand it for users. 6. It cannot measure size of specification as it is defined on code. Advantages Disadvantages Size-Oriented Metric’s