Here are some things one should do before upgrading their system:
A - if you've installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac uninstall then according to the developer's instructions.
B - You can check to see if you've removed all of the supporting files by downloading and running the shareware app Find Any File to search for any files with the application's or the developer's name in the file name. For XXXX software you'd do the following search(es):
1 - Name contains XXXX
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.
If you get warnings that the file can't be deleted because it is in use or used by another app boot into Safe Mode according to How to use safe mode on your Mac and delete from there.
Note: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will assure a successful boot into Safe Mode.