Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼145.29ms] Passed 4 tests
Analyzing server-side resources used by Interactive UK Regional Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 30.96 ▼2.65 |
Dashboard /wp-admin | 3.10 ▲0.04 | 52.89 ▲6.16 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.70 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 85.58 ▼578.41 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.58 ▲2.48 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 99 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Interactive UK Regional Map
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲133 | 15.86 ▲0.36 | 8.05 ▼1.46 | 46.18 ▲0.30 |
Dashboard /wp-admin | 2,985 ▲48 | 6.04 ▼0.05 | 139.52 ▼3.33 | 128.87 ▲14.36 |
Posts /wp-admin/edit.php | 2,776 ▲37 | 2.68 ▼0.01 | 61.35 ▼5.15 | 86.56 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 18.80 ▲0.50 | 379.06 ▼5.97 | 109.26 ▼4.64 |
Media Library /wp-admin/upload.php | 1,776 ▼34 | 4.95 ▼0.09 | 129.58 ▼23.10 | 141.77 ▲28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/interactive-uk-regional-map/design/map.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-uk-regional-map/design/admin.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-uk-regional-map/config.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interactive-uk-regional-map/ukr-map.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
interactive-uk-regional-map/ukr-map.php 92% from 13 tests
"Interactive UK Regional Map" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("interactive-uk-regional-map.php" instead of "ukr-map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,646 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 50 | 7 | 13 | 761 |
CSS | 8 | 20 | 3 | 400 |
PHP | 4 | 24 | 8 | 352 |
SVG | 2 | 0 | 0 | 125 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/map-icons.png | 3.93KB | 2.40KB | ▼ 38.85% |
images/uk-premium.png | 14.40KB | 13.05KB | ▼ 9.32% |
images/map-icon.png | 1.32KB | 0.73KB | ▼ 44.83% |
images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |