Yes there is figurative language in this quote specifically metaphors.
The poem was so bad the person wrote a metaphor to explain how bad it is
It affects Frederick Douglas, to encourage him to become knowledgeable. Also, gives him a new perspective of life being isolated in the world that he wasn't meant to be exposed to.
Foreshadowing that hints at what's coming next.