I ride BART when I visit San Francisco and would NEVER think about entering the restrooms! There are enough "characters" hanging out at the Powell Street station that I tend to keep myself in public, populated areas. Are my impressions correct?
The Market Street restrooms have been closed for years. But in general your observations are correct-BART restrooms are really nasty. See also BART elevators.