Detecting object-oriented code smells through social network analysis

Abstract In software engineering, maintaining high code quality is essential for ensuring the software's maintainability, scalability, and overall performance. A major obstacle to attaining high-quality software is the presence of code bad smells, which are indicators of potential weaknesses and design flaws within the code. This paper investigates the potential of Social Network Analysis (SNA) as a new method for identifying and examining code smells. By applying SNA techniques, we aim to provide a novel perspective on identifying and analyzing code smells, which are indicative of potential design flaws and vulnerabilities within software systems. Our methodology involves modeling software components and their interactions as a network, allowing us to apply SNA metrics to uncover hidden patterns and relationships. In this paper, we model four Java open-source projects (JUnit 5.10.2, Spring 6.1.4, Apache Commons BCEL 6.8.2, and Guava 33.0) as social networks. Using SNA metrics, we then formulate and identify code bad smells.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-09
DOI
https://doi.org/10.1038/s41598-026-79078-w
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Detecting object-oriented code smells through social network analysis

Mohamed Maddeh
2 links
Scientific Reports
Software Engineering Research
article

Detecting object-oriented code smells through social network analysis

Mohamed Maddeh
article en

Abstract

Abstract In software engineering, maintaining high code quality is essential for ensuring the software's maintainability, scalability, and overall performance. A major obstacle to attaining high-quality software is the presence of code bad smells, which are indicators of potential weaknesses and design flaws within the code. This paper investigates the potential of Social Network Analysis (SNA) as a new method for identifying and examining code smells. By applying SNA techniques, we aim to provide a novel perspective on identifying and analyzing code smells, which are indicative of potential design flaws and vulnerabilities within software systems. Our methodology involves modeling software components and their interactions as a network, allowing us to apply SNA metrics to uncover hidden patterns and relationships. In this paper, we model four Java open-source projects (JUnit 5.10.2, Spring 6.1.4, Apache Commons BCEL 6.8.2, and Guava 33.0) as social networks. Using SNA metrics, we then formulate and identify code bad smells.

Scientific Reports
King Saud University (SA)
King Saud University
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon