I'm in the middle of revamping a legacy WP-site which has a lot of custom shortcodes and apparently due to how the code is currently organized, these shortcodes are taking a toll in terms of performance.
Sure, I can fix the poorly optimized code and live with the dozen shortcodes and call it a day, but I'm wondering how can I organize them better.
According to WordPress' documentation, it's recommended to place them in a plugin and initialize them on
init. Can we reduce the load in this hook by "namespacing" them, like this?
[com.company shortcode attr="attr" prop="prop"]
Has anyone experimented with such solutions? Any drawbacks (except the overhead because of the namespace)?