Effectiveness of refactoring metrics model to identify smelly and error prone classes in open source software

Author:

Singh Satwinder1,Kahlon K. S.2

Affiliation:

1. B.B.S.B. Engg. College, Fatehgarh Sahib-140407

2. Guru Nanak Dev University, AMRITSAR-143001

Abstract

In order to improve software maintainability, possible improvement efforts must be made measurable. One such effort is refactoring the code which makes the code easier to read, understand and maintain. It is done by identifying the bad smell area in the code. This paper presents the results of an empirical study to develop a metrics model to identify the smelly classes. In addition, this metrics model is validated by identifying the smelly and error prone classes. The role of two new metrics (encapsulation and information hiding) is also investigated for identifying smelly and faulty classes in software code. This paper first presents a binary statistical analysis of the relationship between metrics and bad smells, the results of which show a significant relationship. Then, the metrics model (with significant metrics shortlisted from the binary analysis) for bad smell categorization (divided into five categories) is developed. To develop the model, three releases of the open source Mozila Firefox system are examined and the model is validated on one version of Mozila Sea Monkey, which has a strong industrial usage. The results show that metrics can predict smelly and faulty classes with high accuracy, but in the case of the categorized model, not all categories of bad smells can adequately be identified. Further, few categorised models can predict the faulty classes. Based on these results, we recommend more training for our model.

Publisher

Association for Computing Machinery (ACM)

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Tuning Code Smell Prediction Models: A Replication Study;Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension;2024-04-15

2. An Approach to Regression Testing Selection based on Code Changes and Smells;8th Brazilian Symposium on Systematic and Automated Software Testing;2023-09-25

3. Improving the Quality of Open Source Software;Agile Software Development;2023-02-08

4. Bug Classification Depend Upon Refactoring Area of Code;Journal of The Institution of Engineers (India): Series B;2023-01-05

5. Object Oriented Metrics Based Empirical Model for Predicting “Code Smells” in Open Source Software;Journal of The Institution of Engineers (India): Series B;2023-01-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3