Code Complexity Calculator based on Improved Cognitive Based (ICB) Complexity Metrics
Main Article Content
Abstract
This research paper introduces an innovative approach to assessing code complexity in object-oriented programming, focusing on enhancing the Improved CB (ICB) metric. Code complexity significantly impacts software quality and maintainability. The study presents an advanced complexity measurement tool that refines the ICB metric by considering factors like inheritance depth, control structure types, nesting levels, statement size, compound conditionals, threads, and recursion. These refinements improve the accuracy of code complexity assessment, aiding informed decision-making in software development and maintenance. The paper reviews related cognitive-based complexity metrics, emphasizing their contributions to code complexity evaluation. It discusses the importance of code complexity assessment in software engineering. The proposed system, a real-time Java code complexity calculation desktop application, offers insightful metrics, including code size and ICB values, presented through charts for better code comprehension. It underscores the necessity of entering a code for meaningful results. In conclusion, the Code Analyzer Tool provides a systematic, data-driven approach to code quality assessment, facilitating code optimization, and clear communication. It promises to be an indispensable asset for software development teams dedicated to delivering maintainable and high-quality software solutions.