Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.40ms] Passed 4 tests
A check of server-side resources used by Out of the Block: OpenStreetMap
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.39 ▲2.07 |
Dashboard /wp-admin | 3.49 ▲0.14 | 54.37 ▼5.87 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 47.21 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.32 ▲1.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.32 ▲6.47 |
OOTB OpenStreetMap /wp-admin/options-general.php?page=ootb-openstreetmap | 3.38 | 33.25 |
Server storage [IO: ▲5.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Out of the Block: OpenStreetMap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.31 ▼0.33 | 2.14 ▲0.49 | 43.80 ▼1.18 |
Dashboard /wp-admin | 2,196 ▲29 | 5.50 ▼0.16 | 97.29 ▼11.86 | 42.99 ▼0.21 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.08 | 36.51 ▼1.77 | 37.14 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6,376 ▲4,850 | 29.37 ▲5.60 | 1,009.24 ▲391.63 | 62.88 ▲10.32 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.03 | 96.18 ▼0.11 | 41.14 ▲1.43 |
OOTB OpenStreetMap /wp-admin/options-general.php?page=ootb-openstreetmap | 889 | 2.00 | 22.74 | 32.94 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'OOTB\\Options' not found in wp-content/plugins/ootb-openstreetmap/includes/core.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ootb-openstreetmap/ootb-openstreetmap.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google maps, openstreetmap, map, block, leaflet
ootb-openstreetmap/ootb-openstreetmap.php 92% from 13 tests
The primary PHP file in "Out of the Block: OpenStreetMap" version 2.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin62,489 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 2 | 7,230 | 18 | 42,879 |
JavaScript | 60 | 5,290 | 7,237 | 17,152 |
CSS | 5 | 127 | 54 | 1,242 |
PHP | 17 | 208 | 563 | 1,074 |
JSON | 4 | 0 | 0 | 142 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 20.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 26 | 41.27% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.76% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/vendor/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/vendor/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
build/images/layers.416d9136.png | 0.68KB | 1.05KB | 0.00% |
assets/vendor/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |