An Empirical Study on Bug Severity Estimation using Source Code Metrics and Static Analysis
Ehsan Mashhadi, Shaiful Chowdhury, Somayeh Modaberi, Hadi Hemmati,, Gias Uddin

TL;DR
This study evaluates the effectiveness of source code metrics and static analysis tools in predicting bug severity, revealing their limitations and suggesting future research directions for more accurate severity estimation.
Contribution
It provides a comprehensive empirical analysis of code metrics and static analysis tools for bug severity prediction, highlighting their weaknesses and exploring characteristics of severe bugs.
Findings
Code metrics predict buggy code but not severity.
Static analysis tools perform poorly in severity prediction.
Security bugs tend to have higher severity.
Abstract
In the past couple of decades, significant research efforts have been devoted to the prediction of software bugs (i.e., defects). In general, these works leverage a diverse set of metrics, tools, and techniques to predict which classes, methods, lines, or commits are buggy. However, most existing work in this domain treats all bugs the same, which is not the case in practice. The more severe the bugs the higher their consequences. Therefore, it is important for a defect prediction method to estimate the severity of the identified bugs, so that the higher severity ones get immediate attention. In this paper, we provide a quantitative and qualitative study on two popular datasets (Defects4J and Bugs.jar), using 10 common source code metrics, and two popular static analysis tools (SpotBugs and Infer) for analyzing their capability to predict defects and their severity. We studied 3,358…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Reliability and Analysis Research · Software System Performance and Reliability
