ST has always played fast and loose with ranks. Again this is not really a big issue to me. Hardly indicative of bad script writing.
Oh it is. Would you buy that were it a film about the Navy? They make a point about how Starfleet is a military organization, and then they ignore it and make it look like that organization has no protocols whatsoever. That's bad.
It reduces the tiny bit of realism that is left in science fiction/space opera and makes everything extremely cartoonish. Same with the incoherent distances, and many other things.