Even if you only visit San Francisco for a day, you must find something wonderful to eat. My first recommendation is House of Nanking, pictured here at night by a poor photographer, a tiny place where you don’t bother ordering for yourself unless you’ve been a few times already. The waitress/owner/hostess sits reading a Chinese newspaper until a new customer arrives. You can seat yourself and ask for her recommendation. She will act slightly annoyed, but then bring you the most delicious and authentic Chinese food. The memory makes my mouth water, nothing else can compare! 
If Chinese isn’t for you, try clam chowder served in a sourdough bread bowl, preferably somewhere near Fisherman’s Wharf. I enjoyed a shrimp po’boy and chowder at Nonna Rose’s, though vendors all along Fisherman’s Wharf will serve you chowder or steamed crap to-go for a reasonable price. 
To work off that rich food you can take a walk at the Wharf, and visit the Musee Mecanique or Ripley’s Believe it of Not! Museum. Take care though, the World Famous Bushman could be lurking nearby!