List All Installed Plugins

If you want to list all installed plugins (doesn’t matter if active or not), you can use the snippet below:

$all_plugins = get_plugins();

foreach ( array_keys( $all_plugins ) as $key_name ) {
    echo sprintf( "%s ('%s')<br>", $all_plugins[ $key_name ]['Name'], $key_name );
}