loading page

A New Metric based on the Weighted Class Complexity (WCC) metric and measure of complexity for Object-Oriented Systems
  • +3
  • P.G.T Dilmith,
  • D. I. De Silva,
  • B.M.G Peiris,
  • W.A.C. Pabasara,
  • P.A.D.S.D Dilshan,
  • G.W.C.D Jayathilaka
P.G.T Dilmith
Sri Lanka Institute of Information Technology Department of Information Technology
Author Profile
D. I. De Silva
Sri Lanka Institute of Information Technology Department of Information Technology
Author Profile
B.M.G Peiris
Sri Lanka Institute of Information Technology Department of Information Technology
Author Profile
W.A.C. Pabasara
Sri Lanka Institute of Information Technology Department of Information Technology

Corresponding Author:[email protected]

Author Profile
P.A.D.S.D Dilshan
Sri Lanka Institute of Information Technology Department of Information Technology
Author Profile
G.W.C.D Jayathilaka
Sri Lanka Institute of Information Technology Department of Information Technology
Author Profile

Abstract

Class-level complexity is a significant component of software complexity, and measuring software complexity is essential for software development and maintenance. Although the Weighted Class Complexity (WCC) metric has a long history of use, it has some drawbacks, including the equal weighting of complexity components and the exclusion of some complexity elements,. In this paper, we present a novel metric, the Enhanced Weighted Class Complexity (EWCC) metric, which extends the WCC metric by adding more complexity variables and weighting them according to their relative relevance. Data access patterns, method call chains, and control structure complexity are among the other variables. In order to compare the EWCC metric’s output to the WCC metric’s output, we apply it to a number of software systems. We assess the EWCC metric’s performance in locating potential error and bug sources. The findings indicate that, compared to the WCC metric, the EWCC metric offers a more thorough and precise evaluation of class-level complexity. According to the results, software developers and maintainers may find the EWCC measure to be a useful tool for controlling software complexity.