Add plugin header and version number tests.

Open
#292 0 comments 0 reactions 1 assignee View on GitHub

@peterwilsoncc is already working on this.

Since Sep 24, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
php, wordpress

Research direction

Start by reviewing the repository's existing test structure and the comparable tests in wp-plugin-template/tests/tests. Inspect the plugin PHP and readme headers plus package.json and package.lock, then define tests for header placement, duplicate-header consistency, and matching stable tag and version values, including the stated WordPress-version exception.

Written by the indexing model from the issue text.

Description

Is your enhancement related to a problem? Please describe.

Add tests to ensure for the WordPress repo plugin headers to ensure:

  • Headers are located in our preferred files (PHP vs readme) in accordance with how they are parsed on WP.org
  • Any duplicated headers in the PHP and readme file are identical
  • Stable tag and version numbers match in various locations (headers, package.json, package.lock, etc)

Similar tests are available in https://github.com/peterwilsoncc/wp-plugin-template/tree/main/tests/tests but for our purposes we'll need to make some changes according to our preferences, eg allowing minimum required WP version bumps without a release.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
PHP
Stars
157
Forks
24
Avg merge
12m
Merged PRs (30d)
1

Getting set up

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.

More from 10up/simple-page-ordering

All issues in 10up/simple-page-ordering

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.