[wp-trac] [WordPress Trac] #49637: Create a report outline for CSS audit

WordPress Trac noreply at wordpress.org
Thu May 7 23:45:14 UTC 2020


#49637: Create a report outline for CSS audit
----------------------------+------------------------------------
 Reporter:  notlaura        |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  css, coding-standards
----------------------------+------------------------------------

Comment (by isabel_brison):

 Adding a few questions/notes here:

 > Determine method of categorization of existing CSS (e.g. by files, area
 in admin)

 I would propose files, as that will  simplify obtaining the data with
 automated tools. Files already correspond roughly to admin areas anyway.

 > List of unique values for each of a list of properties, and number of
 occurrences

 Which properties should be checked here? I’m thinking we could detect
 usage of fixed (px) widths and heights, and that would help determine
 problems with responsive behaviour. We can also check for use of e.g.
 floats, to locate outdated layout practices.
 I'm wondering if unique values should be an item in itself, because it
 seems more like a tool to help with other items.
 I'm also tempted to add an item for responsive problems.

 > State of CSS comments in each of the categories

 Not sure how we can measure this in a useful way. Outside of weird hacks
 that are usually commented, it’s unclear to what extent the CSS needs
 additional documentation.

 > Dead code

 I suspect this is where we'll get the biggest benefits performance-wise.
 It also needs a bit of investigation into the best way of detecting dead
 code, short of actually removing code and checking for changes 😅

 > Units

 Will these be useful outside of responsive/layout concerns? We might not
 need a separate section for them.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49637#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list