GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (1881)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

customizer/class-fs-customizer-upsell-control.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 16 and the first side effect is on line 10.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
	/**
3
	 * @package     Freemius
4
	 * @copyright   Copyright (c) 2015, Freemius, Inc.
5
	 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
	 * @since       1.2.2.7
7
	 */
8
9
	if ( ! defined( 'ABSPATH' ) ) {
10
		exit;
11
	}
12
13
	/**
14
	 * Class FS_Customizer_Upsell_Control
15
	 */
16
	class FS_Customizer_Upsell_Control extends WP_Customize_Control {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
17
18
		/**
19
		 * Control type
20
		 *
21
		 * @var string control type
22
		 */
23
		public $type = 'freemius-upsell-control';
24
25
		/**
26
		 * @var Freemius
27
		 */
28
		public $fs = null;
29
30
		/**
31
		 * @param WP_Customize_Manager $manager the customize manager class.
32
		 * @param string               $id      id.
33
		 * @param array                $args    customizer manager parameters.
34
		 */
35
		public function __construct( WP_Customize_Manager $manager, $id, array $args ) {
36
			$manager->register_control_type( 'FS_Customizer_Upsell_Control' );
37
38
			parent::__construct( $manager, $id, $args );
39
		}
40
41
		/**
42
		 * Enqueue resources for the control.
43
		 */
44
		public function enqueue() {
45
			fs_enqueue_local_style( 'fs_customizer', 'customizer.css' );
46
		}
47
48
		/**
49
		 * Json conversion
50
		 */
51
		public function to_json() {
52
			$pricing_cta = esc_html( $this->fs->get_pricing_cta_label() ) . '&nbsp;&nbsp;' . ( is_rtl() ? '&#x2190;' : '&#x27a4;' );
53
54
			parent::to_json();
55
56
			$this->json['button_text'] = $pricing_cta;
57
			$this->json['button_url']  = $this->fs->is_in_trial_promotion() ?
58
				$this->fs->get_trial_url() :
59
				$this->fs->get_upgrade_url();
60
61
			// Load features.
62
			$pricing = $this->fs->get_api_plugin_scope()->get( $this->fs->add_show_pending( "pricing.json" ) );
63
64
			if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65
				// Add support features.
66
				if ( is_array( $pricing->plans ) && 0 < count( $pricing->plans ) ) {
67
					$support_features = array(
68
						'kb'                 => 'Help Center',
69
						'forum'              => 'Support Forum',
70
						'email'              => 'Priority Email Support',
71
						'phone'              => 'Phone Support',
72
						'skype'              => 'Skype Support',
73
						'is_success_manager' => 'Personal Success Manager',
74
					);
75
76
					for ( $i = 0, $len = count( $pricing->plans ); $i < $len; $i ++ ) {
77
						if ( 'free' == $pricing->plans[$i]->name ) {
78
							continue;
79
						}
80
81
						if ( ! isset( $pricing->plans[ $i ]->features ) ||
82
                            ! is_array( $pricing->plans[ $i ]->features ) ) {
83
							$pricing->plans[$i]->features = array();
84
						}
85
86
						foreach ( $support_features as $key => $label ) {
87
							$key = ( 'is_success_manager' !== $key ) ?
88
								"support_{$key}" :
89
								$key;
90
91
							if ( ! empty( $pricing->plans[ $i ]->{$key} ) ) {
92
93
								$support_feature        = new stdClass();
94
								$support_feature->title = $label;
95
96
								$pricing->plans[ $i ]->features[] = $support_feature;
97
							}
98
						}
99
					}
100
				}
101
			}
102
103
			$this->json['plans'] = $pricing->plans;
104
105
			$this->json['strings'] = array(
106
				'plan' => $this->fs->get_text_x_inline( 'Plan', 'as product pricing plan', 'plan' ),
107
			);
108
		}
109
110
		/**
111
		 * Control content
112
		 */
113
		public function content_template() {
114
			?>
115
			<div id="fs_customizer_upsell">
116
				<# if ( data.plans ) { #>
117
					<ul class="fs-customizer-plans">
118
						<# for (i in data.plans) { #>
119
							<# if ( 'free' != data.plans[i].name && (null != data.plans[i].features && 0 < data.plans[i].features.length) ) { #>
120
								<li class="fs-customizer-plan">
121
									<div class="fs-accordion-section-open">
122
										<h2 class="fs-accordion-section-title menu-item">
123
											<span>{{ data.plans[i].title }}</span>
124
											<button type="button" class="button-link item-edit" aria-expanded="true">
125
												<span class="screen-reader-text">Toggle section: {{ data.plans[i].title }} {{ data.strings.plan }}</span>
126
												<span class="toggle-indicator" aria-hidden="true"></span>
127
											</button>
128
										</h2>
129
										<div class="fs-accordion-section-content">
130
											<# if ( data.plans[i].description ) { #>
131
												<h3>{{ data.plans[i].description }}</h3>
132
											<# } #>
133
											<# if ( data.plans[i].features ) { #>
134
												<ul>
135
													<# for ( j in data.plans[i].features ) { #>
136
														<li><div class="fs-feature">
137
																<span class="dashicons dashicons-yes"></span><span><# if ( data.plans[i].features[j].value ) { #>{{ data.plans[i].features[j].value }} <# } #>{{ data.plans[i].features[j].title }}</span>
138
																<# if ( data.plans[i].features[j].description ) { #>
139
																	<span class="dashicons dashicons-editor-help"><span class="fs-feature-desc">{{ data.plans[i].features[j].description }}</span></span>
140
																	<# } #>
141
															</div></li>
142
														<# } #>
143
												</ul>
144
												<# } #>
145
													<# if ( 'free' != data.plans[i].name ) { #>
146
														<a href="{{ data.button_url }}" class="button button-primary" target="_blank">{{{ data.button_text }}}</a>
147
														<# } #>
148
										</div>
149
									</div>
150
								</li>
151
							<# } #>
152
						<# } #>
153
					</ul>
154
				<# } #>
155
			</div>
156
		<?php }
157
	}