WP Manifestindependent plugin directory
manifest / utilities / wp-crime-display

Crime Display

WordPress plugin for displaying crime data widgets

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/nonatech-uk/wp-crime-display/archive/refs/heads/main.zip
Updates itself. It ships its own updater, so new versions appear under Dashboard → Updates.

Parish Crime Display

A WordPress plugin that displays crime data from data.police.uk for a configurable parish or local area.

Features

  • Interactive Map: View crime locations on an OpenStreetMap-based map with Leaflet.js
  • Filterable Table: Browse crimes in a sortable table format
  • Date Range Selection: Filter crimes by month with easy-to-use dropdowns
  • Category Filtering: Filter by crime type (burglary, anti-social behaviour, etc.)
  • Configurable Boundary: Set your own parish boundary coordinates via the admin settings
  • Auto-Updates: Automatically checks for updates from GitHub releases

Installation

  1. Download the latest release from GitHub Releases
  2. Upload to /wp-content/plugins/parish-crime/
  3. Activate the plugin through the WordPress admin
  4. Configure your parish boundary in Settings > Parish Crime

Configuration

Setting Your Parish Boundary

  1. Go to Settings > Parish Crime in WordPress admin
  2. Enter your area name (e.g., "Albury Parish")
  3. Enter boundary coordinates as lat,lng on each line:
    51.245,-0.520
    51.245,-0.475
    51.200,-0.470
  4. Save settings

The plugin will automatically clear cached crime data when you update the boundary.

Shortcodes

Main Crime Display

[parish_crime]

Shows crimes with toggle between map and table view.

Attributes:

  • display - Initial view: map (default) or table
  • height - Map height (default: 500px)
  • zoom - Initial zoom level (default: 14)

Parish Area Map

[parish_crime_area]

Shows just the parish boundary on a map.

Map Key/Legend

[parish_crime_map_key]

Displays a legend table of crime categories and their colours.

Data Source

Crime data is provided by the Police UK API. Data is:

  • Updated monthly (typically 6-8 weeks behind current date)
  • Anonymised to approximate locations
  • Cached locally for 24 hours to reduce API calls

Requirements

  • WordPress 5.0+
  • PHP 7.4+

License

This plugin is released under a Non-Commercial Open Source License.

  • Free for non-commercial use (local government, parish councils, charities, educational institutions)
  • Commercial use requires a separate license

For commercial licensing or support, contact:

NonaTech Services Ltd Email: stu.bevan@nonatech.co.uk Web: https://nonatech.co.uk

Support

For bug reports and feature requests, please use GitHub Issues.

Credits