The smart plugs that people are referring to are just wifi controlled plug in 110v outlets that you then plug the device you wish to control into, it can be configured to turn on & off on a schedule or multiple schedules etc. Basically a digital timer with wifi control & more configurable options. Most cost around $10 online or at Walmart, lowes, Home Depot etc. There are many brands of them & just as many apps to control them.
They can be a little more reliable than a mechanical timer in the sense that they don’t lose time /schedule when the power goes off or time changes because they’re controlled through an app on your phone. A smart plug however, will not know whether your pump is running or not.
I have many of them to run my appliances/lights on schedules, like my dolphin robot & coffee percolator.
I can use the smartlife app or alexa to turn them off/on on demand or change their schedules.