WordPress / WordPress/wordpress.org

Plugins: Reduce number of CSS classes in blocks

Open
#251 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Site] Plugins
Dominant language
PHP
Stars
163
Forks
221
PR merge metrics
No merged PRs in 30d

Description

While this issue existed before the update, we should reduce the amount of CSS classes that are put into elements on the page, particularly if they aren't used.

See example below on a card with many committers, support reps and contributors.

Screenshot 2024-04-15 at 11 34 00
plugins/

They appear due to querying plugin taxonomies associated with the post type, so we could filter them out where appropriate. It seems that plugin_contributors, plugin_committers, plugin_support_reps could be removed, but unsure.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the plugins/ area and trace how the plugin taxonomies plugin_contributors, plugin_committers, and plugin_support_reps become CSS classes on rendered elements. Confirm which classes are unused and should be filtered, then verify that necessary plugin block styling and taxonomy behavior remain intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, php, wordpress
Domain
web-dev
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.