Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼2.49ms] Passed 4 tests
Analyzing server-side resources used by ACF OpenStreetMap Field
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 43.49 ▲2.09 |
Dashboard /wp-admin | 3.86 ▲0.51 | 52.57 ▼12.56 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 49.73 ▲6.18 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 96.47 ▼4.57 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.33 ▲5.07 |
OpenStreetMap /wp-admin/options-general.php?page=acf_osm | 3.85 | 41.09 |
Server storage [IO: ▲4.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for ACF OpenStreetMap Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.24 ▼0.11 | 1.65 ▼0.20 | 43.32 ▼3.71 |
Dashboard /wp-admin | 2,199 ▲28 | 5.62 ▲0.03 | 84.53 ▼19.03 | 39.16 ▼6.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 37.55 ▼5.00 | 33.28 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 22.94 ▼2.25 | 627.67 ▼48.57 | 59.66 ▲4.04 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.07 | 100.14 ▲5.07 | 40.73 ▼3.82 |
OpenStreetMap /wp-admin/options-general.php?page=acf_osm | 3,035 | 2.56 | 57.65 | 73.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 12× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Settings/Settings.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/Templates.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Compat/ACF.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/Singleton.php
- > /wp-content/plugins/acf-openstreetmap-field/include/autoload.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/Core.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/OSMProviders.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/Plugin.php
- > /wp-content/plugins/acf-openstreetmap-field/index.php
- > /wp-content/plugins/acf-openstreetmap-field/include/ACFFieldOpenstreetmap/Core/PluginComponent.php
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/leaflet.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/leaflet.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/leaflet.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/admin.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acf-openstreetmap-field/templates/leaflet.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: map acf openstreetmap leaflet
acf-openstreetmap-field/index.php 92% from 13 tests
This is the main PHP file of "ACF OpenStreetMap Field" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("acf-openstreetmap-field.php" instead of "index.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
No dangerous file extensions were detected2,710 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 530 | 823 | 1,540 |
JSON | 2 | 0 | 0 | 1,160 |
CSS | 4 | 0 | 0 | 4 |
JavaScript | 4 | 0 | 4 | 4 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 3 | 25.00% |
▷ Concrete classes | 9 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 8 | 8.42% |
▷ Public methods | 72 | 75.79% |
▷ Protected methods | 8 | 8.42% |
▷ Private methods | 15 | 15.79% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/css/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/css/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/css/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/css/images/geocoder.png | 0.48KB | 0.49KB | 0.00% |