Innovating Software Complexity Measurement: A New Dimension in OO-Based Metrics
J. H. Aluthwaththage, H. A. N. N. Thathsarani · 2024
This paper introduces a novel software complexity metric tailored for object-oriented programming called the Weighted Complexity (WC) metric. Addressing the growing intricacies of modern software systems, the WC metric integrates multiple dimensions of complexity, including structural, data, control, systemic, and cognitive aspects. By considering factors such as the nesting level of control structures, type of control structures, try-catch blocks, threads, and dynamic memory access, this metric offers a comprehensive evaluation of code complexity. The WC metric is demonstrated through a detailed computation example illustrating its practical application and benefits. The proposed metric not only enhances the understanding of software complexity but also provides actionable insights for improving code maintainability and reliability. Integration with continuous integration/continuous deployment pipelines, static code analysis tools, and agile development practices further underscores its utility in real-world software development environments. By offering a multifaceted approach to complexity assessment, the WC metric aims to enrich the toolkit of software engineers, promoting robust development practices and higher quality software systems.