As discussed a while ago, the ArticlePlaceholder extension is ready for a security review now.
https://www.mediawiki.org/wiki/Extension:ArticlePlaceholder
The main part of the extension, the display of the Wikidata entity, is written in Lua and therefore shouldn't be a big problem security wise.
The searchHook is used to add results of the ArticlePlaceholder to the search.
The whole code was reviewed by the Wikidata team (mainly by @hoo) before.