If you rank WordPress plugins by how many sites run them, a topic search such as “backup” scores 0.08 out of 1. I measured that ranking because it is the one most people expect a plugin search to use, and out of every option I tested it was the worst.
Llawliet is a search and ranking engine I build in Rust for the WordPress.org plugin directory. It indexes more than 81,000 plugins, estimates how many sites really run each one, and runs as one container on a single small server. I gave the ranking two rules that I do not break. No plugin is handled by name, so every rule applies to every plugin. And every change is tuned on one set of searches and reported on another set that took no part in the tuning. A few numbers in the ranking are choices that no test can settle, such as how much a poor rating should cost next to a small audience. I keep a written list of those so they can be argued with.
How a change is judged
Every ranking change goes through two tests, and each covers what the other cannot see. The first is a set of 68 search needs in 13 families. A need is a task a site owner has, such as taking bookings, together with the searches they might type. For each need, every plugin worth considering is graded against a written rubric, which produced 7,275 judgments in total. The grader is a model, pinned to one version so the grades cannot shift between runs. It sees only the plugin’s name, tags and description. It never sees install counts, review counts or the plugin’s current position, so a famous plugin gets no credit for being famous. To check the grader, I had a second model from a different company grade a random hundred of those pairs without seeing the first grades. It gave the same grade on 75 of them and was never more than one grade away.
I split the 68 needs to tune on 46 of them and report on the other 22, and I change nothing in response to the 22. I have reported on them more than once by now, so they are less unseen than they were at the start.
A leak always flatters the score, so any rise I cannot explain gets checked before it gets reported.
The second test is generated from the directory itself: 1,167 searches for plugin names, names with a letter missing, half-typed names and topics. Three in five are for tuning and two in five are held back.
Sixty-eight needs is a pilot. It can show a large fault but cannot confirm a small gain, and I do not read it as though it could.
Decision 1: Popularity counts for less than you would expect
A plugin’s score is its text match, softened by a square root, multiplied by a measure of quality. That left the question of how much site count should weigh inside quality. Counting sites heavily seemed like the obvious choice until the measurements rejected it. When a small audience can cost a plugin 70% or 90% of its score, topic searches get worse and a plugin picked at random is found by its own name less often. No score improves by more than a thousandth in return, so I did not raise it.
How the shipped ranking compares with four alternatives
Choose an alternative to compare against the shipped ranking.
Shipped ranking compared with “Most installed first”
-
All searches together
-
A plugin’s name, popular plugins
-
A plugin’s name, any plugin
-
A name with a letter missing
-
A name typed three fifths of the way
-
A topic, such as “backup”
Ranking by how many sites run a plugin finds famous plugins by name and almost nothing else. On topics it scores 0.083, and a plugin drawn at random is found by its own name about half as often.
Shipped ranking compared with “Text match only”
-
All searches together
-
A plugin’s name, popular plugins
-
A plugin’s name, any plugin
-
A name with a letter missing
-
A name typed three fifths of the way
-
A topic, such as “backup”
With no quality signals, any plugin is found by its exact name slightly more often than in the shipped ranking (0.991 against 0.960). Topics and half-typed names get much worse. I gave up those three hundredths to get the rest.
Shipped ranking compared with “A small audience can cost up to 90%”
-
All searches together
-
A plugin’s name, popular plugins
-
A plugin’s name, any plugin
-
A name with a letter missing
-
A name typed three fifths of the way
-
A topic, such as “backup”
The shipped ranking limits how much of its score a plugin can lose for being small. Raising that limit to 90% improves no score by more than a thousandth and makes small plugins harder to find by name.
Shipped ranking compared with “No bonus for an exact name”
-
All searches together
-
A plugin’s name, popular plugins
-
A plugin’s name, any plugin
-
A name with a letter missing
-
A name typed three fifths of the way
-
A topic, such as “backup”
Without the bonus, topics stay the same and every kind of name search gets worse. Someone who types a plugin’s exact name wants that plugin.
Decision 2: Two capped penalties, for add-ons and for listings that borrow a popular word
In an earlier version of the ranking, a search for “contact form” listed three add-ons for one form plugin among the form builders. A search for “ai” brought back a page builder alongside several SEO and form plugins that had added the word to their listings. I could have kept a list of offenders, except a list is just a set of opinions that goes out of date the day after it is written.
Two general rules handle both problems instead, and each can lower a score by a bounded share and no more: up to 30% for the first and up to 40% for the second. One lowers a plugin that presents itself as an add-on for another plugin when the search was not for an add-on. The other uses a listing’s other tags and words to measure how much of it is about the searched topic.
Together with a change to how sites are counted, those rules moved the tuning score from 0.803 to 0.838 and the held-back score from 0.806 to 0.820. On 22 needs, that held-back rise is too small to stand on its own. I read it as agreeing with the tuning score and with individual searches such as “events calendar”, which rose from 0.52 to 0.94.
Two things got worse. One judged need, “multi step form”, fell from 0.80 to 0.68, because the grader had counted multi-step checkout plugins as good answers while the new rule treats them as store plugins. On the generated test, half-typed names fell from 0.867 to 0.857, because counting sites up to ten million lets a bigger plugin win more ties while a smaller plugin’s name is still being typed. I kept the rules and recorded both losses.
Decision 3: A higher score that I did not ship
Trusting the text match more raised the judged score from 0.818 to 0.840 on the 40 needs I had graded at the time. It also placed a backup plugin on 84,000 sites ahead of one on 4.1 million for the search “backup”. The score climbed because the grader is blind to size by design. That blindness keeps the grades fair, though it also means they cannot tell me whether a result is the one a searcher expects to see first. I dropped the change because the gain relied on something the benchmark cannot see.
Measurement also led me to reject a small embedding model and two small reranking models. They were good at ruling out plugins that had nothing to do with a search, and poor at ordering the rest. WooCommerce came thirteenth for “ecommerce”. The tag-based rule from Decision 2 already does that ruling out with no model to run.
The time the test was wrong
The topic test hides every plugin’s tags from the search so the engine has to find a backup plugin without seeing the word “backup” in its tags. One of my own rules broke that isolation. It read the tags directly to measure how much of a listing was about a topic, so the hidden answer leaked back into the ranking. With the leak the topic score read 0.501. Without it the same ranking scored 0.486, and that is the number I recorded for that version. The test now switches that rule off whenever it hides the tags. The figure under Decision 1 comes from a different run of the test, so its topic score of 0.502 is a separate measurement from both of these numbers.
Fifteen thousandths is a small gap, yet I include it because the direction matters. A leak always flatters the score, so any rise I cannot explain gets checked before it gets reported.
What is still unsolved
Topic search scores about 0.5 on the generated test, compared with 0.99 for finding a popular plugin by name. Part of that gap belongs to the test itself. An author may give a plugin only five tags, so a real backup plugin that is not tagged “backup” counts as a miss. The rest of the gap is real, and it is where most of the remaining work sits.
The judged set also needs to grow, since 68 needs is enough to catch a ranking that is clearly wrong, but not enough to tell two good rankings apart.
Llawliet also estimates how many sites run each plugin, which the directory shows only as rounded figures. That method has its own essay: How Llawliet estimates WordPress plugin installs.