the clicking sound comes from the gas in the joint gets released,..what you need to do is a little at home therapy, sit on a chair and hold your legs straight out, now on the one that hurts, with your big toe write the alphabet in the air in cursive, then with your toe still pointed make 10 small circles clock wise then counter clock wise,..do that a few times a day and the pain will go away,. let me know how it goes or if you have a question please comment..
There's a good chance you've got a Mistranslating Scarpial. This is where ligament (like piano wire) is catching on a frayed joint or bone spur. This WILL get worse and could even wear thru the ligament and SNAP like rubberband - only way worse.