City ranks 25th in magazine analysis