$plugin_data ) {
if ( strpos( $plugin_data['Name'], 'DevDiggers' ) !== false ||
strpos( $plugin_data['Name'], 'DD' ) !== false ||
strpos( $plugin_data['Author'], 'DevDiggers' ) !== false ) {
if ( in_array( $plugin_file, $active_plugins, true ) ) {
$active_devdiggers_plugins[ $plugin_file ] = $plugin_data;
} else {
$inactive_devdiggers_plugins[ $plugin_file ] = $plugin_data;
}
}
}
$total_active = count( $active_devdiggers_plugins );
$total_inactive = count( $inactive_devdiggers_plugins );
$total_installed = $total_active + $total_inactive;
$current_user = wp_get_current_user();
$is_subscribed = get_option( 'ddfw_newsletter_subscribed' );
$stats = [
[
'label' => esc_html__( 'Installed Plugins', 'affiliates-for-woocommerce' ),
'value' => $total_installed,
'icon' => '',
],
[
'label' => esc_html__( 'Active Plugins', 'affiliates-for-woocommerce' ),
'value' => $total_active,
'icon' => '',
],
[
'label' => esc_html__( 'Inactive Plugins', 'affiliates-for-woocommerce' ),
'value' => $total_inactive,
'icon' => '',
],
[
'label' => esc_html__( 'Activation Rate', 'affiliates-for-woocommerce' ),
'value' => ( $total_installed > 0 ? round( ( $total_active / $total_installed ) * 100 ) : 0 ) . '%',
'icon' => '',
],
];
$system_info = [
esc_html__( 'WordPress', 'affiliates-for-woocommerce' ) => get_bloginfo( 'version' ),
esc_html__( 'WooCommerce', 'affiliates-for-woocommerce' ) => defined( 'WC_VERSION' ) ? WC_VERSION : esc_html__( 'Not active', 'affiliates-for-woocommerce' ),
esc_html__( 'PHP', 'affiliates-for-woocommerce' ) => PHP_VERSION,
esc_html__( 'Memory Limit', 'affiliates-for-woocommerce' ) => ini_get( 'memory_limit' ),
esc_html__( 'Max Execution Time', 'affiliates-for-woocommerce' ) => ini_get( 'max_execution_time' ) . 's',
];
$resources = [
[
'title' => esc_html__( 'Documentation', 'affiliates-for-woocommerce' ),
'text' => esc_html__( 'Guides and tutorials for every plugin', 'affiliates-for-woocommerce' ),
'url' => 'https://docs.devdiggers.com/',
'icon' => '',
],
[
'title' => esc_html__( 'Support', 'affiliates-for-woocommerce' ),
'text' => esc_html__( 'Get help from our support team', 'affiliates-for-woocommerce' ),
'url' => 'https://devdiggers.com/contact/',
'icon' => '',
],
[
'title' => esc_html__( 'Custom Development', 'affiliates-for-woocommerce' ),
'text' => esc_html__( 'Need extra features? Hire us', 'affiliates-for-woocommerce' ),
'url' => 'https://devdiggers.com/contact/',
'icon' => '',
],
];
$svg_open = '