There is no "wordid" in the core tags page. It is necessary for favorite form creation. In my answer example, queries to get wordid is executed within the tag loop. Therefore, when there are many tags, performance will be very bad.
By the way, probably, you know "example-page" plugin. You can create tags page for registered users in this way. On this page, performance problems do not occur by executing a query that also acquires wordid instead of qa_db_popular_tags_selectspec. This information is not all, but it will be helpful.