hi,
somehow this can be done by using this tip:
https://wplms.io/support/knowledge-base/show-course-purchase-status-on-the-course-page/
but not on profile page. it will show on course status page.
and for speed.
Please consider upgrading your php version to atleast 7.2 or 7.0 .
Also install this plugin "query monitor" refer this tip to know which plugin is actually putting load on your server : https://kinsta.com/blog/query-monitor/
we need to have some data exactly which slowing down your website .
Please consider using a caching plugin to reduce the TTFB time.
Also consider asking your webhost to scan your website files for malware and also for external ips as well.
here is the screenshot of the settings of wp rocket :
http://prntscr.com/m05ciq
https://prnt.sc/m05d2y
https://prnt.sc/m05dlz
http://prntscr.com/m05dti
https://prnt.sc/m05egh
https://prnt.sc/m05fco