SlideShare a Scribd company logo
MEASURING THE CODE QUALITY USING
SOFTWARE METRICS – TO IMPROVE THE
EFFICIENCY OF SPECIFICATION MINING
Guided By
Ms.P.R.Piriyankaa.,ME
Assistant Professor.
Presented By,
M.Geethanjali (ME).,
Sri Krishna College of Engg and Tech.
INTRODUCTION
 Incorrect and buggy software costs up to
$70 Billion each year in US.
 Formal Specifications defines testing,
optimization, refactoring, documentation,
debugging and repair.
 False Positive rates – We think there is a
vulnerability but actually that is not present.
PROBLEM STATEMENT
 The cost of Software Maintenance consumes up
to 90% of the total project cost and 60% of the
maintenance time.
 Formal Specifications are very necessary but
they are difficult for programmers to write them
manually.
 Existing automatic specification mining
produces high false positive rates.
EXISTING SYSTEM
 Formal specification is done for each and every
software and the quality of the code is checked.
 Set of software Metrics are used to measure the
quality of the software.
 General Quality Metrics
 Chidamber and Kemerer Metrics.
 These Software Metrics are used to measure the
quality of the code.
EXISTING SYSTEM CONT...
 The quality of the code is lifted with the results
obtained.
 Prediction is used to compare the obtained
results with randomly generated learned data
items.
 Automatic specification miner that balances the
true and false positive specifications.
 True positive – Required behaviour.
 False positives – Non-Required behaviour.
DISADVANTAGES
 The false positive rates are reduced from
90% to an average of 30%.
 The accuracy of the software is only 80%.
 The computation time is low.
PROPOSED SYSTEM
PROPOSED SYSTEM
 The classification is based on Support
Vector Machine Algorithm.
 The measured attributes of the software is
compared with the training dataset.
 The accuracy of the software is calculated.
 The False Positive rate for the specific
software is also found.
ADVANTAGES
 Reduces the burden of manual inspection of the
code.
 By knowing the quality of the code before the
deployment the developers can easily lift the
quality.
 The accuracy of the software is about 95%.
 Minimises the false positive rates from 90% to
5%.
BLOCK DIAGRAM
LIST OF MODULES
 General Code Quality Metrics.
 Code quality of complexity metrics.
 Implementation of mining algorithm – Naive Bayes
Algorithm
 Implementation of mining algorithm – Support
Vector Machine Algorithm.
 Finding the False positive rates using learning
model.
GENERAL QUALITY METRICS
 The quality of the software is implemented using
the following metrics:
 Code Churns
 Code clones
 Author Rank
 Code Readability
 Path Frequency
 Path Density
CHIDAMBER & KEMERER METRICS
 These are also known as Object Oriented
Metrics:
 Weighted Methods per class (WMC)
 Depth of Inheritance (DIT)
 Number of children (NOC)
 Coupling between Objects (CBO)
PREDICTION ANALYSIS
 The dataset will contain the randomly generated
learned data items.
 Naive Bayes algorithm is used.
 The measured result of the software is compared
along with the data set.
 The predicted result for the selected software
will be displayed.
 Using this result the quality of the code can be
determined.
PREDICTION USING SVM
 The measured attributes are compared with
the learned dataset.
 The accuracy of the for the selected software
will be displayed.
 The false positive rates are obtained.
GENERAL CODE QUALITY METRICS
CODE QUALITY OF CK METRICS
PREDICTION ANALYSIS
FALSE POSITIVES & ACCURACY USING SVM
COMPARISON OF ACCURACY
COMPARISON OF FALSE POSITIVE RATE
CONCLUSION
 Since the quality of the code is checked before
deploying the software, the quality of the
software will be assured.
 The cost spent for maintenance will also be
reduced.
 Compared to other automatic miners the false
positive rate is reduced to a negligible value.
REFERENCES
 Measuring Code Quality to improve
specification mining – Claire Le Goues.
 A study of consistent and inconsistent changes to
code clones –Jens Krinke.
 Who are are Source code contributers and how
do they change? – Massimiliano Di Penta.
 The road not taken: Estimating the Path
Execution Frequency Statically – Raymond
P.L.Buse
THANK YOU!!!

More Related Content

DOCX
tulasi
DOCX
Concept of Failure, error, fault and defect
PPTX
Abc of testing
PPTX
Software Testing
PPTX
Performance Aware Development
PPTX
Overview of Software QA and What is Software Quality
PPTX
Regression testing
PPT
Software testing lecture 10
tulasi
Concept of Failure, error, fault and defect
Abc of testing
Software Testing
Performance Aware Development
Overview of Software QA and What is Software Quality
Regression testing
Software testing lecture 10

What's hot (20)

PPT
Reporting On The Testing Process
PPTX
Software testing introduction
PPT
Software testing lecture 9
PPT
Testing Types And Models
PPTX
How to Avoid Continuously Delivering Faulty Software
PPTX
Manual testing-training-institute-in-marathahalli
PPTX
Software testing fundamentals
PPT
Verification and Validation in Software Engineering SE19
PDF
4. The Software Development Process - Testing
PPT
Testing Software Solutions
PPTX
Testing (System Analysis and Design)
PPT
Static white box testing lecture 12
PPT
Technical Testing Introduction
PPTX
Basics of software testing webwing technologies
PPTX
Types of software testing
PDF
Software testing methods, levels and types
PPTX
Software testing strategies
PPT
Introduction and Role of a manual testing in a SDLC
PPTX
Defect free development - QS Tag2019
PPTX
Software testing career
Reporting On The Testing Process
Software testing introduction
Software testing lecture 9
Testing Types And Models
How to Avoid Continuously Delivering Faulty Software
Manual testing-training-institute-in-marathahalli
Software testing fundamentals
Verification and Validation in Software Engineering SE19
4. The Software Development Process - Testing
Testing Software Solutions
Testing (System Analysis and Design)
Static white box testing lecture 12
Technical Testing Introduction
Basics of software testing webwing technologies
Types of software testing
Software testing methods, levels and types
Software testing strategies
Introduction and Role of a manual testing in a SDLC
Defect free development - QS Tag2019
Software testing career
Ad

Viewers also liked (20)

PPTX
Agile code quality metrics
PPTX
Code Quality Assurance
PDF
Measuring Code Quality in WTF/min.
PDF
Code Quality Assurance v4 (2013)
PPTX
Choosing an IoC container
PPT
High-Quality JavaScript Code
PDF
Source Code Quality
PPT
Code Quality Learn, Measure And Organize Awareness
KEY
Code Quality Analysis
PPSX
Agile Scrum in 60 minutes
PPTX
Code metrics
PDF
Agile metrics - Measure and Improve
PPT
Agile Metrics
PDF
Managing code quality with SonarQube - Radu Vunvulea
PPTX
Presentation -Quality Metrics For Agile Development
PPTX
Top 10 Agile Metrics
PPT
Agile Metrics
PDF
Agile Base Camp - Agile metrics
PPTX
User-Perceived Source Code Quality Estimation based on Static Analysis Metrics
PDF
Code quality as a built-in process
Agile code quality metrics
Code Quality Assurance
Measuring Code Quality in WTF/min.
Code Quality Assurance v4 (2013)
Choosing an IoC container
High-Quality JavaScript Code
Source Code Quality
Code Quality Learn, Measure And Organize Awareness
Code Quality Analysis
Agile Scrum in 60 minutes
Code metrics
Agile metrics - Measure and Improve
Agile Metrics
Managing code quality with SonarQube - Radu Vunvulea
Presentation -Quality Metrics For Agile Development
Top 10 Agile Metrics
Agile Metrics
Agile Base Camp - Agile metrics
User-Perceived Source Code Quality Estimation based on Static Analysis Metrics
Code quality as a built-in process
Ad

Similar to Measuring the Code Quality Using Software Metrics (20)

PPTX
Expanding the idea of static analysis from code check to other development pr...
DOCX
Se unit 4
PDF
Software metrics validation
PDF
Software Development Metrics You Can Count On
PDF
boughtonalexand jdjdjfjjfjfjfjnfjfjjjfkdifij
PDF
Reengineering framework for open source software using decision tree approach
PPTX
INGI2252 Software Measures & Maintenance
PPTX
Ch-3 for software Maintenance Measurement.pptx
PPT
lec27.ppt
PDF
Quality and Software Design Patterns
PDF
Software metrics by Dr. B. J. Mohite
PDF
EFFECTIVE IMPLEMENTATION OF AGILE PRACTICES – OBJECT ORIENTED METRICS TOOL TO...
PPT
software-quality-assurance.pptQuality assurance consists of those procedures,...
PDF
A defect prediction model based on the relationships between developers and c...
PDF
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
PDF
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
PDF
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
PPTX
Survey on Software Defect Prediction
PDF
IJSRED-V2I4P8
PDF
Class quality evaluation using class quality
Expanding the idea of static analysis from code check to other development pr...
Se unit 4
Software metrics validation
Software Development Metrics You Can Count On
boughtonalexand jdjdjfjjfjfjfjnfjfjjjfkdifij
Reengineering framework for open source software using decision tree approach
INGI2252 Software Measures & Maintenance
Ch-3 for software Maintenance Measurement.pptx
lec27.ppt
Quality and Software Design Patterns
Software metrics by Dr. B. J. Mohite
EFFECTIVE IMPLEMENTATION OF AGILE PRACTICES – OBJECT ORIENTED METRICS TOOL TO...
software-quality-assurance.pptQuality assurance consists of those procedures,...
A defect prediction model based on the relationships between developers and c...
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
Survey on Software Defect Prediction
IJSRED-V2I4P8
Class quality evaluation using class quality

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
Cell Types and Its function , kingdom of life
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Pre independence Education in Inndia.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Basic Mud Logging Guide for educational purpose
PPTX
master seminar digital applications in india
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
TR - Agricultural Crops Production NC III.pdf
Lesson notes of climatology university.
Cell Types and Its function , kingdom of life
O7-L3 Supply Chain Operations - ICLT Program
Pre independence Education in Inndia.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Anesthesia in Laparoscopic Surgery in India
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Renaissance Architecture: A Journey from Faith to Humanism
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
GDM (1) (1).pptx small presentation for students
Basic Mud Logging Guide for educational purpose
master seminar digital applications in india
FourierSeries-QuestionsWithAnswers(Part-A).pdf
human mycosis Human fungal infections are called human mycosis..pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
TR - Agricultural Crops Production NC III.pdf

Measuring the Code Quality Using Software Metrics

  • 1. MEASURING THE CODE QUALITY USING SOFTWARE METRICS – TO IMPROVE THE EFFICIENCY OF SPECIFICATION MINING Guided By Ms.P.R.Piriyankaa.,ME Assistant Professor. Presented By, M.Geethanjali (ME)., Sri Krishna College of Engg and Tech.
  • 2. INTRODUCTION  Incorrect and buggy software costs up to $70 Billion each year in US.  Formal Specifications defines testing, optimization, refactoring, documentation, debugging and repair.  False Positive rates – We think there is a vulnerability but actually that is not present.
  • 3. PROBLEM STATEMENT  The cost of Software Maintenance consumes up to 90% of the total project cost and 60% of the maintenance time.  Formal Specifications are very necessary but they are difficult for programmers to write them manually.  Existing automatic specification mining produces high false positive rates.
  • 4. EXISTING SYSTEM  Formal specification is done for each and every software and the quality of the code is checked.  Set of software Metrics are used to measure the quality of the software.  General Quality Metrics  Chidamber and Kemerer Metrics.  These Software Metrics are used to measure the quality of the code.
  • 5. EXISTING SYSTEM CONT...  The quality of the code is lifted with the results obtained.  Prediction is used to compare the obtained results with randomly generated learned data items.  Automatic specification miner that balances the true and false positive specifications.  True positive – Required behaviour.  False positives – Non-Required behaviour.
  • 6. DISADVANTAGES  The false positive rates are reduced from 90% to an average of 30%.  The accuracy of the software is only 80%.  The computation time is low.
  • 8. PROPOSED SYSTEM  The classification is based on Support Vector Machine Algorithm.  The measured attributes of the software is compared with the training dataset.  The accuracy of the software is calculated.  The False Positive rate for the specific software is also found.
  • 9. ADVANTAGES  Reduces the burden of manual inspection of the code.  By knowing the quality of the code before the deployment the developers can easily lift the quality.  The accuracy of the software is about 95%.  Minimises the false positive rates from 90% to 5%.
  • 11. LIST OF MODULES  General Code Quality Metrics.  Code quality of complexity metrics.  Implementation of mining algorithm – Naive Bayes Algorithm  Implementation of mining algorithm – Support Vector Machine Algorithm.  Finding the False positive rates using learning model.
  • 12. GENERAL QUALITY METRICS  The quality of the software is implemented using the following metrics:  Code Churns  Code clones  Author Rank  Code Readability  Path Frequency  Path Density
  • 13. CHIDAMBER & KEMERER METRICS  These are also known as Object Oriented Metrics:  Weighted Methods per class (WMC)  Depth of Inheritance (DIT)  Number of children (NOC)  Coupling between Objects (CBO)
  • 14. PREDICTION ANALYSIS  The dataset will contain the randomly generated learned data items.  Naive Bayes algorithm is used.  The measured result of the software is compared along with the data set.  The predicted result for the selected software will be displayed.  Using this result the quality of the code can be determined.
  • 15. PREDICTION USING SVM  The measured attributes are compared with the learned dataset.  The accuracy of the for the selected software will be displayed.  The false positive rates are obtained.
  • 17. CODE QUALITY OF CK METRICS
  • 19. FALSE POSITIVES & ACCURACY USING SVM
  • 21. COMPARISON OF FALSE POSITIVE RATE
  • 22. CONCLUSION  Since the quality of the code is checked before deploying the software, the quality of the software will be assured.  The cost spent for maintenance will also be reduced.  Compared to other automatic miners the false positive rate is reduced to a negligible value.
  • 23. REFERENCES  Measuring Code Quality to improve specification mining – Claire Le Goues.  A study of consistent and inconsistent changes to code clones –Jens Krinke.  Who are are Source code contributers and how do they change? – Massimiliano Di Penta.  The road not taken: Estimating the Path Execution Frequency Statically – Raymond P.L.Buse