Conference paper Open Access

Structural Quality Metrics as Indicators of the Long Method Bad Smell: An Empirical Study

Charalampidou, Sofia; Arvanitou, Elvira-Maria; Ampatzoglou, Apostolos; Avgeriou, Paris; Chatzigeorgiou, Alexander; Stamelos, Ioannis


JSON Export

{
  "files": [
    {
      "links": {
        "self": "https://zenodo.org/api/files/4dc65b73-5d22-4f68-a4d2-a7bdbed26669/structural_quality_metrics.pdf"
      }, 
      "checksum": "md5:7d0279320bf762e1ad6e0276566c0f98", 
      "bucket": "4dc65b73-5d22-4f68-a4d2-a7bdbed26669", 
      "key": "structural_quality_metrics.pdf", 
      "type": "pdf", 
      "size": 312349
    }
  ], 
  "owners": [
    43983
  ], 
  "doi": "10.1109/SEAA.2018.00046", 
  "stats": {
    "version_unique_downloads": 99.0, 
    "unique_views": 50.0, 
    "views": 53.0, 
    "version_views": 53.0, 
    "unique_downloads": 99.0, 
    "version_unique_views": 50.0, 
    "volume": 32171947.0, 
    "version_downloads": 103.0, 
    "downloads": 103.0, 
    "version_volume": 32171947.0
  }, 
  "links": {
    "doi": "https://doi.org/10.1109/SEAA.2018.00046", 
    "latest_html": "https://zenodo.org/record/3349972", 
    "bucket": "https://zenodo.org/api/files/4dc65b73-5d22-4f68-a4d2-a7bdbed26669", 
    "badge": "https://zenodo.org/badge/doi/10.1109/SEAA.2018.00046.svg", 
    "html": "https://zenodo.org/record/3349972", 
    "latest": "https://zenodo.org/api/records/3349972"
  }, 
  "created": "2019-07-24T13:25:45.076697+00:00", 
  "updated": "2020-01-20T15:54:41.738342+00:00", 
  "conceptrecid": "3349971", 
  "revision": 4, 
  "id": 3349972, 
  "metadata": {
    "access_right_category": "success", 
    "doi": "10.1109/SEAA.2018.00046", 
    "description": "<p>Empirical evidence has pointed out that Extract Method refactorings are among the most commonly applied refactorings by software developers. The identification of Long Method code smells and the ranking of the associated refactoring opportunities is largely based on the use of metrics, primarily with measures of cohesion, size and coupling. Despite the relevance of these proper-ties to the presence of large, complex and non-cohesive pieces of code, the empirical validation of these metrics has exhibited relatively low accuracy (max precision: 66%) regarding their predictive power for long methods or extract method opportunities. In this work we perform an empirical validation of the ability of cohesion, coupling and size metrics to predict the existence and the intensity of long method occurrences. According to the statistical analysis, the existence and the intensity of the Long Method smell can be effectively predicted by two size (LoC and NoLV), two coupling (MPC and RFC), and four cohesion (LCOM1, LCOM2, Coh, and CC) metrics. Furthermore, the integration of these metrics into a multiple logistic regression model can predict whether a method should be refactored with a precision of 89% and a recall of 91%. The model yields suggestions whose ranking is strongly correlated to the ranking based on the effect of the corresponding refactorings on source code (correl. coef. 0.520). The results are discussed by providing interpretations and implications for research and practice.</p>", 
    "license": {
      "id": "CC-BY-4.0"
    }, 
    "title": "Structural Quality Metrics as Indicators of the Long Method Bad Smell: An Empirical Study", 
    "relations": {
      "version": [
        {
          "count": 1, 
          "index": 0, 
          "parent": {
            "pid_type": "recid", 
            "pid_value": "3349971"
          }, 
          "is_last": true, 
          "last_child": {
            "pid_type": "recid", 
            "pid_value": "3349972"
          }
        }
      ]
    }, 
    "grants": [
      {
        "code": "780572", 
        "links": {
          "self": "https://zenodo.org/api/grants/10.13039/501100000780::780572"
        }, 
        "title": "Software Development toolKit for Energy optimization and technical Debt elimination", 
        "acronym": "SDK4ED", 
        "program": "H2020", 
        "funder": {
          "doi": "10.13039/501100000780", 
          "acronyms": [], 
          "name": "European Commission", 
          "links": {
            "self": "https://zenodo.org/api/funders/10.13039/501100000780"
          }
        }
      }
    ], 
    "publication_date": "2018-10-22", 
    "creators": [
      {
        "affiliation": "Department of Computer Science, University of Groningen, Netherlands", 
        "name": "Charalampidou, Sofia"
      }, 
      {
        "affiliation": "Department of Applied Informatics, University of Macedonia, Thessaloniki, Greece", 
        "name": "Arvanitou, Elvira-Maria"
      }, 
      {
        "affiliation": "Department of Applied Informatics, University of Macedonia, Thessaloniki, Greece", 
        "name": "Ampatzoglou, Apostolos"
      }, 
      {
        "affiliation": "Department of Computer Science, University of Groningen, Netherlands", 
        "name": "Avgeriou, Paris"
      }, 
      {
        "affiliation": "Department of Applied Informatics, University of Macedonia, Thessaloniki, Greece", 
        "name": "Chatzigeorgiou, Alexander"
      }, 
      {
        "affiliation": "Department of Informatics, Aristotle University, Thessaloniki, Greece", 
        "name": "Stamelos, Ioannis"
      }
    ], 
    "access_right": "open", 
    "resource_type": {
      "subtype": "conferencepaper", 
      "type": "publication", 
      "title": "Conference paper"
    }
  }
}
53
103
views
downloads
Views 53
Downloads 103
Data volume 32.2 MB
Unique views 50
Unique downloads 99

Share

Cite as