Is TGMPA really necessary?
-
As far as I can tell, when this add-on is active, it loads the 75K TGMPA library (
class-tgm-plugin-activation.php
) every time WordPress generates any page — and its only purpose is to inform the admin if bbPress and PMPro are not both activated. That seems like wasteful overhead to me. Or am I missing something?As an experiment, I removed lines 11 through 79 of
pmpro-bbpress.php
(the code that loads, configures, and instantiates TGMPA), and I replaced it with this:if ( defined('PMPRO_VERSION') && class_exists('bbPress') ) :
Plus
endif;
at the end of the file.In other words, the code of this add-on is only executed if both PMPro and bbPress have been loaded. It seems to work fine this way, but please let me know if there is another reason the TGMPA library is used instead.
Thanks!
- The topic ‘Is TGMPA really necessary?’ is closed to new replies.