Wi-Fi problems can be somewhat difficult to diagnose because there are many things that can influence the performance, but there are some tools available:
system preferences > Network > Wi-Fi > ( assist me ) > ( Diagnostics )
this will check once for gross problems. But it tends to find none when your Wi-Fi is working, and not run at all when your Wi-Fi has dropped out.
--------
Hold down the Option key while you click on the Wi-Fi Icon on the MenuBar. This displays a number of important parameters about Wi-Fi performance. it will look a little like this:
what values are you showing for PHY Mode and channel?
What RSSI or signal strength?
what transmit rate?
and very important, how many other networks do you see listed?
--------
Note also that there is an entry for Wireless Diagnostics at the end of this menu. This can be invoked for a more comprehensive look at your Wi-Fi setup. Obvious problems will be pointed out, but when completed, you can also choose to leave the window open to monitor your connection.
If you do this and go about your business, Any unusual events will cause an alert message to appear.
.