Jose, you cannot compare WordPress to Moodle in terms of performance for WordPress comes with 12 database tables in all, whilst moodle comes with 450+, where WordPress is widely used CMS so hosting providers optimize their servers to accommodate WordPress's performance in priority (WSCache, LSCache etc)
if your clean moodle installation is faster compared to your questionable moodle, then it must be the theme or some plug-in making your moodle slower, you can check which one is slowing down your moodle, by installing all plug-ins that you've got originally installed one at a time and see which one is degrading your performance.