Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.57ms] Passed 4 tests
Server-side resources used by Tiles Proxy for OpenStreetMap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.70 ▲0.63 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.39 ▼12.27 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.48 ▼1.77 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.08 ▲5.07 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.19 ▲3.14 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tiles Proxy for OpenStreetMap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.34 ▲0.02 | 1.49 ▲0.04 | 36.52 ▼2.35 |
Dashboard /wp-admin | 2,195 ▲20 | 5.69 ▲0.01 | 94.39 ▼25.01 | 42.88 ▼2.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 39.73 ▲1.04 | 35.05 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.19 ▼0.37 | 635.34 ▲31.12 | 45.47 ▼2.08 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.25 ▲0.07 | 102.97 ▲6.75 | 43.00 ▲2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/osm-tiles-proxy/includes/plugin.leaflet-map.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/osm-tiles-proxy/osm-tiles-proxy.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
4 plugin tags: proxy, embed, openstreetmap, gdpr
osm-tiles-proxy/osm-tiles-proxy.php Passed 13 tests
This is the main PHP file of "Tiles Proxy for OpenStreetMap" version 2.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Helper plugin for embedding OpenStreetMaps
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected17,520 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 5,224 | 7,160 | 16,585 |
CSS | 1 | 56 | 27 | 578 |
PHP | 4 | 80 | 34 | 357 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
libs/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
libs/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
libs/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/out_of_range.png | 18.05KB | 9.85KB | ▼ 45.41% |