SQweb-team / Multipass-WordPress-Plugin

Easily install and configure SQweb on your WordPress powered site.
https://wordpress.org/plugins/sqweb/
GNU General Public License v3.0
3 stars 2 forks source link

Diagnostic feature : Check whether installed plugins are active or not. #98

Closed PierreLvx closed 7 years ago

PierreLvx commented 7 years ago

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 query get_option( 'active_plugins' ) once and then scan the resulting array.