PHPackages                             spacedmonkey/wp-user-roles - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spacedmonkey/wp-user-roles

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

spacedmonkey/wp-user-roles
==========================

Improve performance of user queries by adding a new table.

0.0.1(7y ago)11102GPL-2.0-or-laterPHPPHP &gt;=5.6

Since Jun 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/spacedmonkey/wp-user-roles)[ Packagist](https://packagist.org/packages/spacedmonkey/wp-user-roles)[ Docs](https://github.com/spacedmonkey/wp-user-roles)[ RSS](/packages/spacedmonkey-wp-user-roles/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

WP User Roles
=============

[](#wp-user-roles)

**Contributors:** spacedmonkey
**Donate link:**
**Tags:** comments, spam
**Requires at least:** 5.2
**Tested up to:** 5.2
**Requires PHP:** 5.6.0
**Stable tag:** 1.0.0
**License:** GPLv2 or later
**License URI:**

Improve performance of user queries by adding a new table.

Description
-----------

[](#description)

This plugin is designed to improve performance of role based user queries. Roles are stored in user meta table, in an array. To query by role, requires a LIKE search on user meta table. For large sites or multisite, with lots of users, this can make queries take a long to return.

The plugin adds a new table that makes querying by user, a much simplier query, reducing database stain.

This plugin requires WordPress 5.2. Is designed to work with multisite. It is required it should be installed as an mu-plugin.

For this interested in user query performance, you may wish to also install the [WP User Query Cache](https://github.com/spacedmonkey/wp-user-query-cache) plugin.

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

[](#installation)

### Using The WordPress Dashboard

[](#using-the-wordpress-dashboard)

1. Navigate to the 'Add New' in the plugins dashboard
2. Search for 'wp-user-roles'
3. Click 'Install Now'
4. Activate the plugin on the Plugin dashboard

### Uploading in WordPress Dashboard

[](#uploading-in-wordpress-dashboard)

1. Navigate to the 'Add New' in the plugins dashboard
2. Navigate to the 'Upload' area
3. Select `wp-user-roles.zip` from your computer
4. Click 'Install Now'
5. Activate the plugin in the Plugin dashboard

### Using FTP

[](#using-ftp)

1. Download `wp-user-roles.zip`
2. Extract the `wp-user-roles` directory to your computer
3. Upload the `wp-user-roles` directory to the `/wp-content/plugins/` directory
4. Activate the plugin in the Plugin dashboard

GitHub Updater
--------------

[](#github-updater)

The WP User Roles includes native support for the [GitHub Updater](https://github.com/afragen/github-updater) which allows you to provide updates to your WordPress plugin from GitHub.

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

### This plugin doesn't have a UI, is the correct

[](#this-plugin-doesnt-have-a-ui-is-the-correct)

Yes, this it is not needed

Changelog
---------

[](#changelog)

### 1.0

[](#10)

- First release.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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

Unknown

Total

1

Last Release

2579d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/237508?v=4)[Jonny Harris](/maintainers/spacedmonkey)[@spacedmonkey](https://github.com/spacedmonkey)

---

Top Contributors

[![spacedmonkey](https://avatars.githubusercontent.com/u/237508?v=4)](https://github.com/spacedmonkey "spacedmonkey (15 commits)")[![afragen](https://avatars.githubusercontent.com/u/1296790?v=4)](https://github.com/afragen "afragen (1 commits)")

### Embed Badge

![Health badge](/badges/spacedmonkey-wp-user-roles/health.svg)

```
[![Health](https://phpackages.com/badges/spacedmonkey-wp-user-roles/health.svg)](https://phpackages.com/packages/spacedmonkey-wp-user-roles)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3355.8k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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