PHPackages                             thoughtsideas/ti-wpcs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. thoughtsideas/ti-wpcs

AbandonedArchivedPhpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

thoughtsideas/ti-wpcs
=====================

PHP CodeSniffer rules for Thoughts &amp; Ideas WordPress projects

v1.1.1(8y ago)15423MIT

Since May 17Pushed 4y agoCompare

[ Source](https://github.com/thoughtsideas/ti-wpcs)[ Packagist](https://packagist.org/packages/thoughtsideas/ti-wpcs)[ RSS](/packages/thoughtsideas-ti-wpcs/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (5)Versions (11)Used By (3)

Thoughts &amp; Ideas WordPress Coding Standards
===============================================

[](#thoughts--ideas-wordpress-coding-standards)

⚠️ Archived: 2021-07-09 ⚠️

[![license](https://camo.githubusercontent.com/8cb3eb916a8f44dbf88395165df358a62c60ecaa964725566d7be9a637d12ba7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74686f756768747369646561732f74692d777063732e737667)](https://github.com/thoughtsideas/ti-wpcs) [![GitHub release](https://camo.githubusercontent.com/9340eb53ff2d66d692bb7aba04f2410003222fed27e02343e7eb4d3ad36a0543/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f74686f756768747369646561732f74692d777063732e737667)](https://github.com/thoughtsideas/ti-wpcs) [![Packagist](https://camo.githubusercontent.com/6af383ae5c845f08b263518252d2a8191e15b511e508107a4d3fc6a7df4ca59d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686f756768747369646561732f74692d777063732e737667)](https://packagist.org/packages/thoughtsideas/ti-wpcs) [![Packagist](https://camo.githubusercontent.com/f3dd93f1cda57578bafd156ba0077f6d230d9aeb19fac130dece18073697b450/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74686f756768747369646561732f74692d777063732e737667)](https://packagist.org/packages/thoughtsideas/ti-wpcs) [![GitHub issues](https://camo.githubusercontent.com/a2b3e7916f617ead493ecf3bd9c787258eab7852f734c400b54daa404c02dea9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f74686f756768747369646561732f74692d777063732e737667)](https://github.com/thoughtsideas/ti-wpcs) [![Libraries.io for GitHub](https://camo.githubusercontent.com/719cb53afcaa4fd8c99b5f6732c43a3ce59dc3eb7c734f251b69afd885e8cf74/68747470733a2f2f696d672e736869656c64732e696f2f6c6962726172696573696f2f6769746875622f74686f756768747369646561732f74692d777063732e737667)](https://github.com/thoughtsideas/ti-wpcs)

Thoughts &amp; Ideas WordPress Coding Standards (TI-WPCS) is a development dependency for testing coding styles and quality in our WordPress PHP projects. Keeping the code base consistent and highlighting potential issues before they enter our products helps developers pickup our projects and improve their reliability in production.

Installation
------------

[](#installation)

*Thoughts &amp; Ideas recommend installing this dependancy via Composer.*

### As a Composer Dependancy

[](#as-a-composer-dependancy)

To include these standards as part of a project. Require this repository as a development dependancy:

```
composer require --dev thoughtsideas/ti-wpcs

```

The fixer and tests can be run from the command line:

```
./vendor/bin/phpcbf ./
./vendor/bin/phpcs ./
./vendor/bin/phpmd ./ text ./vendor/thoughtsideas/ti-wpcs/ti-wpmd/ruleset.xml

```

### Automatically run tests before every Git commit.

[](#automatically-run-tests-before-every-git-commit)

*Thoughts &amp; Ideas recommend a pre-commit Git Hook.*

Create the pre-commit hook file:

```
mkdir ./_scripts && touch ./_scripts/pre-commit

```

Add the pre-commit hook to our new file:

```
#!/bin/sh
#
# Pre Commit Hook.

# Remove un-staged changes.
git stash -q --keep-index

# Run QA script.
echo "Running WordPress PHP Coding Standards test"
composer run test-phpcbf
composer run test-phpcs
# PHPCS Results (bool)
QA_PHPCS=$?

echo "Running WordPress PHP Mess Detector test"
composer run test-phpmd
# PHPMD Results (bool)
QA_PHPMD=$?

# Apply un-staged changes.
git stash pop -q

# Get our test QA results.
[ $QA_PHPCS -ne 0 ] && exit 1
[ $QA_PHPMD -ne 0 ] && exit 1

# If test pass exit successfully.
exit 0

```

Link our new file to our git repository

```
ln -s ../../_scripts/pre-commit ./.git/hooks/pre-commit

```

Every time you commit to your Git repository the TI-WPCS test will run automatically.

Reporting Issues
----------------

[](#reporting-issues)

If you spot any issues please create a ticket via [GitHub's Issue Tracker](https://github.com/thoughtsideas/ti-wpcs/issues). Including the issue, the browser and operating system, and how to replicate it. If the issue is security related please use the contact information below.

Contact
-------

[](#contact)

Thoughts &amp; Ideas - [hello@thoughtsideas.uk](hello@thoughtsideas.uk)

License
-------

[](#license)

This project is licensed under the terms of the MIT license. See the [LICENSE](https://github.com/thoughtsideas/ti-wpcs/blob/master/license.txt) file.

Copyright
---------

[](#copyright)

Unless otherwise stated © Thoughts &amp; Ideas. All rights reserved.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Total

3

Last Release

3201d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fec197a87af0282fd3da1e2e3bc3794181c105368cccb719ae583911967343d?d=identicon)[thoughtsideas](/maintainers/thoughtsideas)

---

Top Contributors

[![michaelbragg](https://avatars.githubusercontent.com/u/1015212?v=4)](https://github.com/michaelbragg "michaelbragg (25 commits)")

---

Tags

coding-standardscomposerpackagistwordpressstandardsphpcswordpressphpmd

### Embed Badge

![Health badge](/badges/thoughtsideas-ti-wpcs/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtsideas-ti-wpcs/health.svg)](https://phpackages.com/packages/thoughtsideas-ti-wpcs)
```

###  Alternatives

[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M145](/packages/automattic-vipwpcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
