{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,13]],"date-time":"2026-03-13T08:15:19Z","timestamp":1773389719073,"version":"3.50.1"},"reference-count":21,"publisher":"Association for Computing Machinery (ACM)","issue":"4","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2026,4,30]]},"abstract":"<jats:p>Quantifying code quality and architectural soundness remains a persistent challenge in modern software engineering. Existing tools often rely on isolated or superficial metrics, lacking architectural awareness and actionable insight. This article introduces code health meter (CHM), a fully automated, referentially transparent framework for quantitative and graph-theoretic code quality assessment. CHM statically analyzes source code and produces a 6D signature per module, capturing semantic complexity (maintainability index, Halstead volume, cyclomatic complexity), architectural structure (graph centrality, modularity), and redundancy (code duplication via Rabin\u2013Karp fingerprinting). The framework is designed to be deterministic, explainable, and amenable to longitudinal analysis. We validate CHM on a 14,000-line JavaScript system by tracking its evolution across multiple versions. Our analysis reveals increasing architectural fragmentation, rising code duplication, and declining maintainability. These findings demonstrate CHM\u2019s capability to surface actionable architectural insights, quantify technical debt, and support evidence-driven refactoring decisions. CHM bridges the gap between classical software metrics and architectural reasoning, offering a robust foundation for integrating automated code health monitoring into engineering workflows.<\/jats:p>","DOI":"10.1145\/3737670","type":"journal-article","created":{"date-parts":[[2025,5,30]],"date-time":"2025-05-30T11:40:30Z","timestamp":1748605230000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Code Health Meter: A Quantitative and Graph-Theoretic Foundation for Automated Code Quality and Architecture Assessment"],"prefix":"10.1145","volume":"35","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0901-1921","authenticated-orcid":false,"given":"Hela","family":"Ben Khalfallah","sequence":"first","affiliation":[{"name":"Independent Researcher, Fontenay Sous Bois, France"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2026,3,12]]},"reference":[{"key":"e_1_3_3_2_2","doi-asserted-by":"publisher","DOI":"10.5555\/540137"},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1976.233837"},{"key":"e_1_3_3_4_2","unstructured":"Microsoft. 2022. Maintainability index range and meaning. Microsoft Learn. Retrieved from https:\/\/learn.microsoft.com\/en-us\/visualstudio\/code-quality\/code-metrics-maintainability-index-range-and-meaning"},{"key":"e_1_3_3_5_2","doi-asserted-by":"publisher","DOI":"10.1088\/1742-5468\/2008\/10\/P10008"},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1147\/rd.312.0249"},{"key":"e_1_3_3_7_2","unstructured":"SonarSource. SonarQube documentation. Retrieved May 06 2025 from https:\/\/docs.sonarsource.com\/"},{"key":"e_1_3_3_8_2","unstructured":"J. Stilwell. 2025. escomplex: Software complexity analysis of JavaScript-family abstract syntax trees. GitHub. Retrieved May 06 2025 from https:\/\/github.com\/escomplex\/escomplex"},{"key":"e_1_3_3_9_2","unstructured":"Madge Project. 2025. Madge: Create graphs from your module dependencies. GitHub. Retrieved May 06 2025 from https:\/\/github.com\/pahen\/Madge"},{"key":"e_1_3_3_10_2","unstructured":"H. Ben Khalfallah. 2025. Code Health Meter: A graph-theoretic and metric-based static analysis framework. GitHub repository. Retrieved May 06 2025 from https:\/\/github.com\/helabenkhalfallah\/code-health-meter"},{"key":"e_1_3_3_11_2","unstructured":"Graphology. 2020. Graphology: A robust and multipurpose JavaScript network library. Retrieved May 06 2025 from https:\/\/graphology.github.io"},{"key":"e_1_3_3_12_2","unstructured":"ESLint. ESLint: Pluggable JavaScript Linter. Retrieved May 06 2025 from https:\/\/eslint.org"},{"key":"e_1_3_3_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290353"},{"key":"e_1_3_3_14_2","unstructured":"Code Climate. Maintainability and test coverage for every commit. Retrieved May 2025 from https:\/\/codeclimate.com"},{"key":"e_1_3_3_15_2","unstructured":"DeepSource. Automated code review with customizable analyzers. Retrieved May 2025 from https:\/\/deepsource.com"},{"key":"e_1_3_3_16_2","unstructured":"SonarLint. IDE plugin for on-the-fly code analysis. Retrieved May 2025 from https:\/\/github.com\/SonarSource\/sonarlint-vscode"},{"key":"e_1_3_3_17_2","unstructured":"Moose. Reengineering and analysis platform for software systems. Retrieved May 2025 from https:\/\/modularmoose.org\/about\/"},{"key":"e_1_3_3_18_2","unstructured":"Understand. Static code analysis tool by SciTools. Retrieved May 2025 from https:\/\/scitools.com\/features"},{"key":"e_1_3_3_19_2","unstructured":"Structure101. Architectural analysis and visualization. Retrieved May 2025 from https:\/\/docs.sonarsource.com\/structure101\/java\/studio6\/Default.htm"},{"key":"e_1_3_3_20_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2002.1019480"},{"key":"e_1_3_3_21_2","unstructured":"Deckard. Tree-based scalable code clone detection. Retrieved May 2025 from https:\/\/github.com\/skyhover\/Deckard"},{"key":"e_1_3_3_22_2","unstructured":"jscpd. Copy-paste detector for source code using Rabin\u2013Karp fingerprinting. Retrieved May 2025 from https:\/\/github.com\/kucherenko\/jscpd"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3737670","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,3,13]],"date-time":"2026-03-13T05:28:40Z","timestamp":1773379720000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3737670"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,3,12]]},"references-count":21,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2026,4,30]]}},"alternative-id":["10.1145\/3737670"],"URL":"https:\/\/doi.org\/10.1145\/3737670","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,3,12]]},"assertion":[{"value":"2025-05-20","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-05-23","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-03-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}