wp/lib/blobfolio/wp/bm/debug.php
protected static function load_wordpress() {
		if (is_array(static::$wordpress)) {
			return true;
		}

		// Have to pull a bunch of data.
		require_once(trailingslashit(ABSPATH) . 'wp-admin/includes/plugin.php');
		$plugins_all = get_plugins();
		$plugins_active = get_option('active_plugins');
		$themes_all = wp_get_themes();
		$theme_active = basename(get_stylesheet_directory());

		static::$wordpress = array(
			'version'=>get_bloginfo('version'),
			'locale'=>get_locale(),
			'plugins'=>array(),
			'theme'=>'',
		);

		// Only include active plugins.
		if (is_array($plugins_active) && count($plugins_active)) {
			foreach ($plugins_all as $k=>$v) {
				if (in_array($k, $plugins_active, true)) {
					static::$wordpress['plugins'][] = "{$v['TextDomain']} [{$v['Version']}]";
				}
			}
			sort(static::$wordpress['plugins']);
		}

		// Only include the active theme.
		foreach ($themes_all as $k=>$v) {
			if ($k === $theme_active) {
				static::$wordpress['theme'] = "{$theme_active} [{$v['Version']}]";
				break;
			}
		}

		return true;
	}
protected static function load_wordpress() {
		if (is_array(static::$wordpress)) {
			return true;
		}

		// Have to pull a bunch of data.
		require_once(trailingslashit(ABSPATH) . 'wp-admin/includes/plugin.php');
		$plugins_all = get_plugins();
		$plugins_active = get_option('active_plugins');
		$themes_all = wp_get_themes();
		$theme_active = basename(get_stylesheet_directory());

		static::$wordpress = array(
			'version'=>get_bloginfo('version'),
			'locale'=>get_locale(),
			'plugins'=>array(),
			'theme'=>'',
		);

		// Only include active plugins.
		if (is_array($plugins_active) && count($plugins_active)) {
			foreach ($plugins_all as $k=>$v) {
				if (in_array($k, $plugins_active, true)) {
					static::$wordpress['plugins'][] = "{$v['TextDomain']} [{$v['Version']}]";
				}
			}
			sort(static::$wordpress['plugins']);
		}

		// Only include the active theme.
		foreach ($themes_all as $k=>$v) {
			if ($k === $theme_active) {
				static::$wordpress['theme'] = "{$theme_active} [{$v['Version']}]";
				break;
			}
		}

		return true;
	}
WordPress Details

Gather a list of installed plugins and themes.

@return bool True.