Overview Statistics

Reports ::: report_overviewstats
Maintained by DualCube Team
The Overview Statistics plugin for Moodle is a powerful tool that provides administrators with a variety of site and course report charts. It’s designed to make adding more reports easy, and it’s coded with the latest techniques.
Latest release:
4865 sites
1k downloads
120 fans
Current versions available: 3

This Moodle add-on produces various site and course report charts. The code has been designed in a way that makes adding more reports easy.

For producing the graphs, Charts API module is used. The code is using modern Moodle development techniques and patterns, such as using LESS for producing CSS files and Shifter to compose the Javascript modules.

Available site level reports

Users logging in - per day chart displays the number of unique registered users (not visits) who accessed the site per day during the last month.

User countries chart displays the countries the users are coming from, based on their user profile field.

User preferred languages chart displays the UI languages the users have selected as preferred ones in their profiles.

Number of courses per category reports the number of courses in each course category, both recursively (including subcategories) and own courses only.

Number of courses per size displays the distribution graph of number of activities per course. That is, how many courses are there with 0-4 activities, 5-9 activities, 10-14 activities etc.

Available course level reports

Enrolled users chart displays the progress of user enrolments into the course based on estimated historical figures.

Author

This add-on is currently maintained by DualCube. It was written by David Mudrák david@moodle.com, @mudrd8mz.

Installation

  1. Extract the folder 'overviewstats' into your {Moodle root directory}/report/ folder
  2. Visit the main administration page (so called Notifications)
  3. Follow the installation wizard

Screenshots

Screenshot #0
Screenshot #1

Contributors

DualCube Team (Lead maintainer)
David Mudrák: Original author
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Oleksandr Szpinkowski
    Sun, 16 June 2019, 3:52 AM
    Tell me, please. In which administration menu item you can see the work of this plugin?
  • Ricardo Caiado
    Fri, 7 Feb 2020, 7:16 PM
    Hi,

    Is it expected to have to wait too long for the graphics to be generated?

    Ricardo
  • Asher Baig
    Thu, 26 Mar 2020, 1:08 AM
    Any tutorial to use it. As after installation what should do next?
  • Mahmood Naderan
    Sat, 4 Apr 2020, 4:24 AM
    Hi and thank you for this useful plugin.
    I don't know what happened that today when I open the overview statistic page, I just see a blank page. the path truly goes to /report/overviewstats/index.php

    Any guess for debugging? I don't see any entry in /var/log/apache2/error.log
  • David Mudrák
    Tue, 28 Apr 2020, 4:49 PM

    Empty page is a typical symptom of a fatal PHP error (such as all the memory exhausted) while displaying the error messages is disabled. Check your PHP and Moodle settings on displaying the error messages.

  • Mahmood Naderan
    Sun, 21 June 2020, 4:28 AM
    Thanks for this useful plugin. I would like to know if it is possible to change the period? By default is shows for 1 month. I would like to change that to 3 months. How can I do that in the source code?
  • David Mudrák
    Mon, 22 June 2020, 2:39 PM

    Hello Mahmood. I am happy you found the plugin useful. At the moment, the time period of 30 days is hard-coded in a few places in the code. You may try to experiment with extending that period by changing the value in the prepare_data() method of the chart subclasses.

  • Mahmood Naderan
    Mon, 13 July 2020, 4:34 AM
    Hi David, I get this error
    Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/report/overviewstats/classes/chart_logins.php on line 99
    That line is
    foreach (array_reverse($lastmonth, true) as $timestamp => $loggedin) {
    Where is that 30 seconds hard coded?
  • David Mudrák
    Mon, 13 July 2020, 3:47 PM

    It is part of your web server configuration - https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time

    I am thinking thought why is it taking so long, it shouldn't really. Have you performed some other modifications?

  • Mahmood Naderan
    Mon, 13 July 2020, 5:00 PM
    Thank you. I changed that to 50 seconds and now I can see the chart. I haven't modified the plugin yet. Our site have about 9500 users witch 3500 daily logins according to the plugin. Don't know if it is a big site or no...
  • Ricardo Caiado
    Tue, 18 Aug 2020, 4:41 AM
    Is it compatible with 3.9+ version of Moodle?
  • David Mudrák
    Thu, 20 Aug 2020, 6:02 PM

    I haven't tested myself. Generally it should just work and the Stats tab shows there are few hundreds 3.9 sites having this installed. I believe it works same well in 3.9.

  • Петър Петров
    Sun, 13 Sept 2020, 4:14 PM
    Hi! Unfortunately, I cannot install the plugin on a fresh installation of Moodle 3.9. I had a test version of 3.8 and installed it there with no issue.
  • David Mudrák
    Mon, 14 Sept 2020, 1:55 PM

    Thank you Петър fo raising this. I just tried myself and I had no problems with installing the report into a 3.9 site. Maybe you could provide more detailed description of the problem you experienced - please feel encouraged to use the plugin's bug tracker to do so.

  • Oscar Nogueiras
    Sun, 31 Jan 2021, 7:08 PM
    Hi!

    Getting HTTP ERROR 500 since upgrade to Moodle 3.10.
    Just updated to Moodle 3.10.1+ but it did not solve the problem.
    Uninstalled plugin and installed it again, but no luck.
    Any suggestions?
Please login to post comments