Author
Listed:
- Muhammad Tahir
(Department of Software Engineering, Superior University Lahore, Pakistan)
- Muhammad Rahim Zafar
(Department of Software Engineering, Superior University Lahore, Pakistan)
- Muhammad Talha Bashir
(Master of Science (MSc) in Data Analytics, Dublin Business School, Ireland)
- Saleem Zubair
(Department of Computer Science, Superior University Lahore, Pakistan)
- Muhammad Waseem Iqbal
(Associate Professor, Department of Software Engineering, Superior University Lahore, Pakistan)
- Fawad Nasim
(Department of Software Engineering, Superior University Lahore, Pakistan)
Abstract
In the rapidly evolving landscape of mobile applications, the demand for high-quality performance-driven software is paramount. However, the swift pace of development often leads to the introduction of code smells—bad programming practices that compromise both code quality and application performance. These code smells, if left unaddressed, can result in increased memory consumption, energy consumption, and CPU utilization, ultimately leading to a suboptimal user experience. This paper presents an automated approach for the detection and refactoring of code smells in Android applications, with a focus on improving performance. The proposed approach involves the development of a plugin integrated with Android Studio, which employs static code analysis to identify code smells. The plugin encompasses a customizable rule-based framework that allows for the detection of various code smells unique to Android development. To validate the approach, a comprehensive experiment is conducted. The experiment assesses the effectiveness of the proposed method in detecting code smells and explores the impact of refactoring on application performance. The results showcase that the proposed plugin successfully detects code smells in various open-source Android applications. Moreover the integration of refactoring recommendations significantly improves the performance of the applications, as demonstrated through memory, energy, and CPU consumption metrics. Comparison with existing tools reveals that the proposed approach offers superior performance in terms of both code smell detection and refactoring. Additionally, the approach bridges the gap left by some existing tools by identifying previously undetected code smells, such as "string concatenation." The presented method not only enhances code quality but also contributes to the overall performance optimization of Android applications. As mobile applications continue to play an increasingly central role in modern life, the importance of maintaining high-quality code that performs optimally cannot be understated. This work provides a valuable contribution towards achieving these goals offering developers a powerful tool for ensuring that their applications not only meet but exceed user expectations in terms of quality and performance.
Suggested Citation
Muhammad Tahir & Muhammad Rahim Zafar & Muhammad Talha Bashir & Saleem Zubair & Muhammad Waseem Iqbal & Fawad Nasim, 2024.
"An Automated Performance Enhancement Approach for Mobile Applications,"
Bulletin of Business and Economics (BBE), Research Foundation for Humanity (RFH), vol. 13(1), pages 355-362.
Handle:
RePEc:rfh:bbejor:v:13:y:2024:i:1:p:355-362
DOI: https://doi.org/10.61506/01.00211
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:rfh:bbejor:v:13:y:2024:i:1:p:355-362. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Muhammad Irfan Chani (email available below). General contact details of provider: https://edirc.repec.org/data/rffhlpk.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.