In this situation, credited means "to pay respect to". Knowing this, the sentence "Lily's parents credited her for her efforts at finding a summer job" can be changed to "Lily's parents [paid respect to] her for her efforts at finding a summer job" and the sentence still makes sense.
What other sentence can you replace the word credited with the phrase "paid respect to" and it will still make sense?