The code is the only thing to look at.
Everything used by the plugins is defined in Discourse core… or by Rails, or by Ruby itself. It’s open source all the way down, so if you don’t know what add_to_serializer does, search the Discourse codebase for def add_to_serializer, and the learnings shall continue.