Multitrack test

Activities ::: mod_magtest
Maintained by Valery Fremaux
This activity proposes a multitrack test such as visible in magazines. Questions are defined with a predefined number of answer categories, one answer per category. If the participant chooses the answer, it gives points to the relevant category. Each category drives a scoring track and the feedback of the most rated category is given. The result of the test can be used to generate groups in the course.
Latest release:
86 sites
15 fans
Current versions available: 14

Features available :

  • Setup categories and optionally associate customisable graphical icon for them
  • Define questions
  • Define choice options for the questions associated with each category
  • Define conclusions per category that will displayes as debriefing when the test gets finished.
  • Optionnaly weight answers (an aswer may not add always the same amount of "points" to a category score).
  • Preview the test with weighting (according to capability "mod/magtest:manage")
  • Play the test (according to capability "mod/magtest:doit")
  • View the test result when finished
  • Replay the test if allowed (according to capability "mod/magtest:multipleattempts" plus a global "per instance" feature switch).
  • View the complete results (according to capability "mod/magtest:viewotherresults")
    • Per user
    • Per category with additional hint :
  • Convert test results into Moodle groups if
    • Course is in goup mode
    • Course has no group set
    • The "per instance" feature switch "usemakegroups" is enabled.
  • View global stats about answers.
  • Display a global conclusion
  • Backup module
  • Restore
  • Do not allow playing the test if current time is former than an enabled starttime.
  • Do not allow play nor replay if current time is over an enabled endtime
  • Delete all user's answers on course reset

New SingleChoice mode

When enabled, only the question is displayed with a single yes/no choice . Category answers weights are credited to respective category if the answer is "yes".

This plugin is now maintained at (French Moodle Partner).


Valery Fremaux (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Jennie
    Mon, Oct 7, 2013, 1:26 AM
    I have easily uploaded your Moodle 1.9 version of Multitest and find that it does not want to update after I add questions. Is there something that I am doing inproperly? Thank you for your time.
  • Germán and Temudgin
    Mon, Oct 7, 2013, 11:15 PM
    Hi Valery,
    I visited the Website URL page at to know more about your magtest add-on. I could not find much info (Je ne parle pas français), so maybe I will create a Moodle Docs page for this plugin. Is that OK with you?

    In the Website URL page You have a block named Fréquentation (hits). I liked it a lot.

    Is the Fréquentation block a moodle add-on block that you developed?
    Will you submit it to Moodle plugins database for all to use ?

    Thanks in advance.
  • Germán and Temudgin
    Mon, Oct 7, 2013, 11:22 PM
    Hi Valery,
    I just found the Moodle Docs page that you wrote for this plugin at

    I had not seen it before sad My fault. I apologize.

    Could you please link to this page in 'Useful Links' above as 'Moodle Documentation for this plugin' ?

    Thanks again.
  • Wed, Dec 4, 2013, 11:25 PM
    Hello, Valery, Excellent Plug in.
    Is there any solution for the Hint issue?
    ("- about helps and hnts : absolutely agree. I will work on it. to improve this early step of dicumentation.")

    I downloaded the version 2013070901 and works perfectly, but the hint button opens a new page, I would expect it to open a pop up or a floating div.

  • Fri, Nov 20, 2015, 8:59 PM
    Nous utilisons le plugin "Multitrack test".
    Nous aurions besoin de ce plugin sur une version 2.9 de Moodle.
    Savez vous s'il est prévu une mise à jour de ce plugin pour cette version et si oui pour quand ?
    Merci d'avance,
  • Mon, Jul 11, 2016, 1:23 PM
    Is it possible to shuffle the questions. Also how to show a particular response for scoring high in a particular category?
  • Это я…
    Sat, Jul 16, 2016, 8:06 PM
    Hi, Valery
    Small error in mod_form.php
    String 78 $mform->addHelpButton('allowreplay', 'pagesize', 'magtest');
    Must be $mform->addHelpButton('allowreplay', 'allowreplay', 'magtest');

    Thanks for this plugin
  • Tue, Nov 1, 2016, 12:01 AM
    i am having issues with the plugin. it allows one user to upload their answers but then all other learners who try and take aprt its says 'you have completed the test' and then when clicking 'redo' it doesnt allow you to do anything. does anybody have any information on this?
  • Tue, Apr 25, 2017, 6:08 PM
    I've run into an issue with this with MySQL 5.7. Specifically the magtest_get_next_questionset() function fails for any other user if one user has undertaken the activity. The LEFT JOIN in this is not returning any null values so the user will never be given the next question as it returns false.

    I changed the function to get the number of questions in the test and then check the number of responses a user has. If these are different then it presents the next question to the user. Code is:

    // If all questions have answers, test is finished (no next page).
    $questions = $DB->get_records('magtest_question', array('magtestid' => $magtest->id), 'sortorder');

    // Check if the user has answered already.
    if ($useranswers = $DB->get_records('magtest_useranswer', array('userid' => $USER->id, 'magtestid' => $magtest->id))) {
    if (count($useranswers) == count($questions)) {
    return false;

    This could obviously be more efficient by using count_records() rather than get_records() followed by count(). This was more of a hack to find and fix the issue.
  • Wed, May 23, 2018, 2:57 AM
    Hi Valery. The plugin does not allow to creat groups using the tests anymore ( it shows this error: coding error detected, it must be fixed by a programmer: groupmode() can not be used any more, please use groups_get_* instead ). I beg you to fix it, I need the plugin for the final work of my master on e-learning. Thanks a lot.
  • Mon, Jul 2, 2018, 7:05 PM
    Exception : syntax error, unexpected '<<' (T_SL)
    Wed, Sep 26, 2018, 2:43 AM
    Moodle 3.5 versión Pluggin 2016060100 y aparece este error al intentar crear una pregunta Excepción - syntax error, unexpected '<<' (T_SL)

    Más información sobre este error
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:

    line 64 of \mod\magtest\questions.php: ParseError thrown

    ¿alguien tiene la solución?
  • Tue, Nov 6, 2018, 7:06 PM
    We were waiting for the update of this wonderful and very useful plugin, but the error remained. Moodle 3.5
  • Tue, Jan 29, 2019, 4:26 PM

    This module contains multiple PHP syntax errors, appearing to come from un unsuccessful code merge. We managed to test the plugin by installing the master version from GitHub, but other errors arise then.

    Is this plugin still maintained?
  • Fri, Aug 28, 2020, 2:12 PM
    I get this kind of error as shown below, when I add a new Multitrack test to the course.

    Notice: Undefined index: itemid in /home/publicad/public_html/lms/mod/magtest/lib.php on line 106

    Notice: Undefined property: stdClass::$result_editor in /home/publicad/public_html/lms/lib/filelib.php on line 256
    Skip to main content

    Could you pls help me.

    Thank you.
1 2 3
Please login to post comments