Parish Crime Display self-updates
WordPress plugin displaying local crime statistics from national UK data
by NonaTech Services Ltd · github.com/nonatech-uk/wp-parish-crime · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/nonatech-uk/wp-parish-crime/archive/refs/heads/main.zipShips its own WordPress updater (built-in updater), so new versions show up under Dashboard → Updates.
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
- Download the latest release from GitHub Releases
- Upload to
/wp-content/plugins/parish-crime/ - Activate the plugin through the WordPress admin
- Configure your parish boundary in Settings > Parish Crime
Configuration
Setting Your Parish Boundary
- Go to Settings > Parish Crime in WordPress admin
- Enter your area name (e.g., "Albury Parish")
- Enter boundary coordinates as
lat,lngon each line:51.245,-0.520 51.245,-0.475 51.200,-0.470 - 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) ortableheight- 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
- Crime data: data.police.uk
- Maps: OpenStreetMap via Leaflet.js