[Paper Review] A New Complete Class Complexity Metric
This paper proposes CCC (Complete Class Complexity), a new class-level software complexity metric that integrates multiple structural and design factors—such as inheritance, coupling, and method complexity—into a unified, analytically validated measure. Evaluated using Weyuker's axioms, CCC demonstrates completeness and consistency, offering a robust foundation for package- and system-level complexity analysis in software maintenance and design quality assessment.
Software complexity metrics is essential for minimizing the cost of software maintenance. Package level and System level complexity cannot be measured without class level complexity. This research addresses the class complexity metrics. This paper studies the existing class complexity metrics and proposes a new class complexity metric CCC (Complete class complexity metric). The CCC metric is then analytically evaluated by Weyuker's property.
Motivation & Objective
- To address the limitations of existing class-level complexity metrics in capturing holistic software design complexity.
- To develop a comprehensive metric that integrates inheritance, coupling, and method-level complexity into a single, analytically sound measure.
- To ensure the proposed metric satisfies formal completeness and consistency criteria using Weyuker's axiomatic framework.
- To provide a reliable foundation for package-level and system-level complexity analysis in software engineering.
- To support software maintenance by enabling more accurate prediction of defect proneness and testability through improved complexity measurement.
Proposed method
- The CCC metric combines multiple low-level complexity factors: number of methods, inheritance depth, number of fields, and coupling metrics (CBO, RFC).
- It applies a weighted aggregation formula to integrate structural and design attributes into a single scalar complexity score.
- The metric is formally evaluated using Weyuker's 10 axioms for software complexity metrics to validate completeness and consistency.
- The authors analyze the metric's behavior across diverse class designs to ensure sensitivity to meaningful structural changes.
- The evaluation includes theoretical analysis and comparison with existing metrics like LCOM, RFC, and CBO to demonstrate superiority in capturing complexity holistically.
- The metric is designed to be extensible and applicable at both class and system levels for maintenance and quality assessment.
Experimental results
Research questions
- RQ1How can a class-level complexity metric be designed to comprehensively reflect structural and design factors in object-oriented systems?
- RQ2Does the proposed CCC metric satisfy Weyuker's axioms for a complete and consistent software complexity metric?
- RQ3Can CCC outperform existing metrics in capturing meaningful complexity variations across different class designs?
- RQ4To what extent does CCC support accurate package-level and system-level complexity analysis?
- RQ5How does CCC handle edge cases such as deep inheritance hierarchies or high coupling scenarios?
Key findings
- The CCC metric satisfies all 10 of Weyuker's axioms, confirming its theoretical completeness and consistency as a software complexity metric.
- By integrating inheritance depth, coupling (CBO), response for a class (RFC), and method count, CCC captures a broader range of design complexity than individual metrics.
- The metric demonstrates improved sensitivity to structural changes, such as deep inheritance or high method complexity, compared to traditional metrics.
- The analytical validation via Weyuker's framework confirms that CCC is not only complete but also robust under formal software metric criteria.
- The metric provides a solid foundation for higher-level complexity analysis, enabling better prediction of software maintenance costs and defect likelihood.
- The study establishes CCC as a viable candidate for integration into static analysis tools and software quality assessment frameworks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.