First and foremost you've installed some totally unnecessary and known to cause problems software on your iMac: Avast. There is no reason to ever run any "cleaning", "optimizing", "speed-up" or anti-virus apps on your Mac. This user tip describes what you need to know and do to protect your Mac: Effective defenses against malware and other threats - Apple Community. Uninstall it according to the developer's instructions.
You can check to see if you've removed all of the files by downloading and running Find Any File to search for any files with the application's name and the developer's name in the file name. For example for Avast software you'd do the following search:
1 - Name contains avast
Any files that are found can be dragged from the search results window to the Desktop or Trash bin in the Dock for deletion.
FAF can search areas that Spotlight can't like invisible folders, system folders and packages.
You should also uninstall Flash. It's not used any more in website, HTML5 is not the standard, so remove it and its System preference pane if installed. Adobe will be dropping it at the end of this year.
For 16 GB of RAM you have way too much swap
Available RAM: 4.71 GB
Swap Used: 1.56 GB
You should limit the number of apps in your System/Users & Groups/Login Items page to on those that absolutely must be loaded at boot. Launch the others when needed and close when done. And reboot frequently, 2-3 times per week if you're one to just sleep your iMac.