PHPackages                             glomberg/wpdb-unsafe-methods - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. glomberg/wpdb-unsafe-methods

ActivePsalm-plugin[Testing &amp; Quality](/categories/testing)

glomberg/wpdb-unsafe-methods
============================

Psalm plugin to forbid calling provided `$wpdb` methods

1.0.1(1y ago)01.9k↓47.2%1MITPHP

Since Aug 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Glomberg/psalm-wpdb-unsafe-methods)[ Packagist](https://packagist.org/packages/glomberg/wpdb-unsafe-methods)[ RSS](/packages/glomberg-wpdb-unsafe-methods/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Psalm Plugin to prevent direct using provided `$wpdb` methods
=============================================================

[](#psalm-plugin-to-prevent-direct-using-provided-wpdb-methods)

### Installation

[](#installation)

```
composer require --dev glomberg/wpdb-unsafe-methods
vendor/bin/psalm --init
vendor/bin/psalm-plugin enable glomberg/wpdb-unsafe-methods

```

### Features

[](#features)

### Configuration

[](#configuration)

If you follow the installation instructions, the psalm-plugin command will add this plugin configuration to the `psalm.xml` configuration file.

```

```

Do not forget to add `method` tags with the names of the methods you want to forbid.

```

    query
    get_results

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~82 days

Total

2

Last Release

591d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8588152?v=4)[Viktor](/maintainers/Glomberg)[@Glomberg](https://github.com/Glomberg)

---

Top Contributors

[![Glomberg](https://avatars.githubusercontent.com/u/8588152?v=4)](https://github.com/Glomberg "Glomberg (2 commits)")[![svfcode](https://avatars.githubusercontent.com/u/74239490?v=4)](https://github.com/svfcode "svfcode (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/glomberg-wpdb-unsafe-methods/health.svg)

```
[![Health](https://phpackages.com/badges/glomberg-wpdb-unsafe-methods/health.svg)](https://phpackages.com/packages/glomberg-wpdb-unsafe-methods)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[roave/infection-static-analysis-plugin

Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis

1344.4M287](/packages/roave-infection-static-analysis-plugin)[bear/qatools

PHP QA Tools

22116.2k6](/packages/bear-qatools)

PHPackages © 2026

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