OK, thanks for the detailed reply. Your iMac can run High Sierra, OS 10.12.6. However, be aware that High Sierra uses more resources than Sierra. I upgraded from Sierra to High Sierra on both of my Macs back last December via a clean, fresh installation of OS 10.13.2, and have upgraded to each subsequent High Sierra update. (My 2 macs are 1) a late 2012 Mac Mini with 8 gig of Ram and a 256 gig SSD, and 2) a mid 2017 13" MacBook Air with 8 gig of Ram and a 252 gig SSD). I have no issues with High Sierra, although I do keep my Macs "lean, mean, and clean".
Also, OS 10.14, Mojave, will be released in the fall. So, you might consider waiting for OS 10.14.
Now, as far as disk cleanup/maintenance/repairs, although Malwarebytes is a good product, it really does not do much disk cleanup. It would be best if you get into the habit of doing disk cleanup/maintenance/repairs on a frequent basis. You can actually do a good amount of disk cleanup on your own. One place to look is your downloads folder.
Here are some excellent free products you can use to these tasks:
Onyx - Available from here:
https://www.titanium-software.fr/en/onyx.html
Rock Solid, has been around a long, long time, and has had many positive reviews. I use it religiously (along with a commercial program entitled Tech Tool Pro). I would not be without either of them. In fact, I will not upgrade to a new Mac OS until there are compatible versions of both of them for the new OS (along with 4 other critical programs that I have). Note that there are different versions of Onyx available, for each different Mac OS. You would need to get the correct version for the Mac OS you are using.
AppCleaner - Available from here:
https://freemacsoft.net/appcleaner/
Another stellar performer! As you can see via that link, it will get rid of most stuff associated with an application that you wish to delete.
GrandPerspective - Available from here:
http://grandperspectiv.sourceforge.net/
Nifty graphical way to see which files are on your drive. Good way to identify large ones that you might not need.
Malwarebytes - Available from here:
https://www.malwarebytes.com/mac/
Good to use if you see adware and/or suspect you might have a virus. It also is good to run it every so often, even if nothing is wrong.
ClamXAv - Available from here:
https://www.clamxav.com/
More extensive than Malwarebytes in terms of finding viruses. You can use it in demo mode, and it still has just about full functionality.
Then of course you can use Disk Utility to check out your drive and/or do repairs. It's not as extensive as Tech Tool Pro (
https://www.micromat.com/products/techtool-pro), Disk Warrior (
https://www.alsoft.com/diskwarrior/?gclid=EAIaIQobChMI9qzeqcSF2gIViWp-Ch0NngwsEAAYASAAEgJg7_D_BwE), or Drive Genius (
https://www.prosofteng.com/drive-genius-mac-protection-software/), but it gets the job "mostly" done. I use Tech Tool Pro, and in fact it is the only third party one so far that is fully compatible with High Sierra (that's the OS I use on both of my Macs)
However, you need to run Disk Utility in "isolated" mode. For that, you would boot your Mac into the (Hidden) Recovery HD partition. This link explains how to do that, and what is on that partition:
https://support.apple.com/en-gb/ht201314
If you do decide to "upgrade", it would be best if you do a clean, fresh installation of whatever Mac OS you want to get to. It is good that you are backing up, and Time Machine is "OK" in terms to doing the clean, fresh installation of the new Mac OS, and then "migrate"/copy needed "stuff from your backup. But it will take some effort (along with care). I myself use SuperDuper! for my backups, and it make a a
bootable backup/clone of my system. That means I can boot my Mac from that backup, and it makes such an installation of a new Mac OS (or even a current one), and also Recovery, much easier to manage/handle.