Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/mapfig-premium-leaflet-map-maker/widget/mf-widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; MAP_Widget has a deprecated constructor
Server metrics [RAM: ▼1.59MB] [CPU: ▼49.03ms] Passed 4 tests
Server-side resources used by AcuGIS Leaflet Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.07 | 6.89 ▼31.20 |
Dashboard /wp-admin | 2.42 ▼0.89 | 8.84 ▼40.75 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 8.08 ▼41.61 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 8.70 ▼82.57 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 7.33 ▼24.85 |
My Base Maps /wp-admin/admin.php?page=layers | 2.42 | 8.17 |
Add New Map /wp-admin/admin.php?page=add-new-map | 2.42 | 8.36 |
Add New Base Map /wp-admin/admin.php?page=layers-add | 2.42 | 7.07 |
Social Share /wp-admin/admin.php?page=social-share | 2.42 | 8.88 |
Widget /wp-admin/admin.php?page=get_started_widget | 2.42 | 8.43 |
Add New Group /wp-admin/admin.php?page=groups-add | 2.42 | 15.76 |
Social Settings /wp-admin/admin.php?page=social-share-settings | 2.42 | 8.01 |
Documentation /wp-admin/admin.php?page=get-started | 2.42 | 8.51 |
My Maps /wp-admin/admin.php?page=my-maps | 2.42 | 7.15 |
Base Map Groups /wp-admin/admin.php?page=groups | 2.42 | 7.80 |
Server storage [IO: ▲7.28MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 359 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_mapfig_premium_groups_has_layers |
wp_mapfig_premium_map |
wp_mapfig_premium_layers |
wp_mapfig_premium_groups |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_mf-widget |
can_compress_scripts |
db_upgraded |
mapfig_premium_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AcuGIS Leaflet Maps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,053 ▲307 | 14.75 ▲0.37 | 8.87 ▲7.21 | 42.61 ▲1.79 |
Dashboard /wp-admin | 2,350 ▲159 | 5.78 ▲0.73 | 105.99 ▲1.07 | 41.89 ▼2.37 |
Posts /wp-admin/edit.php | 2,241 ▲152 | 2.71 ▲0.74 | 41.55 ▲1.83 | 34.39 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,642 ▲121 | 18.77 ▼4.48 | 617.88 ▼13.95 | 35.14 ▼28.05 |
Media Library /wp-admin/upload.php | 1,545 ▲160 | 5.07 ▲0.84 | 106.56 ▲8.02 | 43.40 ▼1.06 |
My Base Maps /wp-admin/admin.php?page=layers | 1,931 | 3.58 | 66.09 | 71.03 |
Add New Map /wp-admin/admin.php?page=add-new-map | 2,565 | 7.25 | 197.67 | 103.78 |
Add New Base Map /wp-admin/admin.php?page=layers-add | 1,318 | 3.29 | 36.94 | 48.19 |
Social Share /wp-admin/admin.php?page=social-share | 1,952 | 4.20 | 71.70 | 50.53 |
Widget /wp-admin/admin.php?page=get_started_widget | 1,540 | 3.32 | 37.27 | 75.62 |
Add New Group /wp-admin/admin.php?page=groups-add | 1,260 | 3.29 | 37.36 | 47.91 |
Social Settings /wp-admin/admin.php?page=social-share-settings | 1,400 | 3.28 | 36.91 | 67.43 |
Documentation /wp-admin/admin.php?page=get-started | 1,861 | 3.39 | 37.99 | 69.06 |
My Maps /wp-admin/admin.php?page=my-maps | 1,312 | 3.29 | 39.73 | 48.91 |
Base Map Groups /wp-admin/admin.php?page=groups | 1,619 | 3.79 | 49.27 | 57.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mapfig-premium-leaflet-map-maker/widget/mf-widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; MAP_Widget has a deprecated constructor
- The uninstall procedure failed, leaving 4 tables in the database
- wp_mapfig_premium_groups
- wp_mapfig_premium_map
- wp_mapfig_premium_groups_has_layers
- wp_mapfig_premium_layers
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- mapfig_premium_db_version
- widget_theysaidso_widget
- db_upgraded
- widget_mf-widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=groups
- > Deprecated in wp-content/plugins/mapfig-premium-leaflet-map-maker/widget/mf-widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; MAP_Widget has a deprecated constructor
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
Almost there! Just fix the following items
- 44× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/config/profiler.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/config/uploader_settings.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/controllers/uploader.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/system/core/Router.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/system/core/Exceptions.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/views/include/footer-small.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/config/doctypes.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/system/core/Hooks.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/system/core/Security.php
- > /wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/system/core/Input.php
- 87× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant MF_HELP_URL - assumed 'MF_HELP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/social_share.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/groups_edit.php:7
- > PHP Warning
include(../is_allowed.php): failed to open stream: No such file or directory in wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/helpers/jbimages_helper.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/groups_has_layers.php:7
- > PHP Warning
Use of undefined constant MF_COPYRIGHT_TEXT - assumed 'MF_COPYRIGHT_TEXT' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/include/footer-small.php on line 80
- > PHP Warning
Use of undefined constant MF_FACEBOOK_URL - assumed 'MF_FACEBOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/include/footer-small.php on line 83
- > PHP Warning
Use of undefined constant MF_HELP_URL - assumed 'MF_HELP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/get_started.php on line 45
- > PHP Notice
Undefined variable: line in wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/ci/application/errors/error_php.php on line 8
- > PHP Warning
Use of undefined constant MF_HELP_URL - assumed 'MF_HELP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapfig-premium-leaflet-map-maker/views/mf.php on line 45
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mapfig-premium-leaflet-map-maker/tinymce/js/tinymce/plugins/jbimages/config.php on line 44
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=add-new-map
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&ver=6.3.1 234:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: maps, openstreetmap, mapbox maps, leaflet, google maps...
mapfig-premium-leaflet-map-maker/mf_plugin.php 92% from 13 tests
"AcuGIS Leaflet Maps" version 5.1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mapfig-premium-leaflet-map-maker.php" instead of "mf_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin38,912 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 36 | 275 | 378 | 22,166 |
PHP | 81 | 2,474 | 4,715 | 8,949 |
JavaScript | 91 | 1,362 | 884 | 5,950 |
SVG | 8 | 1 | 1 | 1,626 |
LESS | 1 | 9 | 6 | 123 |
HTML | 5 | 25 | 4 | 95 |
Markdown | 2 | 1 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 43.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 232 | |
▷ Static methods | 20 | 8.62% |
▷ Public methods | 206 | 88.79% |
▷ Protected methods | 22 | 9.48% |
▷ Private methods | 4 | 1.72% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 44 | |
▷ Global constants | 44 | 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
59 PNG files occupy 2.42MB with 1.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_desc_disabled.png | 1.02KB | 0.25KB | ▼ 75.98% |
external/images/spritesheet.png | 1.03KB | 0.67KB | ▼ 34.94% |
external/images/markers-soft.png | 40.26KB | 7.77KB | ▼ 80.70% |
images/sort_asc_disabled.png | 1.03KB | 0.25KB | ▼ 76.00% |
images/share/facebook.png | 94.73KB | 26.67KB | ▼ 71.85% |