Select Moodle version:

Plagiarism: Source-code Plagiarism Plugin

A plugin integrating 2 source code detection engines MOSS and JPlag into Moodle for programming assignments.
Maintained by: Picture of Tri LE Tri LE
for Moodle
2.0, 2.1, 2.2, 2.3

This plugin uses JPlag and MOSS as the underlying detection engines to provide an educational tool to raise awareness of students on code plagiarism. It permits:

  • Quick and easy scanning of assignments
  • Students' draft submission
  • Easy report navigation
  • Multiple scanning and history
  • Marking pairs of students with possible plagiarism

New version 1.3:

  • Corrections for reported bugs
  • Better interface and navigation
  • Code seeding: upload additional code (e.g. past assignments) to scan with the current assignment

Please take a look at the documentation for screen shoots and more details.

Two quick start video guides could be found at: and

This plugin was tested with Moodle 2.0 to 2.3. However, it isn't available for use with Moodle 2.4 yet. A fix for compatibility with the latest Moodle version will be released soon.




Picture of Tri LE
Tri LE (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Mon, Aug 20, 2012, 11:37 AM
    I've noted that this plugin uses yui2 libraries.
    Do note that moodle version 2.4 (in development) has moved from using yui2 to yui2in3 as described by MDL-34741.
    Here is a link to using yui2in3 :
  • Picture of Tri LE
    Thu, Sep 6, 2012, 2:01 PM
    Thank you very much. I will switch the remaining YUI 2 to YUI 3. Most of the javascript now use YUI 3 alreay, but some remains in YUI 2 due to lack of time.
    If you discover any other things that needs to be corrected, please tell me
  • Picture of Gehrt Delius
    Sat, Oct 20, 2012, 7:38 PM
    This plugin does not work with Moodle 2.3.2+ (19.10.2012).
  • Picture of Tri LE
    Wed, Oct 31, 2012, 6:25 AM
    What is the errors? I will have a check!
  • Picture of Karl Engelbogen
    Tue, Nov 6, 2012, 3:14 AM
    Kommentar hinzufügen...I have the same issue:
    I have triggered a manual scan (in the submission status – add submission windows).
    Then I got a link to the JPlug/MOSS report in the add submission windows.
    Following the link I get the following error message: “Invalid course module id”
    No report appears.
    Thx for checking
  • Picture of David Dunn
    Tue, Nov 27, 2012, 8:49 PM
    It's not working for me either. When I enable the plugin, I then get a blank screen when I try to set up an assignment. Debugging gives:
    Fatal error: Cannot redeclare create_file() (previously declared in /home/moodle/public_html/plagiarism/ephorus/lib.php:377) in /home/moodle/public_html/plagiarism/programming/scan_assignment.php on line 90

    Ephorus is the other plagiarism plugin we use, for regular text scans comparing with internet sources.

    Is this a fatal conflict?
  • Picture of Tri LE
    Thu, Nov 29, 2012, 2:11 PM
    Hi David, yes it is a fatal conflict due to name collision. I will consider changing the name to resolve the conflict and notify you when it is available.
    In the mean time, please disable one of the plugin.
  • Picture of Tri LE
    Fri, Nov 30, 2012, 2:28 PM
    Sorry! Temporarily disable it from several day for important bug fixes.
  • Picture of Britt Matych
    Mon, Apr 22, 2013, 3:33 PM
    It doesn't seems to work with moodle 2.4.3. The problems are the yui2-libaries. When I try to configure the plugin the system says: "Coding error detected, it must be fixed by a programmer: PAGE->yui2_lib() is not available any more, use YUI 2in3 instead, see MDL-34741 for more information."
  • Picture of Darren Bourke
    Tue, Aug 6, 2013, 9:43 AM
    When will versions compatible with 2.4 and 2.5 be released?
  • Picture of Jeff Maxwell
    Tue, Aug 27, 2013, 5:18 AM
    I as well would love to know if this add-on was going to be update for version 2.5 I just came across it and i really want to integrate it into my computer science courses.
  • Picture of Karl Engelbogen
    Tue, Oct 15, 2013, 4:54 AM
    any news on a version 2.5 update?
  • Picture of Helmond Io
    Tue, Mar 25, 2014, 5:00 PM
    May I know there's a release for Moodle2.4+, or a schedule for a new version of the plugin?

  • Picture of Tri LE
    Fri, Apr 4, 2014, 10:03 AM
    Hi Helmond, a new version is under way, and it needs some testing. I hope to finish it at the end of April. Thank you.
  • Picture of Sam Black
    Tue, Apr 8, 2014, 2:00 AM
    I'll gladly help with any testing on 2.6+.
Please login to post comments