Currently, our diagnostic feature lists all installed plugins using get_plugins(). This function doesn't discriminate between enabled and disabled plugins (codex).
However, because isolating conflicts involves disabling plugins, this information is useful to us.
Proposed implementation:
Rather than looping over the list of installed plugins, and invoking is_plugin_active() (codex) each time, a more efficient way would be to query get_option( 'active_plugins' ) once and then scan the resulting array.
Rationale:
Currently, our diagnostic feature lists all installed plugins using
get_plugins()
. This function doesn't discriminate between enabled and disabled plugins (codex).However, because isolating conflicts involves disabling plugins, this information is useful to us.
Proposed implementation:
Rather than looping over the list of installed plugins, and invoking
is_plugin_active()
(codex) each time, a more efficient way would be to queryget_option( 'active_plugins' )
once and then scan the resulting array.