• Home
  • Search
  • The Effects of Extract Function Refactoring On High Cyclomatic Complexity Code Smell and Maintainability Index
  • Cite Icon4
  • https://doi.org/10.1109/iceei59426.2023.10346897Copy DOI Icon

The Effects of Extract Function Refactoring On High Cyclomatic Complexity Code Smell and Maintainability Index

  • Oct 10, 2023
  • Muhammad Naufal Pratama +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Software that operates actively needs to be adequately managed and maintained to avoid future problems. One of the problems in the software is the existence of code smells. A code smell indicates that a problem will, in turn, occur in the software's source code. OpenSID is open-source software used to create village administration websites. The detection carried out in this study shows that the OpenSID source code contains 32 code smells of High Cyclomatic Complexity type, which, if left untreated, can cause problems in the future. One of the problems is the reduced level of maintainability of the software. This research performs refactoring using the Extract Function method on a High Cyclomatic Complexity code smell to analyze what effect refactoring has on the code smell and its impact on the value of the OpenSID Maintainability Index. The research used the following tools: PHPMD, PHPDepend, and PhpStorm®. The results showed that after refactoring, the High Cyclomatic Complexity code smells were gone in some functions, and the average value of the OpenSID Maintainability Index increased from 37.0337 to 42.0912. Even though, in the end, the maintainability of this software is still in the category of difficult to maintain, this Maintainability Index increases to 13.66% has shown that the refactoring Extract Function method in code smells High Cyclomatic Complexity can increase the maintainability of this software.

Similar Papers
  • Book Chapter
  • Citations42

Code Smells Detection Using Artificial Intelligence Techniques: A Business-Driven Systematic Review

  • Aug 16, 2021
  • Tomasz Lewowski +1
  • Conference Article
  • Citations3

TFfinder: A Software tool to discover Temporary Field code smell

  • Dec 18, 2020
  • Ruchin Gupta +1
  • Conference Article
  • Citations27

Revisiting the relationship between code smells and refactoring

  • May 01, 2016
  • Norihiro Yoshida +4
  • Conference Article
  • Citations75

Landfill: An Open Dataset of Code Smells with Public Evaluation

  • May 01, 2015
  • Fabio Palomba +6
  • Conference Article
  • Citations6

Investigating the Relationship between Code Smell Agglomerations and Architectural Concerns

  • Sep 17, 2018
  • Luis Paulo Da S Carvalho +2
  • Research Article
  • Citations6

Unsupervised Machine Learning for Effective Code Smell Detection: A Novel Method

  • Jan 01, 2024
  • Journal of Communications Software and Systems
  • Ruchin Gupta +3
  • Research Article
  • Citations52

Monitor-Based Instant Software Refactoring

  • Aug 01, 2013
  • IEEE Transactions on Software Engineering
  • Hui Liu +2
  • PDF
  • Research Article
  • Citations1

From code to insight: studying code representation techniques for ML-based God class detection to support intelligent IDEs

  • Jul 25, 2025
  • Automated Software Engineering
  • Elmohanad Haroon +2
  • Conference Article
  • Citations8

Towards the Definition of Patterns and Code Smells for Multi-language Systems

  • Jul 01, 2020
  • Mouna Abidi +1
  • Research Article

Optimizing LSTM for Code Smell Detection: The Role of Data Balancing

  • Jan 01, 2024
  • Infocommunications journal
  • Alnor Adam Khleel Nasraldeen +1
  • Conference Article
  • Citations2

A Novel Approach for Improving the Quality of Software Code using Reverse Engineering

  • Jun 19, 2018
  • Hamza A Elghadhafi +2
  • Conference Article
  • Citations251

Are all code smells harmful? A study of God Classes and Brain Classes in the evolution of three open source systems

  • Sep 01, 2010
  • Steffen M Olbrich +2
  • Research Article

Threshold design for cohesion and coupling metrics using K-means clustering Algorithm

  • Jun 26, 2017
  • International Journal of Advanced Research in Computer Science
  • Shaitan Singh Meena +1
  • Research Article

A Systematic Review on Code Smell Detection Approaches in Open Source Projects

  • Apr 21, 2026
  • Software: Practice and Experience
  • Sawsan Alodibat +1
  • Research Article
  • Citations5

OCL을 이용한 자동화된 코드스멜 탐지와 리팩토링

  • Dec 31, 2008
  • The KIPS Transactions:PartD
  • Tae-Woong Kim +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.