Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.62MB] [CPU: ▲11.38ms] Passed 4 tests
Analyzing server-side resources used by Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.61 ▲2.48 |
Dashboard /wp-admin | 8.85 ▲5.54 | 68.07 ▲19.05 |
Posts /wp-admin/edit.php | 8.85 ▲5.49 | 59.58 ▲13.84 |
Add New Post /wp-admin/post-new.php | 8.85 ▲2.96 | 102.47 ▲10.14 |
Media Library /wp-admin/upload.php | 8.85 ▲5.62 | 60.51 ▲27.78 |
Tools /wp-admin/admin.php?page=leafletmapsmarker_tools | 8.85 | 81.18 |
Import/Export /wp-admin/admin.php?page=leafletmapsmarker_import_export | 8.85 | 50.44 |
Add new marker /wp-admin/admin.php?page=leafletmapsmarker_marker | 8.85 | 79.35 |
List all layers /wp-admin/admin.php?page=leafletmapsmarker_layers | 8.85 | 45.54 |
Settings /wp-admin/admin.php?page=leafletmapsmarker_settings | 8.85 | 120.66 |
Retirement info & coupon code /wp-admin/admin.php?page=leafletmapsmarker_retirement | 8.85 | 47.08 |
Add new layer /wp-admin/admin.php?page=leafletmapsmarker_layer | 8.85 | 53.29 |
Maps Marker APIs /wp-admin/admin.php?page=leafletmapsmarker_apis | 8.85 | 46.10 |
Support /wp-admin/admin.php?page=leafletmapsmarker_help | 8.85 | 46.34 |
List all markers /wp-admin/admin.php?page=leafletmapsmarker_markers | 8.85 | 47.80 |
Server storage [IO: ▲10.16MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 264 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_leafletmapsmarker_markers |
wp_leafletmapsmarker_layers |
New WordPress options |
---|
leafletmapsmarker_version_before_update |
can_compress_scripts |
leafletmapsmarker_redirect |
leafletmapsmarker_editor |
widget_recent-comments |
theysaidso_admin_options |
leafletmapsmarker_update_info |
leafletmapsmarker_version |
widget_theysaidso_widget |
leafletmapsmarker_options |
... |
Browser metrics Passed 4 tests
Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,132 ▲397 | 13.24 ▼1.16 | 1.64 ▼0.22 | 32.43 ▼18.37 |
Dashboard /wp-admin | 2,466 ▲281 | 4.91 ▲0.03 | 112.50 ▲6.88 | 107.68 ▲62.40 |
Posts /wp-admin/edit.php | 2,239 ▲150 | 2.06 ▲0.04 | 34.81 ▼0.70 | 36.50 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,652 ▲118 | 23.21 ▲0.01 | 770.29 ▲88.51 | 35.80 ▼23.88 |
Media Library /wp-admin/upload.php | 1,542 ▲154 | 4.25 ▲0.06 | 100.72 ▼8.74 | 72.56 ▲25.69 |
Tools /wp-admin/admin.php?page=leafletmapsmarker_tools | 4,671 | 6.83 | 149.86 | 146.60 |
Import/Export /wp-admin/admin.php?page=leafletmapsmarker_import_export | 1,283 | 1.94 | 32.31 | 84.60 |
Add new marker /wp-admin/admin.php?page=leafletmapsmarker_marker | 3,751 | 8.10 | 177.78 | 187.19 |
List all layers /wp-admin/admin.php?page=leafletmapsmarker_layers | 1,350 | 1.82 | 27.00 | 73.62 |
Settings /wp-admin/admin.php?page=leafletmapsmarker_settings | 16,663 | 3.55 | 81.38 | 150.62 |
Retirement info & coupon code /wp-admin/admin.php?page=leafletmapsmarker_retirement | 969 | 1.80 | 23.25 | 26.70 |
Add new layer /wp-admin/admin.php?page=leafletmapsmarker_layer | 2,148 | 3.42 | 59.31 | 93.54 |
Maps Marker APIs /wp-admin/admin.php?page=leafletmapsmarker_apis | 1,264 | 1.92 | 29.94 | 78.00 |
Support /wp-admin/admin.php?page=leafletmapsmarker_help | 1,787 | 1.92 | 26.89 | 71.81 |
List all markers /wp-admin/admin.php?page=leafletmapsmarker_markers | 1,399 | 1.81 | 28.71 | 78.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_class_leaflet_recent_marker_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/leaflet-maps-marker/leaflet-list-markers.php
- > /wp-content/plugins/leaflet-maps-marker/leaflet-pro-upgrade.php
- > /wp-content/plugins/leaflet-maps-marker/leaflet-import-export.php
- > /wp-content/plugins/leaflet-maps-marker/inc/install-and-updates.php
- > /wp-content/plugins/leaflet-maps-marker/leaflet-help-credits.php
- > /wp-content/plugins/leaflet-maps-marker/leaflet-marker.php
- > /wp-content/plugins/leaflet-maps-marker/inc/compatibility-checks.php
- > /wp-content/plugins/leaflet-maps-marker/inc/tinymce-plugin.php
- > /wp-content/plugins/leaflet-maps-marker/inc/admin-footer.php
- > /wp-content/plugins/leaflet-maps-marker/leaflet-layer.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant LEAFLET_WP_ADMIN_URL - assumed 'LEAFLET_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/leaflet-maps-marker/inc/admin-content-retirement.php on line 10
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/leaflet-maps-marker/leaflet-api.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/leaflet-maps-marker/inc/admin-content-apis.php:10
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/leaflet-maps-marker/leaflet-kml.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leaflet-maps-marker/inc/class-google-places-geocoding.php:184
- > PHP Warning
Use of undefined constant LEAFLET_WP_ADMIN_URL - assumed 'LEAFLET_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/leaflet-maps-marker/inc/admin-content-apis.php on line 10
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/leaflet-maps-marker/leaflet-geositemap.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/leaflet-maps-marker/inc/admin-content-retirement.php:10
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/leaflet-maps-marker/leaflet-qr.php on line 6
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/leaflet-maps-marker/leaflet-georss.php on line 7
- > PHP Warning
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=leafletmapsmarker_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'mozilla')" "TypeError: Cannot read properties of undefined (reading 'mozilla')\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=leafletmapsmarker_settings:252:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=leafletmapsmarker_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'mozilla')
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #32 (Pro preview: showing marker in layar (via Augmented-Reality API)) image required
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: A description for screenshot #6 is missing in leaflet-maps-marker/assets to your readme.txt
leaflet-maps-marker/leaflet-maps-marker.php 92% from 13 tests
The entry point to "Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)" version 3.12.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 359 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin23,703 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 440 | 1,123 | 20,092 |
CSS | 8 | 15 | 58 | 3,004 |
JavaScript | 9 | 9 | 66 | 492 |
SVG | 6 | 0 | 0 | 115 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 482)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 183.75 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 564.00 |
Average method complexity | 12.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 482.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 95.52% |
▷ Protected methods | 3 | 4.48% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
121 PNG files occupy 0.35MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/pro-feature-banner.png | 1.09KB | 0.18KB | ▼ 83.44% |
inc/img/icon-resellers.png | 0.50KB | 0.51KB | 0.00% |
inc/img/icon-menu-help.png | 0.19KB | 0.23KB | 0.00% |
inc/img/geocoding/icon-key-enter.png | 0.74KB | 0.89KB | 0.00% |
inc/img/icon-menu-add.png | 0.11KB | 0.12KB | 0.00% |