From reading the entire thread, it sounds to me like an interference problem. Are there a lot of Wi-Fi networks near you? You can check by going to Settings/Wi-Fi, waiting about 30 seconds, then seeing how many are listed.
Do you know if you are connected to the 2.4 or to the 5 GHz band from the router? 2.4 only has 11 channels; 5 GHz has many more (over 100). You can try switching bands. If your router uses the same SSID for both, go into its settings and change the name of one of them, so you can tell them apart. For example, if the single SSID is "MyWiFi" change just the 5 GHz to "MyWiFi5". Then connect to each individually, to see if there is a difference in performance. Unless you change it they will both have the same password. Note that 5 GHz has much greater bandwidth (over 100 Mbps) than 2.4 GHz (20 Mbps), but less range.
Another option is to change bands. As the problem is intermittent this might be why. Normally when you turn on the router it finds the band with the least interference. But it never changes that. Many routers have an option to re-scan bands and choose the currently best band. If your router has that option try it. If not you can manually change bands.
If you want to go into deeper diagnostics, the Mac app WiFi Explorer ($15) will tell you all about all of the networks in range.