function ucfirst(str) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   bugfixed by: Onno Marsman
    // +   improved by: Brett Zamir (http://brett-zamir.me)
    // *     example 1: ucfirst('kevin van zonneveld');
    // *     returns 1: 'Kevin van zonneveld'
    str += "";
    var f = str.charAt(0).toUpperCase();
    return f + str.substr(1);
  }
Adds CSS complexity metrics using analyze-css npm module.

Run phantomas with --analyze-css option to use this module

setMetric('cssBase64Length') @desc total length of base64-encoded data in CSS source (will warn about base64-encoded data bigger than 4 kB) @optional @offenders
setMetric('cssRedundantBodySelectors') @desc number of redundant body selectors (e.g. body .foo, section body h2, but not body > h1) @optional @offenders
setMetric('redundantChildNodesSelectors') @desc number of redundant child nodes selectors @optional @offenders
setMetric('cssColors') @desc number of unique colors used in CSS @optional @offenders
setMetric('cssComments') @desc number of comments in CSS source @optional @offenders
setMetric('cssCommentsLength') @desc length of comments content in CSS source @optional
setMetric('cssComplexSelectorsByAttribute') @desc  [number] number of selectors with complex matching by attribute (e.g. [class$="foo"]) @optional @offenders
setMetric('cssDuplicatedSelectors') @desc number of CSS selectors defined more than once in CSS source @optional @offenders
setMetric('cssDuplicatedProperties') @desc number of CSS property definitions duplicated within a selector @optional @offenders
setMetric('cssEmptyRules') @desc number of rules with no properties (e.g. .foo { }) @optional @offenders
setMetric('cssExpressions') @desc number of rules with CSS expressions (e.g. expression( document.body.clientWidth > 600 ? "600px" : "auto" )) @optional @offenders
setMetric('cssOldIEFixes') @desc number of fixes for old versions of Internet Explorer (e.g. * html .foo {} and .foo { *zoom: 1 }) @optional @offenders
setMetric('cssImports') @desc number of @import rules @optional @offenders
setMetric('cssImportants') @desc number of properties with value forced by !important @optional @offenders
setMetric('cssMediaQueries') @desc number of media queries (e.g. @media screen and (min-width: 1370px)) @optional @offenders
setMetric('cssMultiClassesSelectors') @desc number of selectors with multiple classes (e.g. span.foo.bar) @optional @offenders
setMetric('cssOldPropertyPrefixes') @desc number of properties with no longer needed vendor prefix, powered by data provided by autoprefixer (e.g. --moz-border-radius) @optional @offenders
setMetric('cssQualifiedSelectors') @desc number of qualified selectors (e.g. header#nav, .foo#bar, h1.title) @optional @offenders
setMetric('cssSpecificityIdAvg') @desc average specificity for ID @optional @offenders
setMetric('cssSpecificityIdTotal') @desc total specificity for ID @optional
setMetric('cssSpecificityClassAvg') @desc average specificity for class, pseudo-class or attribute @optional @offenders
setMetric('cssSpecificityClassTotal') @desc total specificity for class, pseudo-class or attribute @optional
setMetric('cssSpecificityTagAvg') @desc average specificity for element @optional @offenders
setMetric('cssSpecificityTagTotal') @desc total specificity for element @optional
setMetric('cssSelectorsByAttribute') @desc [number] number of selectors by attribute (e.g. .foo[value=bar]) @optional
setMetric('cssSelectorsByClass') @desc number of selectors by class @optional
setMetric('cssSelectorsById') @desc number of selectors by ID @optional
setMetric('cssSelectorsByPseudo') @desc number of pseudo-selectors (e,g. :hover) @optional
setMetric('cssSelectorsByTag') @desc number of selectors by tag name @optional
setMetric('cssLength') @desc length of CSS source (in bytes) @optional @offenders
setMetric('cssRules') @desc number of rules (e.g. .foo, .bar { color: red } is counted as one rule) @optional @offenders
setMetric('cssSelectors') @desc number of selectors (e.g. .foo, .bar { color: red } is counted as two selectors - .foo and .bar) @optional @offenders
setMetric('cssDeclarations') @desc number of declarations (e.g. .foo, .bar { color: red } is counted as one declaration - color: red) @optional @offenders
setMetric('cssNotMinified') @desc [number] set to 1 if the provided CSS is not minified @optional @offenders
setMetric('cssSelectorLengthAvg') @desc [number] average length of selector (e.g. for ``.foo .bar, #test div > span { color: red }`` will be set as 2.5) @optional @offenders