PHPackages                             rarst/wps - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. rarst/wps

ActiveWordpress-plugin[Debugging &amp; Profiling](/categories/debugging)

rarst/wps
=========

WordPress plugin for whoops error handler.

1.2(7y ago)129133.2k↓19.8%16[1 PRs](https://github.com/Rarst/wps/pulls)3MITPHPPHP &gt;=5.5.9

Since May 8Pushed 6y ago9 watchersCompare

[ Source](https://github.com/Rarst/wps)[ Packagist](https://packagist.org/packages/rarst/wps)[ Docs](https://github.com/Rarst/wps)[ RSS](/packages/rarst-wps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (3)

wps — WordPress plugin for whoops
=================================

[](#wps--wordpress-plugin-for-whoops)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/363459427e11e6087057fd2e6671989064121ab569c9db546b6aa54937204e50/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f52617273742f7770732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Rarst/wps/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d68a52a72d176fcdf4b08609f67405d0faf0d80577bf22e5bae5ef711feaeccf/68747470733a2f2f706f7365722e707567782e6f72672f72617273742f7770732f762f737461626c65)](https://packagist.org/packages/rarst/wps)[![Total Downloads](https://camo.githubusercontent.com/18451841044890d54bcc2deb1895c5f4eba959185e3d1bc650f3e74f1f761716/68747470733a2f2f706f7365722e707567782e6f72672f72617273742f7770732f646f776e6c6f616473)](https://packagist.org/packages/rarst/wps)[![PHP version](https://camo.githubusercontent.com/d4fc5fa1146a8ce799124b7d5510b936c59c5878fa42a5f0e670bca40cdae24a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72617273742f7770732e737667)](https://packagist.org/packages/rarst/wps)[![Download wps](https://camo.githubusercontent.com/86e3fb625c14dd57d0e1ae6272dc8ddadbbb865acaafe2b9cf425dc35c9b42c3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d7770732e7a69702d626c7565)](https://github.com/Rarst/wps/releases/latest/download/wps.zip)

wps adds [whoops](http://filp.github.io/whoops/) error handler to a WordPress installation.

It makes error messages from PHP, `admin-ajax.php`, and WP REST API a *great* deal more clear and convenient to work with.

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

[](#installation)

[Composer](https://getcomposer.org/) (recommended)Release archive`composer require rarst/wps`[![Download wps](https://camo.githubusercontent.com/b6f76734c8428d281fa424866e1adca923b2bf5a5af339eb4ffe94cf4f090e3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f776e6c6f61642d7770732e7a69702d626c75653f7374796c653d666f722d7468652d6261646765)](https://github.com/Rarst/wps/releases/latest/download/wps.zip)Usage
-----

[](#usage)

The plugin is meant strictly for development and will only work with `WP_DEBUG` and `WP_DEBUG_DISPLAY` configuration constants enabled.

Silence errors
--------------

[](#silence-errors)

whoops can definitely get noisy with a lot of low–grade errors.

Silence errors for irrelevant locations to keep it practical and productive.

### Silence for URL

[](#silence-for-url)

Use `?wps_disable` query argument in the URL to temporarily disable whoops.

### Silence for path

[](#silence-for-path)

Use regular expressions to match source file paths and [error constants](https://www.php.net/manual/en/errorfunc.constants.php) to configure what should be silenced.

This can be called multiple times and/or array of paths can be provided.

Note that the direction of slashes needs to match operating system or write your regexes to match either.

```
global $wps;

// Silence notices and warnings for any path.
$wps['run']->silenceErrorsInPaths( '~.*~', E_NOTICE | E_WARNING );

// Silence for specific directory.
$wps['run']->silenceErrorsInPaths( '~/wp-admin/~', E_NOTICE | E_WARNING );

// Silence _except_ specific directory.
$wps['run']->silenceErrorsInPaths( '~^((?!/my-plugin/).)*$~', E_NOTICE | E_WARNING );

// Silence for plugins _except_ specific plugin.
$wps['run']->silenceErrorsInPaths( '~/wp-content/plugins/(?!my-plugin)~', E_NOTICE | E_WARNING );
```

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity60

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 ~477 days

Total

3

Last Release

2708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/689ddc4f33541ac4a001d247e560f8805d219a95e7e42a16e0d22b9409f385cb?d=identicon)[Rarst](/maintainers/Rarst)

---

Top Contributors

[![Rarst](https://avatars.githubusercontent.com/u/737584?v=4)](https://github.com/Rarst "Rarst (42 commits)")

---

Tags

error-handlerwhoopswordpress-pluginwordpresserrorwhoops

### Embed Badge

![Health badge](/badges/rarst-wps/health.svg)

```
[![Health](https://phpackages.com/badges/rarst-wps/health.svg)](https://phpackages.com/packages/rarst-wps)
```

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k402.4M1.4k](/packages/filp-whoops)[rarst/laps

Light WordPress profiler.

567262.1k2](/packages/rarst-laps)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)[xiaodi/think-whoops

A debug service for ThinkPHP.

413.5k1](/packages/xiaodi-think-whoops)[mouf/whoops-stackphp

This package provides a StackPHP middleware for using the Whoops error handling library

145.7k1](/packages/mouf-whoops-stackphp)

PHPackages © 2026

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