Vetting Moodle plugins before installing them

A directory listing is a starting point, not a approval. This page sets out the checks that decide whether a Moodle plugin is safe to run in production, and what to confirm before you install it.

On this page

Why vetting Moodle plugins before installing them matters

A team has found a plugin in the Moodle plugins directory and needs to decide whether it can go to production. Before installing it, check five things: whether the listing supports your Moodle version, whether the maintainer is still active, whether the plugin implements the privacy API, whether its code has been security reviewed, and whether it overlaps with features already in core. Add a documented exit plan, so you know how to remove the plugin and its data cleanly if the project stalls. These checks take place before the plugin touches a shared environment, because a plugin that runs in production becomes part of your upgrade, backup and compliance scope.

Moodle is licensed under GPL-3.0 and maintained by Moodle HQ (Moodle Pty Ltd), which means you can inspect, modify and self-host the code freely. The license does not, however, make third-party code reviewed or maintained. Moodle documents more than 50 plugin types, spanning activity modules, blocks, themes, authentication, enrolment, local, report and admin tool plugins, and the quality of listings varies widely across that range. A small local plugin written for one school may have a single author and no tests, while an authentication plugin touches every login. The risk you accept depends on what the plugin can read, write and change, so review its type and permissions alongside its listing.

Start with the listing and the version history, and confirm the supported Moodle versions against the release you run or plan to run. Check the release date of the latest version, the open issues and whether the maintainer has answered recent questions. Then read the code yourself or through your security team, paying attention to capability checks, external calls, file handling and any use of web service functions. Record each finding in writing so that the decision can be repeated at the next upgrade. Where a plugin does not meet your criteria, the decision is usually to build a small local plugin or to use a core feature instead.

Which vetting checks apply to which plugin types

This table compares the six vetting checks against the plugin types most often installed on Moodle sites. Read each row to see when a check matters most and what evidence to request from the plugin maintainer or your own tests. The main takeaway is that a web service or authentication plugin carries more security and data exposure weight than a block, so its review should be deeper.

Vetting checkAuth plugin (for example SSO)Local pluginActivity moduleThemeWeb service use
Supported Moodle versionsConfirm the listed Moodle versions include your target release, such as 5.1 or 5.3, before any upgrade plan is madeConfirm the directory listing covers your target version and that the release line matches your PHP and database stackCheck the version matrix closely, since activity modules touch backup, restore and gradebook APIs that change between releasesConfirm the theme is built for the Boost family and your target Moodle release, especially for Bootstrap 5 changesConfirm the plugin's external functions and the Moodle version they target match the service you expose
Maintainer activityLook for recent releases and responses to issues, since sign-in breaks quickly if the plugin falls behindReview recent commits and release notes to judge whether the local code will follow core API changesReview release cadence and open issues, because activity modules must be maintained alongside core completion and gradebook changesReview whether the theme is updated after Boost changes and whether the maintainer documents breaking changesReview whether the maintainer answers security reports and publishes updates for exposed functions
Privacy API supportConfirm the plugin declares what user fields it stores and how they map to Moodle user dataConfirm the plugin declares any personal data it stores, and that export and deletion requests reach its tablesConfirm the activity stores data that the privacy API can export and delete for each learnerUsually null, since themes rarely store personal data, but confirm no user data is written by custom settings or assetsConfirm any data passed through functions is declared and that retention and deletion behaviour is documented
Security reviewReview how credentials, tokens and mapped attributes are handled, and test sign-in failure pathsReview capability checks, input handling and any direct database queries in the codeReview form input, file uploads and grading code paths for capability and escaping issuesReview templates and JavaScript for unsafe output, and check external assets loaded from third-party hostsReview capability checks, parameter validation and token scope for every exposed function
Overlap with core featuresConfirm the core authentication plugins do not already meet the need, such as LDAP, LTI or OAuth 2Confirm core settings, existing local plugins or a block do not already provide the behaviourConfirm no core activity module or community plugin already covers the teaching needConfirm the look can be achieved with Boost settings and presets before writing a custom themeConfirm the core web service functions do not already return the data needed before adding new ones
Exit planDocument how users and identities revert to a core method if the plugin is removedDocument how data and settings are removed and what behaviour returns to core when uninstalledDocument how existing activity records are preserved, exported or converted if the module is removedDocument the fallback theme and how course pages render when the custom theme is removedDocument how consumers are notified and what replaces the function if it is withdrawn

How supported Moodle versions decide the install

A plugin listing is only useful once it is matched against the Moodle release you intend to run and the server stack that release requires. The cards below cover the checks that connect a plugin's stated support to your target version, your server requirements and your upgrade plan, before anything reaches production.

Match the listed Moodle versions

Read the supported Moodle range on the plugin's directory page and compare it with your target release, not with the version you run today. Read the range closely: the auth_saml2 listing, maintained by Catalyst IT, states support from Moodle 2.7 through 5.1. That means it is not listed for Moodle 5.2 or 5.3 at the time of the listing, so a planned move to 5.3 needs a newer plugin release or a tested build from the maintainer. Ask the maintainer for a written compatibility statement before you commit to a target.

SAML2 plugin listing

Check the Moodle 5.1 server requirements

Moodle 5.1 requires 64-bit PHP 8.2 or later, with PHP 8.3 and 8.4 supported. Database support includes PostgreSQL 15, MySQL 8.4, MariaDB 10.11 and Microsoft SQL Server 2017 or later. Confirm that every plugin you intend to install runs on the same PHP version as the core release, because a plugin that only supports an older PHP line will block the target stack even when Moodle itself runs.

Moodle 5.1 release notes

Check the Moodle 5.3 server requirements

Moodle 5.3 raises the floor to 64-bit PHP 8.3 or later, with PHP 8.4 supported, and moves the database baseline to PostgreSQL 17, MySQL 8.4, MariaDB 11.4 or SQL Server 2019 or later. Sites must already run Moodle 4.4 or later to upgrade. For each plugin, confirm it runs on PHP 8.3 and the database versions in your environment, and record any plugin that needs a server change before the upgrade window is booked.

Confirm the 5.1 public document root

From Moodle 5.1, the web server document root must point to the public directory instead of the main Moodle folder. Plugins that add files outside public, or that assume a web-accessible path in the old layout, can break after the change. Check the plugin's install instructions and any custom web server rules, and test that the plugin's pages and assets load through the new document root in a staging copy.

Account for the Classic theme removal

Moodle 5.3 removes the Classic theme from core. A plugin or course configuration that still selects Classic, or a theme that depends on Classic templates, will fail to display correctly after the move. Confirm which theme the plugin assumes, check whether any site-level or course-level theme setting points to Classic, and move to Boost-based themes before the upgrade rather than during it.

Confirm the plugin before a planned upgrade

Support statements describe a point in time, so repeat the check before every planned Moodle upgrade. Record the plugin version, the Moodle versions it lists, the PHP and database requirements, and the maintainer's latest release date in your install record. Run the plugin in a staging copy of the target release with a copy of production data, and keep a written exit plan that names the fallback if the plugin is not updated in time.

Vetting sequence for a plugin before production

The sequence turns a plugin directory listing into a documented go or no-go decision, so only plugins that match your Moodle release, data handling and support needs reach production. Each step closes with a check the team must pass before moving on.

  1. Shortlist candidates from the plugins directory

    Start from the Moodle plugins directory and record each candidate with its plugin type, component name, the business need it serves and the Moodle versions it lists as supported. The product owner and the Moodle administrator agree on the shortlist. Done means every candidate has a written need statement, and any plugin that cannot be matched to a clear need is dropped before anyone reads its code. Confirm the plugin type against the Moodle plugin types documentation so you know which installation path and review surface apply.

  2. Check version support against your target release

    Compare each shortlisted plugin's listed Moodle support with the release you will run in production, not the release you run today. Confirm the target release against the Moodle releases page, including its general and security support end dates, and check the server requirements in the release notes, such as the PHP and database versions. Done means the plugin lists your target release explicitly. A plugin that only lists older releases goes back to the shortlist or into a documented exception with an owner and a review date.

  3. Review maintainer activity and issue history

    Read the plugin's repository or listing for recent commits, release history, open security issues and how the maintainer answers bug reports. Ask the vendor or maintainer, in writing, how they handle security reports and which Moodle releases they test against. Done means you have a short written assessment that the plugin is maintained at a pace your support model can absorb. Record any gap, such as a single maintainer or a long period without a release, so the exit plan can account for it.

  4. Confirm privacy API implementation

    Check that the plugin implements Moodle's privacy API if it stores personal data, and confirm the implementation covers export and deletion for each table it writes. The privacy API is documented with the plugin types guidance, and the Moodle privacy tooling in your site depends on it. Test the plugin's privacy provider in staging with a sample user by running an export and a deletion request. Done means both requests return the expected data and the deletion leaves no personal records behind. A plugin that stores personal data without this support is not approved for production.

  5. Run a security review of the code and external calls

    Have a security engineer review the plugin code for the common web application weaknesses, including input handling, capability checks on every page and web service function, file upload handling and use of raw SQL. Map every outbound call, such as to a third-party API, a CDN or a telemetry endpoint, and record what data leaves the server. Done means the review produces a findings list with each issue fixed, accepted with an owner, or rejected. Confirm the reviewer's scope in writing before the work starts, since reviewers can only test what they are given.

  6. Test overlap with core features

    Compare the plugin's functions with what Moodle core and your already approved plugins provide, using a feature matrix. Enable the plugin on a test course and check whether it duplicates a core activity, block or report, or changes behavior that core relies on, such as grading, completion or enrolment. Done means you can state in one sentence what the plugin adds that core cannot do, and that duplicate functions are either removed from scope or deliberately chosen. Overlap that creates two sources of truth for grades or user records is a reason to reject the plugin.

  7. Install in a staging copy built like production

    Build a staging site from a copy of production configuration, with the same web server document root, PHP version, database engine, caching and authentication settings, and a restored backup of production data with personal data masked. Install the plugin through the same process you will use in production, run the upgrade, and exercise the main user journeys, scheduled tasks and the plugin's admin settings. Done means the plugin installs and upgrades cleanly, the site's logs show no new errors, and the test results are signed off by the Moodle administrator.

  8. Write the exit plan

    Document how you would remove the plugin if the maintainer stops supporting it or a security issue cannot be fixed. Record where its data lives, which tables and files it created, whether it can be uninstalled cleanly, what data must be migrated or exported first, and which core or alternative features would replace it. Done means the exit plan is attached to the approval record, a test uninstall has been run in staging, and the owner has agreed to review the plugin on each Moodle upgrade.

Security review points for third-party Moodle code

A plugin can pass a directory listing and still expose data or accept unsafe input once installed. The cards below cover the code paths that most often carry that risk in Moodle plugins. Confirm each point against the plugin source for the exact version you plan to install, not against its listing or changelog.

Capability checks on every entry point

Check that each page, AJAX endpoint, web service function and form handler calls a capability check against the right context before it reads or changes data. Look for checks that only test whether a user is logged in, or that test a site-wide capability where a course or category context is needed. Confirm that the plugin uses Moodle's own require_capability and require_login calls rather than custom role logic. Note any action that can be run by a user with a broader role than the feature needs.

Plugin types docs

Parameter validation and output handling

Review how the plugin reads request data. Moodle's optional_param and required_param helpers with explicit PARAM_ types should be used, and raw $_GET or $_POST access is a warning sign. Check that database queries use placeholders, that output passes through the appropriate escaping in templates, and that any text saved for later display is cleaned. Input validation should happen on the server, since client-side checks do not protect the site.

Outbound network calls and credentials

Find every outbound HTTP request in the code and confirm its destination, purpose and data sent. Plugins that call third-party APIs often store API keys or tokens in plain settings, send user records along with the request, or follow redirects to hosts you have not approved. Confirm that credentials are stored through Moodle's admin settings with appropriate access, that requests use TLS with certificate verification, and that the destination list matches what your privacy notice and network policy allow.

File upload and file serving

Plugins that accept uploads or serve files need checks on file type, size and storage location. Confirm that uploads go through Moodle's file API and that files are served with the correct file area, context and access check instead of direct paths in the web root. Look for handling of executable or script file types, and for any code that writes uploads to a directory the web server can execute from. Test an upload of a disallowed file type on a staging site before approval.

Web service functions and token exposure

Any function declared in a plugin's db/services.php file becomes callable through Moodle's External API once it is added to a service. Review each declared function for its capability checks, its parameter definitions and whether it returns more fields than the consumer needs. Confirm which services the plugin adds functions to, and whether any function is added to a service that a broad token can reach. Keep the list of functions you enable short and record who holds each token.

New authentication plugins need extra scrutiny

Moodle core already ships authentication plugins for LDAP, OAuth 2, external database, LTI, Shibboleth and web services, so a third-party auth plugin should justify why none of these fit. Auth code decides who gets an account and which session is trusted, so a flaw there affects every user. Review how the plugin validates assertions or tokens, how it matches accounts to existing users, how it handles failed logins and whether it can create accounts without an approval step. Confirm the behavior with a test tenant before production use.

Core auth plugins

How a plugin moves from listing to production

A candidate plugin starts at its directory listing, where the team first checks the Moodle version match and the maintainer's activity. It then passes a privacy check and a security review, followed by a decision on whether core features already cover the need. Anything that fails a gate is rejected, and anything that passes goes to a staging test before production. Every accepted plugin ends with a recorded exit plan.

Decision path from directory listing to production, with reject branches at each gate.

Questions buyers ask about plugin vetting

What does plugin vetting cost and what drives the effort up?

The cost is the labor of reviewing each plugin against the checks in this topic, so it rises with the number of plugins, how deep the code review goes, and how much staging testing is needed. A single plugin with a clear listing and a small code footprint takes far less effort than a set of plugins that touch authentication, grades or personal data. Ask any provider for a quote that lists each plugin, the checks included for each, whether a staging test run is included, and what the written report contains. Vetting is a one-time review for each version you adopt, and it recurs when you upgrade Moodle or the plugin, because compatibility and maintainer activity must be checked again.

How long does a Moodle plugin review take?

The duration depends on scope: the number of plugins, the Moodle version you are targeting, the depth of the code review, and whether the plugin needs to run in a staging copy of your site with real course data. A listing check on a few plugins is a short exercise, while a full review that includes code reading, permission and privacy API testing, and a staging trial takes longer. Ask for the review timeline in the written scope before work starts, and confirm which items depend on your team, such as providing a staging environment or answering questions about how the plugin will be used.

Can our internal team vet Moodle plugins without a partner?

Yes, many teams can run the listing checks themselves, because the plugins directory shows the supported Moodle versions, the maintainer, release history and the privacy API status. The harder parts are reading PHP for unsafe input handling, checking capability and web service exposure, and testing how a plugin behaves with your authentication and grade data. Decide who owns each check, who signs off on the decision, and where the findings are recorded. An outside review adds value mainly when the team lacks PHP security experience or needs an independent record of the decision.

What do we need to provide for a plugin review?

The review needs a clear target: the Moodle version you run or plan to run, your database engine and PHP version, and the list of plugins with their exact versions. Access to a staging copy of your site, with a non-production database and representative test accounts, is needed for any behavior test. For code review, you need read access to the plugin source or a package you can download, and an owner who can answer questions about how the plugin will be used. Confirm these items in the scope, because missing access usually moves the schedule more than the code itself.

What should we do if a plugin is abandoned by its maintainer?

An abandoned plugin is a risk to plan for before it reaches production. Look for signs such as no releases for a long period, no support for your Moodle version, unresolved security reports, and a missing privacy API implementation. If it is already in use, decide whether to fork it under your own maintenance, replace it with a core feature or another maintained plugin, or remove it and move its data. Record the exit plan at vetting time, including how you would export its data and tables, so the decision is not made under pressure during an upgrade.

When should we build a local plugin instead of installing a third-party one?

Build a local plugin when the behavior is specific to your organization, when no maintained plugin covers it, or when a third-party plugin would bring far more code and permissions than the single feature you need. Vetting still applies to your own code, which needs the same review for input handling, capabilities and privacy. Local plugins carry ongoing upgrade and testing work that falls to your team or a partner, so the decision should weigh that recurring cost against the cost of maintaining an external plugin. Ask whether the requirement can be met by configuration of core features first.

Limits to confirm in your own environment

A directory listing answers some questions about a plugin and leaves others open. The cards below cover the items that a listing cannot settle for your site, and each one needs confirmation from the plugin author or from your own test run before the plugin reaches production.

Directory status and maintenance

Check whether the plugin is listed as current, whether it has recent commits or releases, and whether the author has responded to issues in the tracker. A listing can show a version that predates your release, so do not assume it is maintained because it still appears in the directory. Ask the author for their maintenance intent in writing, and record the date you checked so you can compare later.

Plugin directory listing

Support for your exact release

Confirm that the plugin declares support for the Moodle release you will run, not only the release it was built for. Support ranges in a listing often lag behind new releases, and the minimum PHP and database versions can differ from those of core. Install the plugin in a staging copy of your exact version and run its install and upgrade steps before you rely on the declared range.

Licence compatibility with your policy

Moodle core is licensed under GPL-3.0, but a plugin can carry its own licence, and some organizations restrict which licences their code may depend on. Read the licence file in the plugin package and compare it with your legal and procurement policy. Ask the author to confirm any bundled third-party libraries and their licences, since those are not always listed on the directory page.

Moodle source repository

Personal data reads and writes

Find out whether the plugin stores, reads or exports personal data, and whether it implements the privacy API so that Moodle's data export and deletion tools can reach that data. A plugin that keeps user records outside those tools can break your privacy response process. Test an export and a deletion for a test user on staging and confirm the results against your records of processing.

External service dependencies

List every outbound call the plugin makes, such as to a vendor API, licence server, font host or analytics script. Each dependency can transfer data out of your infrastructure, fail during an outage or require a credential you must manage. Ask the author to document these calls, then confirm them by watching network traffic during a test session on a staging site.

Commitment to your target version

Ask whether the maintainer plans to support your target Moodle release through its life, and how they will handle a security issue reported against it. An author who stops at the current release leaves you to maintain a fork or to remove the plugin during your next upgrade. Agree the exit plan in writing, including who would patch the plugin and how long you would run an unsupported version.

Moodle releases page

Writing an exit plan before a plugin goes live

Write the exit plan before the plugin is installed on production, because removal is harder than installation once users have created data through it. The plan should answer four questions: how the plugin is disabled, what data it created and where that data lives, which core feature or approved alternative takes over the function, and how the plugin is uninstalled without losing course content. Record the answers in the same change ticket as the install, so the reviewer can see the reversal path alongside the benefit.

Start with the data. Ask the vendor or maintainer to document every table the plugin creates, every file area it writes to, and every scheduled task, event observer and web service function it registers. Check whether it implements the privacy API, since that determines whether personal data can be exported and deleted on request. Then test the plan on a copy of production: disable the plugin, confirm that pages still render, export the plugin's records, uninstall it from the Plugins overview, and confirm that course content, grades and the question bank remain intact. Confirm the exact uninstall steps against the version you run, because behavior differs between plugin types.

Name the replacement before go-live. For each function the plugin provides, identify the core feature or a maintained alternative that could carry it, and note what would be lost in a switch, such as settings, reports or user-facing labels. Set a review date and an owner who can trigger the exit if the plugin stops receiving updates or fails a Moodle upgrade test. Keep a copy of the plugin's source at the approved version so that a rollback does not depend on the upstream listing still being available. These steps cost time at the start, but they turn a future removal into a routine change rather than an emergency.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted Moodle inside your own infrastructure, so every plugin is reviewed against your versions, your data and your access model before it reaches production. We scope the review in writing, test candidates in a staging copy of your site, and hand over a decision record your team can keep.

How we scope

  • Engagements are fixed-scope, with the plugin list, Moodle versions and deliverables agreed in writing first.
  • We confirm your target Moodle release and database stack so each plugin is checked against the exact version you run.
  • We agree which data the plugin touches, such as personal data, grades or integrations, so the review focuses on real exposure.

How we build

  • We check each candidate's directory listing for supported Moodle versions, release history and maintainer activity.
  • We review the code and install candidates in a staging environment to test capabilities, privacy API support and overlap with core.
  • We test upgrade behaviour and record any core features the plugin duplicates, so you can judge whether it is needed.

How we hand over

  • You receive a written vetting record per plugin with the decision, evidence, known risks and conditions for approval.
  • The record includes an exit plan describing how to remove the plugin, its data and its settings cleanly.
  • We walk your administrators and developers through the findings so they can repeat the review for future plugins.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial review.
  • We can re-vet approved plugins when Moodle releases a new version or when a maintainer changes or stops updates.
  • Retainer work can include retesting after plugin updates, so your team sees the impact before production changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.