I suspect you were looking online at the buoys and that prompted the question about swell height and period. Sites like SurfLine have great data and go a step further. They feed the info in from the offshore buoys into some models to predict how waves will break. Swells are not waves. The big difference is swells are just energy moving through water that do not break. That energy "pools" together over time, usually due to winds or storms offshore and causes those ups and downs. Waves are swells that break due to the height of the swell reaching a certain ratio against the depth of the water it is traveling through. Things on the ocean floor, like ledges, reefs, just approaching the shore or man made things jetties and piers can all cause waves to break. Essentially, as the depth of the water shallows out, the swell becomes unstable, sending the swell crashing forward, thus making a wave. The only time water actually moves is when the wave breaks - throwing it forward - all else, its generally just energy moving through the water. In addition, the shore line can cause waves to break - and are super fun waves to ride (called point breaks, Rincon out here in CA is a famous one).
Wind is another factor. You would think that wind blowing from offshore to onshore (offshore wind), would cause waves to get larger. Not always the case as wind blowing from onshore to offshore (onshore wind), if its going in the right direction, can stand the wave up even higher causing bigger waves. Onshore winds are beautiful for surfing. Constantly changing wind causes conditions that are hard to predict and gives you another variable in which you have to contend.
Agreeing with other posters here that when boat diving you want longer swell periods. But this is precisely the opposite if you are shore diving. Longer swell periods usually means bigger and bigger waves onshore. If you see a 3' swell with a 6 second period, no surfer is super excited. If you see a 3' swell with a 22 second period, suddenly every surfer that can hold a job is calling out sick - waves will be monster. This is of course assuming the swell direction is proper, but if you are shore diving and see a VERY long period with a decent swell size in the right direction, find something else to do unless you can get deep in the water quick and out even faster. If not, you could be staring down overhead breaks and will likely be donating some gear to the deep. It's a dismal science trying to predict how waves will break, but if you surf or shore dive a place long enough, you'll be able to predict whats going on pretty accurately. The easiest way is to make some buddies that know the area and have them take you on as their student.
I'm super lucky as I can both shore dive and surf at places locally. So if its rough - lets surf. If its flat - time to dive.
This is because of swell direction and the bathymetry and structure of the ocean floor. If the swells are not heading the right direction and not working with the bathymetry of the ocean floor, it'll be mushy like you said. Here in SoCal, we are very lucky as we have a lot of different exposures, so if one beach isn't breaking another probably will be. The Wedge might be firing 15 feet waves while a mile down the road at Blackies it is pure glass.