Moodle plugins directory: Overview Statistics | Moodle.org
Overview Statistics
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
- Extract the folder 'overviewstats' into your {Moodle root directory}/report/ folder
- Visit the main administration page (so called Notifications)
- Follow the installation wizard
Is it expected to have to wait too long for the graphics to be generated?
Ricardo
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
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.
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.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?
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?
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.
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.
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?