A Complexity Metrics Suite for Cascading Style Sheets

被引:1
|
作者
Adewumi, Adewole [1 ]
Misra, Sanjay [1 ,2 ]
Damasevicius, Robertas [3 ]
机构
[1] Covenant Univ, Dept Comp & Informat Sci, Ota 0123, Nigeria
[2] Atilim Univ, Dept Comp Engn, TR-06830 Ankara, Turkey
[3] Kaunas Univ Technol, Dept Software Engn, LT-51368 Kaunas, Lithuania
关键词
CSS; software complexity metrics; software maintainability; metric validation; WEYUKERS PROPERTIES; MAINTAINABILITY; QUALITY;
D O I
10.3390/computers8030054
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
We perform a theoretical and empirical analysis of a set of Cascading Style Sheets (CSS) document complexity metrics. The metrics are validated using a practical framework that demonstrates their viability. The theoretical analysis is performed using the Weyuker's properties-a widely adopted approach to conducting empirical validations of metrics proposals. The empirical analysis is conducted using visual and statistical analysis of distribution of metric values, Cliff's delta, Chi-square and Liliefors statistical normality tests, and correlation analysis on our own dataset of CSS documents. The results show that five out of the nine metrics (56%) satisfy Weyuker's properties except for the Number of Attributes Defined per Rule Block (NADRB) metric, which satisfies six out of nine (67%) properties. In addition, the results from the statistical analysis show good statistical distribution characteristics (only the Number of Extended Rule Blocks (NERB) metric exceeds the rule-of-thumb threshold value of the Cliff's delta). The correlation between the metric values and the size of the CSS documents is insignificant, suggesting that the presented metrics are indeed complexity rather than size metrics. The practical application of the presented CSS complexity metric suite is to assess the risk of CSS documents. The proposed CSS complexity metrics suite allows identification of CSS files that require immediate attention of software maintenance personnel.
引用
收藏
页数:18
相关论文
共 50 条
  • [21] Beginning CSS: Cascading style sheets for web design
    Schmadeka, Wayne L.
    TECHNICAL COMMUNICATION, 2008, 55 (02) : 201 - 201
  • [22] Cascading style sheets 2.0: Programmer's reference
    Robertson, A
    TECHNICAL COMMUNICATION, 2002, 49 (03) : 363 - 364
  • [23] Professional CSS: Cascading style sheets for web design
    Wiker, Nancy
    TECHNICAL COMMUNICATION, 2006, 53 (03) : 356 - 356
  • [24] Cascading style sheets - Lie,HW, Bos,B
    Helton, R
    DATABASE, 1997, 20 (06): : 84 - 84
  • [25] Migrating Cascading Style Sheets to Preprocessors by Introducing Mixins
    Mazinanian, Davood
    Tsantalis, Nikolaos
    2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 672 - 683
  • [26] A Metrics Suite for Measuring Indirect Coupling Complexity
    J. Navas-Su
    A. Gonzalez-Torres
    M. Hernandez-Vasquez
    J. Solano-Cordero
    F. Hernandez-Castro
    A. Bener
    Programming and Computer Software, 2023, 49 : 735 - 761
  • [27] A Suite of Object Oriented Cognitive Complexity Metrics
    Misra, Sanjay
    Adewumi, Adewole
    Fernandez-Sanz, Luis
    Damasevicius, Robertas
    IEEE ACCESS, 2018, 6 : 8782 - 8796
  • [28] A Metrics Suite for Measuring Indirect Coupling Complexity
    Navas-Su, J.
    Gonzalez-Torres, A.
    Hernandez-Vasquez, M.
    Solano-Cordero, J.
    Hernandez-Castro, F.
    Bener, A.
    PROGRAMMING AND COMPUTER SOFTWARE, 2023, 49 (08) : 735 - 761
  • [29] Web Browser Fingerprinting using only Cascading Style Sheets
    Takei, Naoki
    Saito, Takamichi
    Takasu, Ko
    Yamada, Tomotaka
    2015 10TH INTERNATIONAL CONFERENCE ON BROADBAND AND WIRELESS COMPUTING, COMMUNICATION AND APPLICATIONS (BWCCA 2015), 2015, : 57 - 63
  • [30] CSS hacks and filters: Making cascading style sheets work
    Hogarth, Grant
    TECHNICAL COMMUNICATION, 2006, 53 (04) : 478 - 479