The ferts were stored in large plastic zip-loc bags in the dark. Would the plastic bags do any harm to the chemicals?
I can't say if your ferts are good or not. I doubt that anyone can say for sure.
But at least you should look at the packages. Are they intact with out any evidence of damage or reactivity? Is the product still physically OK or is it a solid block? Smell the KNO3 do you detect any ammonia? When you dissolve the ferts in water are the solutions clear or do you see some precipitate?
Despite what anyone says, even inorganic salts do not last forever or even hundreds of years. They can react in lots of ways that make them ineffective or possibly bad for your fish and plants. This is especially true if you are using less pure chemicals with lots of unknown impurities.
This is my suggestion. You can buy 1lb. of K2SO4, KH2PO4 and KNO3 for $10. That seems like a pretty low price to pay for peace of mind especially if you are planning to spend big buck on fish.
Then take the 2 year old chemicals and sell them 50% off to anyone who thinks they are still good and let them use them.