DOI QR코드

DOI QR Code

Metrics for Code Quality Check in SEED_mode.c

  • Jin-Kuen Hong (Div. of Advanced IT, Baekseok University)
  • 투고 : 2024.06.04
  • 심사 : 2024.06.17
  • 발행 : 2024.08.31

초록

The focus of this paper is secure code development and maintenance. When it comes to safe code, it is most important to consider code readability and maintainability. This is because complex code has a code smell, that is, a structural problem that complicates code understanding and modification. In this paper, the goal is to improve code quality by detecting and removing smells existing in code. We target the encryption and decryption code SEED.c and evaluate the quality level of the code using several metrics such as lines of code (LOC), number of methods (NOM), number of attributes (NOA), cyclo, and maximum nesting level. We improved the quality of SEED.c through systematic detection and refactoring of code smells. Studies have shown that refactoring processes such as splitting long methods, modularizing large classes, reducing redundant code, and simplifying long parameter lists improve code quality. Through this study, we found that encryption code requires refactoring measures to maintain code security.

키워드

과제정보

This paper is sponsored of project funding in 2024 at Baekseok University

참고문헌

  1. G. Lacerda, F. Petrilo, M. Pimenta, Y. G. Gueheneuc, "Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observations," The Journal of Systems and Software, pp. 1-44. arxiv.org/abs/2004.10777. April 24, 2020. DOI: https://doi.org/10.1016/j.jss.2020.110610
  2. P. Kokol, M. Zorman, B. Zlahtic, G. Zlahtic, "Code Smells," Feb. 2018. https://arxiv.org/pdf/1802.06063.
  3. F. K. AL- Jibory, "Code Smells in software: Review," In. J. Nonlinear Anal. Appl., Vol. 14, No. 1, pp. 1339-1345, 2023. https://ijnaa.semnan.ac.ir/article_7029_3a5fb78be2c0a7d13bbad81f7c849b41.pdf. DOI: http://doi.org/10.22075/IJNAA.2022.7029
  4. G. Szoke, C. Nagy, L. J. Fulop, R. Ferenc, and T. Gyimothy, "FaulBuster: An Automatic Code Smell Refactoring Toolset," In Proc. IEEE SCAM, pp. 253-258, 2015. https://www.inf.szte.hu/~ncsaba/research/pdfs/2015/Szoke-SCAM2015-preprint.pdf
  5. R. Verdecchia, R. A. Saez, G. Procaccianti, P. Lago, "Empirical Evaluation of the Energy Impact of Refactoring Code Smells," In Proc. 5th International Conference on ICT4S, Feb. 2018. DOI: http://doi.org/10.29007/dz83
  6. A. Imran, T. Kosar, J. Zola, F. Bulut, "Predicting the Impact of Batch Refactoring Code Smells on Application Resource Consumption," In Proc. ACM conference'17, July 2017. https://arxiv.org/pdf/2306.15763. DOI: https://doi.org/10.1145/nnnnnnn.nnnnnnn
  7. Z. Ournani, R. Rouvoy, P. Rust, J. Penhoat, "Tales from the Code #1: The Effective Impact of Code Refactorings on Software Energy Consumption," HAL Open Access Archie, Apr. 19, 2021. https://hal.science/hal-03202437/document
  8. M. Fowler and K. Bent, Refactoring: Improving the Design of Existing Code, 2018, 2nd ed. Addison-Wesley.
  9. 6 Bad Smells in Code - variant.ch http://www.variant.ch/papers/IntroductionRefactoring/doc/refactoring/node7.html
  10. M. Z.- Nasrabadi, S.Parsa, E. Esmaili, F. Palomba, "A Systematic Literature Review on the Code Smells Datasets and Validation Mechanisms," ACM Computing Surveys, Vol. 55, Issue 13S, No. 298, pp. 1-48, July, 2023. DOI: https://doi.org/10.1145/3596908
  11. D. di Nucci, F. Palomba, D. A. Tamburri, A. Serebrenik, and A. de Lucia, "Detecting code smells using machine learning techniques: Are we there yet?," In Proc. IEEE 25th SANER, pp. 612-621. March 18-23, 2018. DOI: http://doi.org/10.1109/SANER.2018.8330266
  12. H.-M. Lee, S.-J. Lee, "A Study on Security Event Detection in ESM Using Big Data and Deep Learning," The Journal of Internet, Broadcasting and Communication, Vol. 13, No.3, pp. 42-49, Aug., 2021. DOI: http://dx.doi.org/10.7236/IJIBC.2021.13.42