Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲3.91ms] Passed 4 tests
A check of server-side resources used by WP Mapbox GL JS Maps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 45.03 ▲3.45 |
Dashboard /wp-admin | 3.41 ▲0.10 | 54.13 ▲4.83 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.95 ▲4.49 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 100.56 ▲2.85 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.94 ▲9.04 |
WP Mapbox Settings /wp-admin/admin.php?page=wp-mapbox-gl-js-settings | 3.37 | 40.03 |
GL JS Maps /wp-admin/edit.php?post_type=gl_js_maps | 3.35 | 42.81 |
Add New /wp-admin/post-new.php?post_type=gl_js_maps | 3.33 | 45.43 |
WP Mapbox Tools /wp-admin/admin.php?page=wp-mapbox-gl-js-tools | 3.46 | 161.84 |
Maps Categories /wp-admin/edit-tags.php?taxonomy=gl_js_maps_category&post_type=gl_js_maps | 3.32 | 42.01 |
Server storage [IO: ▲17.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2,419 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
post_type_rules_flushed_gl_js_maps |
wp_mapbox_gl_js_upgrade |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
mapbox_gl_js_access_token |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mapbox GL JS Maps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,058 ▲297 | 17.77 ▲3.19 | 25.11 ▲23.46 | 39.35 ▼5.81 |
Dashboard /wp-admin | 2,315 ▲138 | 6.42 ▲0.85 | 106.79 ▲19.73 | 87.04 ▲50.03 |
Posts /wp-admin/edit.php | 2,221 ▲121 | 3.47 ▲1.38 | 49.23 ▲9.20 | 35.42 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,623 ▲87 | 23.08 ▲0.02 | 710.39 ▼14.45 | 47.47 ▼16.63 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 5.81 ▲1.58 | 110.93 ▲17.08 | 82.34 ▲38.03 |
WP Mapbox Settings /wp-admin/admin.php?page=wp-mapbox-gl-js-settings | 1,028 | 3.62 | 68.95 | 30.61 |
GL JS Maps /wp-admin/edit.php?post_type=gl_js_maps | 1,202 | 3.41 | 43.87 | 30.95 |
Add New /wp-admin/post-new.php?post_type=gl_js_maps | 2,660 | 10.22 | 277.44 | 149.11 |
WP Mapbox Tools /wp-admin/admin.php?page=wp-mapbox-gl-js-tools | 1,039 | 3.05 | 34.90 | 28.27 |
Maps Categories /wp-admin/edit-tags.php?taxonomy=gl_js_maps_category&post_type=gl_js_maps | 1,391 | 3.24 | 38.55 | 38.56 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- post_type_rules_flushed_gl_js_maps
- widget_recent-comments
- mapbox_gl_js_access_token
- wp_mapbox_gl_js_upgrade
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=gl_js_maps
- > Notice in wp-content/plugins/wp-mapbox-gl-js/admin/class-wp-mapbox-gl-js-admin.php+107
Undefined index: X-WP-Nonce
- > GET request to /wp-admin/admin.php?page=wp-mapbox-gl-js-tools
- > Notice in wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-tools.php+256
Trying to get property 'id' of non-object
- > GET request to /wp-admin/admin.php?page=wp-mapbox-gl-js-tools
- > Notice in wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-tools.php+256
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=wp-mapbox-gl-js-tools
- > Notice in wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-tools.php+275
Undefined index: dataset_import
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-print.php
- > /wp-content/plugins/wp-mapbox-gl-js/public/partials/wp-mapbox-gl-js-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-tools.php:233
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-mapbox-gl-js/admin/wp-mapbox-gl-js-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-mapbox-gl-js/admin/partials/wp-mapbox-gl-js-settings.php:180
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp-mapbox-gl-js-settings
- > Console-api (warning) in unknown
https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js?ver=6.3.1 30:4337 "This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/."
- > GET request to /wp-admin/post-new.php?post_type=gl_js_maps
- > Console-api (severe) in wp-content/plugins/wp-mapbox-gl-js/admin/wp-mapmaker/build/static/js/main.31f3ba31.js?ver=558+0:1248181
You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.
- > GET request to /wp-admin/post-new.php?post_type=gl_js_maps
- > Javascript (severe) in unknown
/wp-content/plugins/wp-mapbox-gl-js/admin/wp-mapmaker/build/static/js/main.31f3ba31.js?ver=558 0:386742 Uncaught Error: Minified React error #200; visit http://facebook.g… for full errors and additional helpful warnings.
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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Here is a screenshot of the GL JS Maps map editor!), #2 (The shortcode appears in the top right after you Publish.), #3 (Copy the shortcode to any post or page and use the [shortcode options](https://www.mapster.me/wp-mapbox-gl-js/docs/shortcode/map-options/) as needed.), #4 (Publish your post/page and check out your new map!)
wp-mapbox-gl-js/wp-mapbox-gl-js.php 92% from 13 tests
The entry point to "WP Mapbox GL JS Maps" version 3.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/wp-mapbox-gl-js")
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
Good job! No executable or dangerous file extensions detected50,080 lines of code in 2,355 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2,319 | 13 | 1,091 | 39,912 |
CSS | 9 | 770 | 311 | 4,742 |
JSON | 5 | 0 | 0 | 3,358 |
PHP | 15 | 236 | 593 | 1,232 |
JavaScript | 4 | 56 | 33 | 733 |
Markdown | 1 | 25 | 0 | 76 |
HTML | 2 | 4 | 20 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.86MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wp-mapmaker/public/img/black_tall.png | 6.33KB | 3.82KB | ▼ 39.64% |
screenshot-1.png | 142.10KB | 43.35KB | ▼ 69.49% |
admin/wp-mapmaker/build/img/black_tall.png | 6.33KB | 3.82KB | ▼ 39.64% |
admin/wp-mapmaker/public/img/black_default.png | 3.60KB | 2.44KB | ▼ 32.20% |
admin/wp-mapmaker/public/maki/sprites/osm-liberty@2x.png | 47.08KB | 22.02KB | ▼ 53.22% |