APPLICATION OF MCCABE METRIC IN ESTIMATING SOFTWARE COMPLEXITY

Authors

  • Sharipov Bakhodir Akilovich Author

Keywords:

McCabe metric, cyclomatic complexity, software complexity, software engineering, control flow graph, software testing, code quality, maintainability, program structure

Abstract

Software complexity is one of the most important factors influencing the quality, reliability, maintainability, and testing of modern software systems. As software applications become increasingly sophisticated, evaluating their structural complexity is essential for developers, software engineers, and project managers. This article examines the application of McCabe's Cyclomatic Complexity Metric as an effective method for estimating software complexity. The study explores the theoretical foundations of the metric, its mathematical formulation, practical implementation, and significance in software development and testing. Particular attention is given to the relationship between cyclomatic complexity, control flow graphs, independent execution paths, and software maintainability. The article also discusses the advantages and limitations of the McCabe metric and presents practical recommendations for its effective application in software engineering. The findings demonstrate that cyclomatic complexity provides a valuable quantitative basis for identifying complex program structures, improving testing strategies, and supporting software quality assurance.

References

McCabe, T. J. (1976). A Complexity Measure. IEEE Transactions on Software Engineering, SE-2(4), 308–320. https://doi.org/10.1109/TSE.1976.233837

Pressman, R. S., & Maxim, B. R. (2020). Software Engineering: A Practitioner's Approach (9th ed.). McGraw-Hill Education.

Sommerville, I. (2016). Software Engineering (10th ed.). Pearson.

Fenton, N. E., & Bieman, J. M. (2014). Software Metrics: A Rigorous and Practical Approach (3rd ed.). CRC Press.

ISO/IEC 25010:2011. Systems and Software Engineering – Systems and Software Quality Requirements and Evaluation (SQuaRE) – System and Software Quality Models. International Organization for Standardization.

Weyuker, E. J. (1988). Evaluating Software Complexity Measures. IEEE Transactions on Software Engineering, 14(9), 1357–1365.

Zuse, H. (1998). A Framework of Software Measurement. Walter de Gruyter.

SonarSource. Code Metrics and Software Quality Analysis Documentation. https://docs.sonarsource.com/

Published

2026-11-20