Detection of Software Anomalies Using Object-oriented Metrics
Renato Correa Juliano, Bruno A. N. Travençolo, Michel S. Soares
2014
Abstract
The development of quality software has always been the aim of many studies in past years, in which the focus was on seeking for better software production with high effectiveness and quality. In order to evaluate software quality, software metrics were proposed, providing an effective tool to analyze important features such as maintainability, reusability and testability. The Chidamber and Kemerer metrics (CK metrics) are frequently applied to analyze Object-Oriented Programming (OOP) features related to structure, inheritance and message calls. The main purpose of this article is to gather results from studies that used the CK metrics for source code evaluation, and based on the CK metrics, perform a review related to software metrics and the values obtained. Results on the mean and standard deviation obtained in all the studied papers is presented, both for Java and C++ projects. Therefore, software anomalies are identified comparing the results of software metrics described in those studies. This article contributes by suggesting values for software metrics that, according to the literature, can present high probabilities of failures. Another contribution is to analyze which CK metrics are successfully used (or not) in some activities such as to predict proneness error, analyze the impact of refactoring on metrics and examine the facility of white-box reuse based on metrics. We discovered that, in most of the studied articles, CBO, RFC and WMC are often useful and hierarchical metrics as DIT and NOC are not useful in the implementation of such activities. The results of this paper can be used to guide software development, helping to manage the development and preventing future problems.
References
- Abuasad, A. and Alsmadi, I. (2012). Evaluating the Correlation between Software Defect and Design Coupling Metrics. In International Conference on Computer, Information and Telecommunication Systems (CITS), pages 1-5.
- Bar-Yam, Y. (2003). When Systems Engineering Fails - Toward Complex Systems Engineering. In Proceedings of the International Conference on Systems, Man & Cybernetics, volume 2, pages 2012-2028.
- Benestad, H., Anda, B., and Arisholm, E. (2006). Assessing Software Product Maintainability Based on ClassLevel Structural Measures. In Product-Focused Software Process Improvement, volume 4034 of Lecture Notes in Computer Science, pages 94-111. Springer.
- Berry, D. M. (2004). The Inevitable Pain of Software Development: Why There Is No Silver Bullet. In Radical Innovations of Software and Systems Engineering in the Future, Lecture Notes in Computer Science, pages 50-74.
- Boehm, B. W. (2006). A View of 20th and 21st Century Software Engineering. In ICSE 7806: Proceedings of the 28th International Conference on Software Engineering, pages 12-29.
- Charette, R. N. (2005). Why Software Fails. IEEE Spectrum,, 42(9):42-49.
- Chidamber, S. R. and Kemerer, C. F. (1994). A Metrics Suite for Object Oriented Design. IEEE Transactions on Software Engineering, 20(6):476-493.
- Dallal, J. A. (2012). Constructing Models for Predicting Extract Subclass Refactoring Opportunities using Object-Oriented Quality Metrics. Information and Software Technology, 54(10):1125-1141.
- English, M., Exton, C., Rigon, I., Brendan, and Cleary (2009). Fault Detection and Prediction in an Opensource Software Project. In Proceedings of the 5th International Conference on Predictor Models in Software Engineering, PROMISE 7809, pages 17:1-17:11, New York, NY, USA. ACM.
- Fenton, N. E. and Pfleeger, S. L. (1998). Software Metrics: A Rigorous and Practical Approach. PWS Publishing Co., Boston, MA, USA, 2nd edition.
- Glass, R. L. (1999). The Realities of Software Technology Payoffs. Communications of the ACM,, 42(2):74-79.
- Gyimothy, T., Ferenc, R., and Siket, I. (2005). Empirical Validation of Object-Oriented Metrics on Open Source Software for Fault Prediction. IEEE Transactions on Software Engineering, 31(10):897-910.
- Harrison, R., Counsell, S., and Nithi, R. V. (1998). An Investigation into the Applicability and Validity of Object-Oriented Design Metrics. Empirical Software Engineering, 3(3):255-273.
- Huck, S. W. (2012). Reading Statistics and Research. Pearson, Boston, MA, USA.
- Janes, A., Scotto, M., Pedrycz, W., Russo, B., Stefanovic, M., and Succi, G. (2006). Identification of DefectProne Classes in Telecommunication Software Systems Using Design Metrics. Information Sciences, 176(24):3711 - 3734.
- Johari, K. and Kaur, A. (2012). Validation of Object Oriented Metrics Using Open Source Software System: An Empirical Study. SIGSOFT Software Engineering Notes, 37(1):1-4.
- Kakarontzas, G., Constantinou, E., Ampatzoglou, A., and Stamelos, I. (2012). Layer assessment of objectoriented software: A metric facilitating white-box reuse. Journal of Systems and Software, 86:349-366.
- Kitchenham, B. (2010). Whats up with Software Metrics? A Preliminary Mapping Study. Journal of Systems and Software, 83(1):37-51.
- Kocaguneli, E., Gay, G., Menzies, T., Yang, Y., and Keung, J. W. (2010). When to Use Data from Other Projects for Effort Estimation. In Proceedings of the IEEE/ACM International Conference on Automated Software Engineering, ASE 7810, pages 321-324, New York, NY, USA. ACM.
- Lanza, M. (2003). CodeCrawler - Lessons Learned in Building a Software Visualization Tool. In In Proceedings of CSMR 2003, pages 409-418. IEEE Press.
- Lanza, M. and Marinescu, R. (2006). Object Oriented Metrics in Practice. Springer, Berlin.
- Lorenz, M. and Kidd, J. (1994). Object-Oriented Software Metrics: A Practical Guide. Prentice-Hall, Inc., Upper Saddle River, NJ, USA.
- Menzies, T., Butcher, A., Marcus, A., Zimmermann, T., and Cok, D. (2011). Local vs. Global Models for Effort Estimation and Defect Prediction. In Proceedings of the 2011 26th IEEE/ACM International Conference on Automated Software Engineering, ASE 7811, pages 343-351, Washington, DC, USA. IEEE Computer Society.
- Moser, R., Sillitti, A., Abrahamsson, P., and Succi, G. (2006). Does Refactoring Improve Reusability? In Morisio, M., editor, Reuse of Off-the-Shelf Components, volume 4039 of Lecture Notes in Computer Science, pages 287-297. Springer Berlin Heidelberg.
- Nair, T. G. and Selvarani, R. (2011). Defect Proneness Estimation and Feedback Approach for Software Design Quality Improvement. Information and Software Technology, 54(3):274-285.
- Olague, H., Etzkorn, L., Gholston, S., and Quattlebaum, S. (2007). Empirical Validation of Three Software Metrics Suites to Predict Fault-Proneness of ObjectOriented Classes Developed Using Highly Iterative or Agile Software Development Processes. IEEE Transactions on Software Engineering, 33(6):402-419.
- Olbrich, S., Cruzes, D. S., Basili, V., and Zazworka, N. (2009). The Evolution and Impact of Code Smells: A Case Study of Two Open Source Systems. In Proceedings of the 2009 3rd International Symposium on Empirical Software Engineering and Measurement, ESEM 7809, pages 390-400.
- Radjenovi, D., Heriko, M., Torkar, R., and Zivkovic, A. (2013). Software Fault Prediction Metrics: A Systematic Literature Review. Information and Software Technology, 55(8):1397-1418.
- Shatnawi, R. (2010). A quantitative investigation of the acceptable risk levels of object-oriented metrics in opensource systems. IEEE Transactions on Software Engineering, 36(2):216-225.
- Shatnawi, R. and Li, W. (2008). The Effectiveness of Software Metrics in Identifying Error-Prone Classes in Post-Release Software Evolution Process. Journal of Systems and Software, 81(11):1868-1882.
- Singh, S. and Kahlon, K. (2011). Effectiveness of Encapsulation and Object-Oriented Metrics to Refactor Code and Identify Error Prone Classes using Bad Smells. SIGSOFT Software Engineering Notes, 36(5):1-10.
- Singh, S. and Kahlon, K. S. (2012). Effectiveness of Refactoring Metrics Model to Identify Smelly and Error Prone Classes in Open Source Software. SIGSOFT Software Engineering Notes, 37(2):1-11.
- Stroggylos, K. and Spinellis, D. (2007). Refactoring - Does It Improve Software Quality? In Fifth International Workshop on Software Quality, 2007. WoSQ'07.
- Subramanyam, R. and Krishnan, M. S. (2003). Empirical Analysis of CK Metrics for Object-Oriented Design Complexity: Implications for Software Defects. IEEE Transactions on Software Engineering, 29(4):297- 310.
- Wettel, R. and Lanza, M. (2007). Visualizing Software Systems as Cities. In 4th IEEE International Workshop on Visualizing Software for Understanding and Analysis, 2007. VISSOFT 2007., pages 92-99.
- Wirth, N. (2008). A Brief History of Software Engineering. IEEE Annals of the History of Computing,, 30(3):32- 39.
- Zhou, Y. and Leung, H. (2006). Empirical Analysis of Object-Oriented Design Metrics for Predicting High and Low Severity Faults. IEEE Transactions on Software Engineering, 32(10):771-789.
- Zhoua, Y., Xua, B., and Leung, H. (2010). On the Ability of Complexity Metrics to Predict Fault-Prone Classes in Object-Oriented Systems. Journal of Systems and Software, 83(4):660-674.
Paper Citation
in Harvard Style
Correa Juliano R., A. N. Travençolo B. and S. Soares M. (2014). Detection of Software Anomalies Using Object-oriented Metrics . In Proceedings of the 16th International Conference on Enterprise Information Systems - Volume 2: ICEIS, ISBN 978-989-758-028-4, pages 241-248. DOI: 10.5220/0004889102410248
in Bibtex Style
@conference{iceis14,
author={Renato Correa Juliano and Bruno A. N. Travençolo and Michel S. Soares},
title={Detection of Software Anomalies Using Object-oriented Metrics},
booktitle={Proceedings of the 16th International Conference on Enterprise Information Systems - Volume 2: ICEIS,},
year={2014},
pages={241-248},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004889102410248},
isbn={978-989-758-028-4},
}
in EndNote Style
TY - CONF
JO - Proceedings of the 16th International Conference on Enterprise Information Systems - Volume 2: ICEIS,
TI - Detection of Software Anomalies Using Object-oriented Metrics
SN - 978-989-758-028-4
AU - Correa Juliano R.
AU - A. N. Travençolo B.
AU - S. Soares M.
PY - 2014
SP - 241
EP - 248
DO - 10.5220/0004889102410248