The inaccuracy of uniform counting in software metrics: empirical evidence with a weighted remedy


연구 분야: Verification



학회: Iran Journal of Computer Science


초록

Software metrics that count class elements, like methods and attributes, are widely used to measure cohesion, detect God Classes, and support software refactoring. However, these metrics treat all class elements the same, leading to errors. This paper presents empirical evidence that counting elements evenly introduces significant bias. To address this issue, the paper proposes a weighted approach based on scientific literature and expert input. Using Sahand 2.0, a code analysis tool with detailed inspection abilities, the proposed method was tested on three Java open-source systems (RxJava, jmt, and Hibernate). The experiments show that weighted measures reduce bias compared to simple counts. Still, finding optimal weights is challenging due to differing professional opinions, and more validation is needed. The research suggests that data-driven or machine learning methods could further improve the reliability of software quality metrics.


Author Profile
Gholamali Nejad Hajali Irani

Department of Computer Engineering University of Bonab Bonab Iran

Iran

📄 논문 정보

발행 연도 2025년
인용수 0
출판 국가 Iran
사이트 Springer
좋아요 수 0

연관 논문 목록 (279건)