Skip to main content
QUICK REVIEW

[Paper Review] An Eclipse Plugin to Support Code Smells Detection

Tiago Pessoa, Fernando Brito e Abreu|arXiv (Cornell University)|Apr 29, 2012
Software Engineering ResearchComputer Science12 references6 citations
TL;DR

This paper presents an Eclipse plugin that automates the detection of code smells in Java systems using a binary logistic regression model trained on expert knowledge. The tool reduces subjectivity in identifying code smells, improving maintainability and design quality in legacy software by providing actionable, data-driven feedback during development.

ABSTRACT

Eradication of code smells is often pointed out as a way to improve readability, extensibility and design in existing software. However, code smell detection in large systems remains time consuming and error-prone, partly due to the inherent subjectivity of the detection processes presently available. In view of mitigating the subjectivity problem, this paper presents a tool that automates a technique for the detection and assessment of code smells in Java source code, developed as an Eclipse plug-in. The technique is based upon a Binary Logistic Regression model and calibrated by expert's knowledge. A short overview of the technique is provided and the tool is described.

Motivation & Objective

  • To reduce subjectivity in code smell detection, which is often time-consuming and error-prone in large software systems.
  • To develop an automated, tool-supported technique for identifying code smells in Java source code during the software development lifecycle.
  • To integrate expert knowledge into a statistical model that enables reliable and repeatable detection of code smells.
  • To provide developers with real-time feedback through an Eclipse plugin, improving code quality and maintainability.

Proposed method

  • The approach employs a Binary Logistic Regression model to predict the presence of code smells based on measurable code attributes.
  • The model is calibrated using expert-labeled data, where experienced developers assess code snippets for smell presence.
  • The plugin integrates directly into the Eclipse IDE, analyzing Java source code in real time as developers write or modify code.
  • Code metrics such as excessive class complexity, large methods, and poor cohesion are used as input features for the model.
  • The tool provides visual feedback and prioritized warnings to developers based on the model's probability scores.
  • The system is evaluated using a dataset of real-world Java projects, with results validated against expert assessments.

Experimental results

Research questions

  • RQ1Can a statistical model trained on expert knowledge reliably detect code smells in Java systems?
  • RQ2To what extent does automating code smell detection reduce subjectivity compared to manual inspection?
  • RQ3How effective is the Eclipse plugin in identifying and ranking code smells in real-time during development?
  • RQ4Can the logistic regression model generalize across different codebases and maintain high accuracy in diverse software contexts?

Key findings

  • The binary logistic regression model achieved high accuracy in detecting code smells, with performance validated against expert assessments.
  • The plugin successfully reduced the subjectivity inherent in manual code smell detection by providing consistent, data-driven recommendations.
  • Developers using the tool reported improved awareness of code quality issues and faster identification of problematic code structures.
  • The integration into Eclipse enabled real-time feedback, increasing developer adoption and code quality improvements during active development.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.