Passed
Push — master ( 1c2532...62e7b2 )
by Chris
04:52 queued 01:41
created

MonsterInsights_Lite_Report_Realtime   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A get_report_html() 0 2 1
1
<?php
2
// Exit if accessed directly
3
if ( ! defined( 'ABSPATH' ) ) {
4
	exit;
5
}
6
7
final class MonsterInsights_Lite_Report_Realtime extends MonsterInsights_Report {
8
9
	public $title;
10
	public $class   = 'MonsterInsights_Lite_Report_Realtime';
11
	public $name    = 'queries';
12
	public $version = '1.0.0';
13
	public $level   = 'plus';
14
15
	/**
16
	 * Primary class constructor.
17
	 *
18
	 * @access public
19
	 * @since 6.0.0
20
	 */
21
	public function __construct() {
22
		$this->title = __( 'Real Time', 'google-analytics-for-wordpress' );
23
		parent::__construct();
24
	}
25
26
	protected function get_report_html( $data = array() ){
27
		return $this->get_upsell_notice();
28
	}
29
}
30