If you treat police officers with the respect they deserve, you may get off with a warning on minor offenses. If you cuss them out, that’s a red flag to them and they are going to cross every t and dot every i before letting you go. That doesn’t make them petty. They have to be thorough when you give them a reason to be.... any sort of enforcement on any number of minor infractions = petty retaliation due to a butt-hurt ego.
With the above stated, I have never been disrespectful to any LEO and I've always been treated fairly or given a break.
Treating someone with respect who deserves it is easy. Treating someone well who doesn’t deserve respect will help you avoid conflict.
“A fool’s lips bring him strife, and his mouth invites a beating. A fool’s mouth is his undoing, and his lips are a snare to his soul.” -Proverbs 18:6-7 of the Bible.