Knee pain could also result from your cleat positioning on your shoes. I used to have a lot of pain/stiffness in my right knee... adjusted the cleat and goodbye pain.
Before the adjustment it would hurt before and after riding, but while riding the pain miraculously vanished after the first few miles. Now I am pain free all day. (I feel like a commercial, sorry)