Skip to main navigation Skip to search Skip to main content

An Exploratory Study of the Code Quality of Open-Source JavaScript Projects

  • International University of Business, Agriculture and Technology
  • United International University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

JavaScript (JS) has been the most dominant language in the programming world, extending its use across diverse domains. Despite the wide usage of JavaScript, a limited study highlights the programming trends and code quality metrics and their influence on one another. Addressing this gap, we conduct an exploratory study of the code quality of open-source JavaScript projects to examine code practices across various project sizes and developer experience levels, uncovering the underlying factors impacting code quality metrics and their influence on development. We choose 200 open-source projects from GitHub, select six code evaluation tools, and perform in-depth code analysis using 10 code metrics. The analyzed code metrics include maintainability, average estimated error, lint error, cyclomatic complexity, cognitive complexity, code smell, code duplication, issue density, Line of Code (LOC), and code quality. Furthermore, we conduct an analysis of 69 open-source Continuous Integration and Continuous Deployment (CI/CD) implemented projects and compare how CI/CD practices influence code metrics. It becomes evident from the results that with the increment of project size, maintainability tends to decrease, and average estimated error, lint error, cyclomatic complexity, cognitive complexity, and code smell increase. The more experience a developer has, the better the quality of code produced. Furthermore, projects implementing a CI/CD pipeline are also seen to have better code quality metrics, indicating a direct relation between the implementation of CI/CD practices and improved software quality. This study contributes to bridging the gap between academic research and practical software development by uncovering concealed insights for better development practices. Moreover, by highlighting the recent CI/CD trends and their impact on software development, the study opens up future directions of relevant research in this domain.

Original languageEnglish
Title of host publicationEvaluation of Novel Approaches to Software Engineering - 19th International Conference, ENASE 2024, Revised Selected Papers
EditorsLeszek Maciaszek, Hermann Kaindl, Mike Mannion
PublisherSpringer Science and Business Media Deutschland GmbH
Pages242-272
Number of pages31
ISBN (Print)9783032190499
DOIs
Publication statusPublished - 2026
Externally publishedYes
Event19th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE 2024 - Angers, France
Duration: 28 Apr 202429 Apr 2024

Publication series

NameCommunications in Computer and Information Science
Volume2877 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference19th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE 2024
Country/TerritoryFrance
CityAngers
Period28/04/2429/04/24

Keywords

  • CI/CD
  • Code duplication
  • Code quality
  • Code smell
  • Cognitive complexity
  • Cyclomatic complexity
  • Developer Experience
  • GitHub
  • JavaScript
  • Maintainability
  • Open-source software
  • Project size
  • Software metric

Fingerprint

Dive into the research topics of 'An Exploratory Study of the Code Quality of Open-Source JavaScript Projects'. Together they form a unique fingerprint.

Cite this