Replacing Jandy SHPF2.0 Pump with VS-FHP2.0?

My 6 year old jandy stealth is squealing and running very hot.  I think it’s time to replace, but want to know if this variable speed pump is OK as a replacement, and whether there are any modifcications to plumbing or electrical connections needed, other considerations, or is it a straightforward swapout?