A metaphor is a figure of speech that asserts that one element (person, animal, thing, quality, event, etc.) is similar to another element, not literally but figuratively. They are similar to similes except that metaphors do not use words such as "like" or "as" to make the comparison.
The excerpt provided has a metaphor because it figuratively compares Clegg Simmons to "one smart cookie."