Imperfectly has 2 different meanings across 1 category:
Adverb
in an imperfect or faulty way
"The lobe was imperfectly developed"
"Miss Bennet would not play at all amiss if she practiced more"
In an imperfect manner or degree; not fully or completely.