It needs to glorify Jesus is EVERY way. Not just "some" way.
Music can most definitely and assuredly impact your walk. Some styles are inherently bad, having been birthed from un-Christlike ideals.
It is up to each of us to determine how the music and lyrics interacts with us. It is good to look at several different views and see if any resonate with you.
I personally was introduced to Christian Metal at the age of 11, and it was a gateway into secular metal, which led to a couple years of confusion and depression. Then I came back to "Christian Metal only" after a youth service and a suicide attempt. And though the lyrics were Christian the music did batter me emotionally, something I realize more in retrospect. But I enjoyed it and tried to put all kinds of Christian labels on how I felt (counterfeit worship, counterfeit repentance).
So is this an attack on metal? Eh, hardly. I definitely don't listen to it anymore. I've never been more blessed than when I gave it all up though. Some of the songs I listen to have a bit of a rock beat to it, but I believe the artists did manage to redeem the rock beat in those cases.
This is a good test to put your music through:
Does it humble you, or lift up your pride?
Are the artists performing or leading worship?
The fear of the LORD is to hate evil: pride, and arrogancy, and the evil way, and the froward mouth, do I hate. Proverbs 8:13
Much of today's CCM is pure pride. You can tell by the way they decorate themselves, in the way they interact with the crowd, as well as the boastful lyrics and amplified booming.
Does it invite you to worship God, or does it itself push your emotions high?
22 But the fruit of the Spirit is love, joy, peace, longsuffering, kindness, goodness, faithfulness, 23 gentleness, self-control. (Galatians 22-23)
Much music is designed to push you into jumping or all sorts of crazyness. That's wrong, especially during worship which is what we are talking about.
Is it beautiful and lovely, or is it grungy?
Finally, brethren, whatever things are true, whatever things are noble, whatever things are just, whatever things are pure, whatever things are lovely, whatever things are of good report, if there is any virtue and if there is anything praiseworthy—meditate on these things. Phil 4:8
Is it just like the world's music?
And you shall make from these a holy anointing oil, an ointment compounded according to the art of the perfumer. It shall be a holy anointing oil. Exodus 30:25
You might think this scripture is a stretch, but the lyrics of today's CCM could acknowledge any God and not just ours. I'm not against all songs that are simple in theology but I wouldn't trust a singer who only sings those type of songs. When God had people make His tabernacle the scent and the design was not to be replicated elsewhere. God likes things to be holy to Him. Not just thrown about carelessly and understood as easily by the world as by Christians.
If you were worldly could you dance inappropriately to it? (headbang, grind?)
That's just good sense. Having not been a Christian my entire life, I was shocked when certain Christian artists got my body doing what it used to in sin.
Anyways. There are more questions, but its really something you can't just be legalistic about. Your decisions need to come from the spirit leading you and teaching you. I just hope I gave you some good information. Music is incredibly important as it has a profound effect on us. We just have to make sure the effect is always producing Christlike desires, ideals, and feelings.
Edited for clarification.
Oh yeah, and remember, what isn't of faith is sin! Thats very important on this subject. You need to be able to back up your decision with a fully convinced mind (opened a tad for the Holy Spirit and Christian counsel).