Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼145.22ms] Passed 4 tests
A check of server-side resources used by Municipal Boundaries
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 28.20 ▼11.63 |
Dashboard /wp-admin | 3.08 ▲0.02 | 49.21 ▲13.00 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 45.62 ▲4.02 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 88.89 ▼573.66 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.95 ▲0.38 |
Municipal Boundaries /wp-admin/options-general.php?page=municipal-boundaries_options | 2.99 | 28.73 |
Server storage [IO: ▲5.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Municipal Boundaries
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 16.00 ▲0.37 | 11.46 ▲1.60 | 49.65 ▼5.25 |
Dashboard /wp-admin | 2,998 ▲64 | 5.95 ▲0.01 | 134.04 ▼2.88 | 109.95 ▼7.48 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▼0.02 | 62.51 ▼1.57 | 90.07 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,879 ▲9 | 19.17 ▼0.24 | 365.60 ▼8.11 | 113.44 ▲0.86 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.03 ▼0.01 | 165.56 ▲20.95 | 115.86 ▲2.26 |
Municipal Boundaries /wp-admin/options-general.php?page=municipal-boundaries_options | 1,040 | 2.30 | 54.07 | 75.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/municipal-boundaries/admin/partials/municipal-boundaries-admin-display.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: municipalities, googlemap, boundaries, ucm, cyprus...
municipal-boundaries/municipal-boundaries.php Passed 13 tests
The main PHP script in "Municipal Boundaries" version 1.1.4 is automatically included on every request by WordPress
69 characters long description:
Renders current Municipal Boundaries on Google Map based on KML data.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,565 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 7 | 0 | 0 | 1,150 |
JavaScript | 3 | 21 | 42 | 1,027 |
PHP | 12 | 132 | 532 | 288 |
CSS | 2 | 7 | 14 | 88 |
Markdown | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 2.21MB with 1.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/tseri.png | 69.29KB | 26.26KB | ▼ 62.09% |
public/img/egkomi.png | 13.84KB | 5.30KB | ▼ 61.71% |
public/img/lemesos.png | 85.65KB | 29.17KB | ▼ 65.95% |
public/img/keryneia.png | 83.68KB | 31.84KB | ▼ 61.95% |
public/img/paphos.png | 66.02KB | 23.66KB | ▼ 64.17% |