What an AI-built Moodle plugin costs, and what the checks catch
Real numbers from Moodle plugins an AI builder wrote this month: model cost per plugin, how many fix rounds each needed, and the bugs a real Moodle check found before anyone installed them.
Short answer: the AI part of building a small Moodle plugin costs between about 10 cents and a dollar in model fees. That is not the expensive part. The expensive part is everything that makes the plugin safe to install: a real Moodle to install it in, tests, a walkthrough as each user role, and fix rounds when those fail. Every plugin below failed its first check, some on real bugs and some on wrong tests, and reading the code would not have told you which.
These numbers come from DevLMS Studio, the plugin builder we are about to open, measured in November 2026. Model fees are what we pay the AI provider per plugin. They are not what a plugin costs a customer.
What do the builds actually cost?
| Plugin | Builder | Model fees | Versions until the check passed |
|---|---|---|---|
| Report of students who have not logged in for a number of days | stronger model | $0.56 | 2 (one automatic fix round) |
| The same report, built again on the live server | stronger model | $0.84 | 3 |
| Dashboard block: how many of my courses have I completed | low-cost model | $0.08 | 4 |
| A heavy report plugin over many turns and checks | low-cost model | $0.52 | many, over a day of changes |
Two things stand out. The low-cost model is about seven to ten times cheaper per plugin, and it gets there, but it needs more rounds. And the cost of a plugin is mostly the builder’s own writing: for the $0.56 build, $0.36 was output tokens, because the instructions and Moodle notes it rereads every step are cached and cost little.
What did the checks catch?
Each version is installed in a fresh Moodle and checked: every page of the plugin opened with debugging on, the plugin’s PHPUnit tests, its Behat scenarios, a scripted walkthrough signed in as each role (student, teacher, admin), and the Moodle coding standard.
The first version of the dashboard block failed 8 of its 11 tests, one walkthrough step and the code checks. The builder found four real bugs from those results:
- A missing namespace on
context_course. It works in some files and is a fatal error in others, depending on the file’snamespaceline. - A block class looked up without its namespace, so the lookup failed.
- A type hint too narrow for the renderer Moodle actually passes in. Fine in the builder’s head, fatal on a real page.
- A stray
MOODLE_INTERNALcheck in a file that runs no code, which the coding standard flags.
The report plugin’s first version opened its page fine as a teacher, but two walkthrough steps failed. The cause was in the builder’s own test steps, not the plugin: a student opening a course records a visit in Moodle even when access is then refused, and the steps that tried this ran before the steps that counted idle students, so two students looked active. The builder moved those steps to the end. One of its PHPUnit tests also expected the wrong web address, and the code checks flagged a docblock layout. Wrong tests are as common as wrong code, and a real Moodle tells you which one you have.
None of these are exotic. They are the bugs a human developer also ships when there is no real Moodle in the loop. The difference is that the builder gets the failure, with the file and line, within about three minutes, and fixes it before anyone downloads anything.
Why does a plugin take several rounds?
Because the first version is a draft, from a person or a model. The rounds in the table above went like this for the dashboard block:
- Version 1: 8 of 11 tests and 1 walkthrough step failing, code style problems.
- Version 2: 2 tests and 2 walkthrough steps failing.
- Version 3: 1 walkthrough step failing.
- Version 4: everything passes.
One of those late failures was ours, not the builder’s. Our walkthrough check looked for the course name only in the page’s main area, and Moodle 5.x shows it in the page heading. The plugin was right; the check was wrong. We fixed the check the same evening. A test harness has bugs too, and you only find them by running real plugins through it.
So what does a plugin really cost?
If you only count model fees, almost nothing. In practice you are paying for three other things:
- A real Moodle per check, ideally on the versions you run (we check on 4.5 LTS up to 5.3). That is a server, not a model.
- The checks themselves, written for each plugin: tests named after each requirement, Behat scenarios, a walkthrough per role.
- Someone accountable when the plugin meets a real site, an upgrade or a strange theme.
That is why we price plugin work by what the plugin has to do and how it is tested, not by how long a model typed. Our plugin cost guide has the numbers by plugin type, and this post on testing AI-written plugins covers how we decide a plugin is done.
If you want a plugin built and tested this way, ask us for a fixed price, or build one yourself in the studio, free to start.
Need a Moodle plugin built or rescued?
Tell the scoping assistant what you need. You get a fixed price and a timeline in a few minutes, and an engineer reviews it within one business day.
Get a fixed quote