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.

gutenberg/src/block/index.js (9 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
/**
2
 * BLOCK: fooplugins/foogallery
3
 *
4
 * Registering a basic FooGallery block with Gutenberg.
5
 */
6
7
import './style.scss';
0 ignored issues
show
'import' is only available in ES6 (use 'esversion: 6').

Generally using ECMAScript 6 specific syntax is fine if you are sure that it is already supported by all engines which are supposed to run this code.

Further Reading:

Loading history...
8
import './editor.scss';
0 ignored issues
show
'import' is only available in ES6 (use 'esversion: 6').

Generally using ECMAScript 6 specific syntax is fine if you are sure that it is already supported by all engines which are supposed to run this code.

Further Reading:

Loading history...
9
import FooGalleryEdit from './edit';
0 ignored issues
show
'import' is only available in ES6 (use 'esversion: 6').

Generally using ECMAScript 6 specific syntax is fine if you are sure that it is already supported by all engines which are supposed to run this code.

Further Reading:

Loading history...
10
11
const { __ } = wp.i18n; // Import __() from wp.i18n
0 ignored issues
show
Backwards Compatibility introduced by
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
Backwards Compatibility introduced by
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
12
const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks
0 ignored issues
show
Backwards Compatibility introduced by
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
Backwards Compatibility introduced by
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
13
14
/**
15
 * Register: aa Gutenberg Block.
16
 *
17
 * Registers a new block provided a unique name and an object defining its
18
 * behavior. Once registered, the block is made editor as an option to any
19
 * editor interface where blocks are implemented.
20
 *
21
 * @link https://wordpress.org/gutenberg/handbook/block-api/
22
 * @param  {string}   name     Block name.
23
 * @param  {Object}   settings Block settings.
24
 * @return {?WPBlock}          The block, if it has been successfully
25
 *                             registered; otherwise `undefined`.
26
 */
27
registerBlockType( 'fooplugins/foogallery', {
28
	// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
29
	title: __( 'FooGallery' ), // Block title.
30
	description: __( 'Insert a FooGallery into your content' ),
31
	icon: 'format-gallery', // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
32
	category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
33
	keywords: [
34
		__( 'foogallery' ),
35
		__( 'gallery' ),
36
	],
37
	supports: {
38
		multiple: true,
39
		html: false
40
	},
41
	attributes: {
42
		id: {
43
			type: 'number',
44
			default: 0
45
		}
46
	},
47
	/**
48
	 * The edit function describes the structure of your block in the context of the editor.
49
	 * This represents what the editor will render when the block is used.
50
	 *
51
	 * The "edit" property must be a valid function.
52
	 *
53
	 * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
54
	 */
55
	edit(props) {
56
		return (<FooGalleryEdit {...props}/>)
0 ignored issues
show
Unclosed regular expression.
Loading history...
Unrecoverable syntax error. (76% scanned).
Loading history...
57
	},
58
59
60
	/**
61
	 * The save function defines the way in which the different attributes should be combined
62
	 * into the final markup, which is then serialized by Gutenberg into post_content.
63
	 *
64
	 * The "save" property must be specified and must be a valid function.
65
	 *
66
	 * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
67
	 */
68
	save() {
69
		// Rendering in PHP
70
		return null;
71
	},
72
} );
73