Greetings, sorry about the pain.
You have inflammation at knee fascia and underlying structure cracking is a sign you are not using knee property.
Next Steps
ice knee 5 min thrice a day with adequate rest to knee for 3 days. it will improve. for next 2 weeks give rest to knee, avoid any exercise during this period.
Health Tips
if any concerns do let me know.