PHPackages                             bradp/one-search-result - 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. [Search &amp; Filtering](/categories/search)
4. /
5. bradp/one-search-result

ActiveWordpress-plugin[Search &amp; Filtering](/categories/search)

bradp/one-search-result
=======================

Automatically send a user to the page or post if it's the only search result available

1.1.0(4y ago)9147[1 issues](https://github.com/bradp/one-search-result/issues)GPL-2.0-or-laterPHP

Since Aug 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bradp/one-search-result)[ Packagist](https://packagist.org/packages/bradp/one-search-result)[ RSS](/packages/bradp-one-search-result/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

One Search Result
=================

[](#one-search-result)

> A WordPress plugin to automatically send a user to the page or post if it's the only search result available.

When there is only one search result available for a query, automatically redirect the user to that result.

This will work with any theme and any posts, pages, or custom post types that would be shown in search results.

Available Filters
-----------------

[](#available-filters)

You can filter `one_search_result_pre_check` to false if you need to short-circuit and disable the redirect dynamically.

You can modify the redirect code with `once_search_result_redirect_code`, defaults to 302.

Changelog
---------

[](#changelog)

### 1.1.0

[](#110)

- Added another filter, cleaned up code.

### 1.0.3

[](#103)

- Initial release

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

1824d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66798?v=4)[Brad Parbs](/maintainers/bradp)[@bradp](https://github.com/bradp)

---

Top Contributors

[![bradp](https://avatars.githubusercontent.com/u/66798?v=4)](https://github.com/bradp "bradp (16 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")

---

Tags

searchwordpresswordpress-plugin

### Embed Badge

![Health badge](/badges/bradp-one-search-result/health.svg)

```
[![Health](https://phpackages.com/badges/bradp-one-search-result/health.svg)](https://phpackages.com/packages/bradp-one-search-result)
```

###  Alternatives

[netgen/query-translator

Query Translator is a search query translator with AST representation

2062.1M9](/packages/netgen-query-translator)[fran6co/phptrie

PHP Trie implementation

3418.9k](/packages/fran6co-phptrie)[imarc/google-site-search

A PHP Interface to the Google Custom Search API

3011.6k](/packages/imarc-google-site-search)[dialekt/dialekt

A boolean expression DSL.

173.8k](/packages/dialekt-dialekt)

PHPackages © 2026

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