There is a condition called brusitis that is in the shoulders. It doesn't mean you have it necessarily. I had a problem that mimicked brusitis, but at the time was told I don't actually have it. They called it a popping scapula, but it caused a lot of pain.
Months of streching regularly eased up the pain and the popping considerably.
Good luck. **