My Grades block

Blocks ::: block_my_grades
Maintained by Karen Holland
The my_grades block provides a display of all enrolled courses, overall grades and links to grade reports from the My Home page.
Latest release:
304 sites
13 fans
Current versions available: 2

My Grades Block for Moodle

Provides display of all enrolled course overall grades and links to grade reports from the My Home page.

To install, place all files in /blocks/my_grades and visit /admin/index.php in your browser.

This block has been tested on the following versions of Moodle: 2.3, 2.4, 2.5, 2.6, 2.7 and 2.8.

This block was written by Karen Holland <>, Mei Jin and Jiajia Chen.
It is copyright Karen Holland, Mei Jin and Jiajia Chen and contributors.

The My Grades block is designed to display the exact same basic result as calculated by the Moodle gradebook as the student will see in their own user and overview reports.

Therefore, if the Grade item setting is set to "Real", which it is as default, and the student's real grade for the course is 35/40 for instance, the My Grades block will show 35. The student's user report will show 35, and will also show 87.50% in the percentage column as the dedicated user report is working with a wider range of data.

However, if the Grade item setting is changed to "Real (Percentage)", the My Grades block will use this new format for displaying the grade value and so forth:

Released Under the GNU General Public Licence


Screenshot #0


Karen Holland (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Wed, May 22, 2013, 7:08 AM
    Karen - If you want to follow the naming convention for Moodle Plugins on the repository name would be moodle-block_my_grades. I would recommend changing the name to conform with the naming convention. Also, I have created a tracker in the Moodle Tracker for this plugin which can be found at When I installed the plugin in Moodle 2.5 (and you should see the same warning in 2.4) I received the notice: he block my_grades does not define the standard capability block/my_grades:addinstance. Let's go ahead and define addinstance - see for more information on how to do that. Also, feel free to create a page in Moodle Docs if you would like. contains some information about how to ideally set that page up. For now I'm going to mark this as needing a little more work before we approve it. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony
  • Sun, Jun 2, 2013, 12:28 AM
    Hi Anthony
    Many thanks for your kind and constructive feedback.
    As suggested, I've renamed the respository name to the recommended format at
    I've also added the recommended db/access.php file to the respository and updated the Moodle plugins downloadable zip at Sorry for missing that one!
    I'll hope to complete documentation in Moodle Docs as suggested as I appreciate plugins are judged on their documentation quality among other things.
    I have one or two enhancements I'd like to add to the plugin in due course, I just wanted to get the basic version completed and submitted first to get exposure to the process. I presume that adding a new version along with its release notes would be required and would the new version then need a fresh review and approval? Would I need to add a new issue under the tracker for the modification?
  • Anthony Borrow
    Fri, Jul 12, 2013, 12:45 PM
    Karen - Many thanks for all your work. I am going to install the block and give it a quick test before approving it but it looks like you have responded to the concerns. Once approved, new versions do not go through the same review process. Once a plugin is approved the new versions will be available to users right away with no delay. The review of the initial plugin gives a chance to make sure that folks are following a consistent process. Your responses have been exemplary - I just wish I had been able to respond in a more timely manner. Peace - Anthony
  • Anthony Borrow
    Fri, Jul 12, 2013, 12:59 PM
    Karen - In reviewing the code, I noticed in the block_my_grades.php file that the lines ended with a ^M - could you make sure to remove those in all of the files and upload a new version. Peace - Anthony
  • Mon, Jul 15, 2013, 12:50 AM
    Hi Anthony - sorry about those ^M characters, I've made a note to check for them in future, and both the Github and Moodle plugin versions have been updated accordingly. Many thanks again for your assistance and reviews, Karen
  • Tue, Aug 13, 2013, 7:57 PM
    Karen thanks so much for your block. i just love it.
    i just would like to increase the font size of the grade but i am not able to do it. can you help me?
    p.s. i am using moodle 2.5 and it works great!
  • Ying Yang
    Wed, Aug 14, 2013, 1:18 PM
    Hi Karen,
    Could you please update the GitHub repo so the code is not in a subfolder?
    The docs for installing from a repo show you should just be able to clone it into final location, but by having a subfolder this can not be done.
    e.g. Following will not work due to subfolder:
    moodle/blocks/ # git clone my_grades

  • Wed, Aug 21, 2013, 5:55 AM
    Hi Paula, many thanks for your feedback on the usability of the block which is always welcome! I'm planning to do some changes soon so will hopefully look after this as well, regards Karen
  • Wed, Aug 21, 2013, 5:56 AM
    Hi James, many thanks for your feedback on the appropriate directory levels for the block code, I've now updated the github and Plugins directory versions. Regards Karen
  • Wed, Sep 4, 2013, 9:24 PM
    Hi Karen,

    Is there anyway to set this so that only the grade from a final quiz within a course is given and not the overall?

    Thanks in advance
  • Fri, Jan 31, 2014, 7:28 AM
    In case anyone else was as forgetful as me, to make it show you have to add 'My Grades' as a block. Do't do it in your own mymoodle. go here Access Settings > Site administration > Appearance > Default My home page. then turn editing on and then in left column add a block and choose my grades. It will ONLY show for you still. For everyone to see it, click the sprocket settings and inside choose to show this page on 'Any page matching the above'. Hopefully this helps someone as forgetful as me.
  • Mon, Apr 7, 2014, 5:06 AM
    Has anyone tested this block in Moodle 2.6+ ?
  • Tue, Feb 10, 2015, 9:30 PM
    I have noticed that in 2.8 if a course is set to Natural grading, the block does not report grades correctly. It will ignore the empty grades setting and calculate the percentage from total points possible for the course instead of total points attempted, giving students heart attacks as they see that they have only 21% or 15%!!!
  • Fri, Aug 7, 2015, 6:58 PM
    I finally came back to this block after your help earlier in the year. I am now on 2.9.1. Still seeing the same behavior with Natural Grading. Wasn't sure if you were ever able to replicate?
  • Wed, Oct 7, 2015, 12:38 AM
    We are also experiencing the issue on 2.9.1. The issue only exists with naturally-weighted grade reporting. If the grade book is set up to exclude hidden grades, Moodle computes an accurate current student score in the User Report, but the My Grades block reports a score that includes hidden grades.
1 2
Please login to post comments