Second year student here. I can recommended a couple of
I commute from Alameda island which is 3.5 miles away from campus; it's a 12-15 minute drive on average. It's definitely safer than Oakland, and it's much easier to find street parking. One apartment community to stay away from in Alameda is Summer House. It's a pretty large complex, but 5/5 students who lived there were pretty happy to get out of the place after their leases were up.
If you want to stay in Oakland, my classmates who live around Lake Merritt find it pretty safe and the proximity to campus convenient, but street parking can be a pain, so make sure you would get a designated parking spot.
Places to stay away from: definitely East Oakland. Even though the rent might be half the cost, it really is an unsafe area and not worth the risk.