Out of the Block: OpenStreetMap

A map block for Gutenberg using OpenStreetMap and Leaflet that needs no API keys and works out of the box. Or should we say, ...Out of the Block?

v2.12.0Giorgos SarigiannidisUpdated Added 700 installs98% rating0% support resolved
35
Score
9
Errors
4
Warnings
+0
Change

Category Scores

Security100
Repo90
Performance100
Maintainability85

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

13 findings

Maintainability

11

7 issue groups

I18n

1

1 issue group

Supply Chain

1

1 issue group

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORMaintainabilitywp function not compatible with requires wpFunction "wp_ai_client_prompt()" requires WordPress 7.0.0, but your plugin minimum supported version is WordPress 6.6.0.3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Function "wp_ai_client_prompt()" requires WordPress 7.0.0, but your plugin minimum supported version is WordPress 6.6.0.

WARNINGI18nDiscouraged text-domain loadingload_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "plugin_locale".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "plugin_locale".

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$option_name".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$option_name".

ERRORMaintainabilitybadly named filesFile and folder names must not contain spaces or special characters.1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

File and folder names must not contain spaces or special characters.

ERRORMaintainabilityblock api version too lowEditor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Editor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.

ERRORSupply ChainHidden files includedHidden files are not permitted.1
Category
Supply Chain
Occurrences
1
Severity
error

Sample message

Hidden files are not permitted.

WARNINGMaintainabilitymissing composer json fileThe "/vendor" directory using composer exists, but "composer.json" file is missing.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The "/vendor" directory using composer exists, but "composer.json" file is missing.

External Connections

Potential connections found in static code analysis.

38 domains

Outbound calls

236

External assets

0

Incoming endpoints

2

Notable Domains

developer.mozilla.org78 · outbound
en.wikipedia.org44 · outbound
leafletjs.com13 · outbound
caniuse.com4 · outbound
mapbox.com4 · outbound
stackoverflow.com4 · outbound

Platform / Reference Domains

w3.org20 · platform/reference
github.com16 · platform/reference
wordpress.org2 · platform/reference
codex.wordpress.org1 · platform/reference
developer.wordpress.org1 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

/wp-json/ootb-openstreetmap/v1/openai/REST

register_rest_route

Admin AJAX endpoints1
wp_ajax_ootb_get_markersauthenticated

wp_ajax

Score History

First score snapshot

v2.12.0

35

Latest

Findings
13
Errors
9
Warnings
4
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

37 nodes

Related Plugins