Skip to content

PrefixAllGlobals: sniff should check for four-letter prefixes #2467

Closed

Description

@davidperezgar

The PrefixAllGlobals sniff show that 3 letters are the minimum to make prefixes for functions and variables, but in the Plugin Review Team, We're using a minimum of 4.

We ask developers to use these minimum letters and this is our argument:

Don't try to use two (2) or three (3) letter prefixes anymore. We host nearly 100-thousand plugins on WordPress.org alone. There are tens of thousands more outside our servers. Believe us, you’re going to run into conflicts.

So, let's update this sniff.

It solves updating the number to 4 in line of the sniff.

Related with #1733 and and the update of Developer documentation.

Activity

  1. added
    Status: Requirement not met
    on Jul 20, 2024
  2. jrfnl commented on Jul 20, 2024

    @jrfnl
    Member

    The proposed change to the plugin handbook needs to be approved and merged before this issue becomes actionable.

    Once that's happened, feel free to submit a PR.

  3. jrfnl commented on Jul 20, 2024

    @jrfnl
    Member

    I've left a comment with my thoughts on the proposed change in the plugin handbook ticket as the proposed change appears to be based on false logic.

  4. jrfnl commented on Aug 28, 2024

    @jrfnl
    Member

    Looks like the plugin handbook has been updated now, so a PR to make this change could now be pulled.

  5. removed
    Status: Requirement not met
    on Aug 28, 2024
  6. davidperezgar commented on Aug 29, 2024

    @davidperezgar
    MemberAuthor

    I've made the PR ready to review.

  7. added this to the 3.2.0 milestone on Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions