Decoding Code Quality: A Software Metric Analysis of Open-Source JavaScript Projects

Suzad Mohammad, Abdullah Al Jobair, Iftekharul Abedeen

2024

Abstract

The popularity of web-based solutions has seen rapid growth in the last decade, which has raised the demand for JavaScript (JS) usage in personal projects and enterprise solutions. While the extensive demand for JS has elevated, studies have yet to be done on how JS development follows the rules and guides for writing code to meet quality standards. Consequently, we choose to investigate the practice of JS on different project sizes, the developers’ experience, and their impact on code quality and development. To achieve this goal, we perform the code quality analysis of 200 open-source JS projects from GitHub on 10 code quality metrics. We design our research study to examine the influence of project size on issue density, find relationships among 10 code metrics, how code quality changes with developer experience, and determine the capabilities of existing source code evaluation tools. Our findings reveal that issue density decreases with increasing developer experience and project size. In addition, our quantitative study suggests that with the increase in project size and line of code (LOC), project maintainability decreases, leading to more issues such as errors, complexity, code smell, and duplication. However, as developers become more experienced, they face fewer coding challenges, enhance code quality, and reduce code smell per line of code (LOC). Our study also offers valuable insights into the capabilities of the 6 tools mentioned above to advance code evaluation practices.

Download


Paper Citation


in Harvard Style

Mohammad S., Al Jobair A. and Abedeen I. (2024). Decoding Code Quality: A Software Metric Analysis of Open-Source JavaScript Projects. In Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE; ISBN 978-989-758-696-5, SciTePress, pages 63-74. DOI: 10.5220/0012618800003687


in Bibtex Style

@conference{enase24,
author={Suzad Mohammad and Abdullah Al Jobair and Iftekharul Abedeen},
title={Decoding Code Quality: A Software Metric Analysis of Open-Source JavaScript Projects},
booktitle={Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE},
year={2024},
pages={63-74},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012618800003687},
isbn={978-989-758-696-5},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE
TI - Decoding Code Quality: A Software Metric Analysis of Open-Source JavaScript Projects
SN - 978-989-758-696-5
AU - Mohammad S.
AU - Al Jobair A.
AU - Abedeen I.
PY - 2024
SP - 63
EP - 74
DO - 10.5220/0012618800003687
PB - SciTePress