Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.82MB] [CPU: ▲12.17ms] Passed 4 tests
This is a short check of server-side resources used by Easy Google Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.61 ▲2.15 | 68.79 ▲30.09 |
Dashboard /wp-admin | 5.13 ▲1.82 | 64.55 ▲17.61 |
Posts /wp-admin/edit.php | 5.18 ▲1.82 | 58.75 ▲13.28 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.82 | 95.08 ▼3.69 |
Media Library /wp-admin/upload.php | 5.05 ▲1.82 | 56.17 ▲21.49 |
All Maps /wp-admin/admin.php?page=google-maps-easy&tab=gmap | 5.36 | 58.03 |
Overview /wp-admin/admin.php?page=google-maps-easy&tab=overview | 5.63 | 370.74 |
Marker Categories /wp-admin/admin.php?page=google-maps-easy&tab=marker_groups | 5.46 | 71.19 |
Settings /wp-admin/admin.php?page=google-maps-easy&tab=settings | 5.38 | 54.53 |
Add Map /wp-admin/admin.php?page=google-maps-easy&tab=gmap_add_new | 8.76 | 108.79 |
Easy Google Maps /wp-admin/admin.php?page=google-maps-easy | 5.36 | 62.60 |
Server storage [IO: ▲8.28MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 488 new files
Database: 11 new tables, 10 new options
New tables |
---|
wp_gmp_marker_groups_relation |
wp_gmp_usage_stat |
wp_gmp_markers |
wp_gmp_modules |
wp_gmp_icons |
wp_gmp_maps |
wp_gmp_modules_type |
wp_gmp_options |
wp_gmp_marker_groups |
wp_gmp_options_categories |
... |
New WordPress options |
---|
gmp_plugin_activation_errors |
theysaidso_admin_options |
wp_gmp_db_installed |
gmp_def_icons_installed |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
wp_gmp_db_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Easy Google 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 / | 2,850 ▲115 | 13.46 ▼0.78 | 4.76 ▲2.85 | 41.36 ▼3.99 |
Dashboard /wp-admin | 2,250 ▲59 | 5.81 ▲0.93 | 98.26 ▼13.73 | 40.76 ▼0.24 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.13 ▲0.10 | 34.56 ▼1.15 | 31.81 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,571 ▲57 | 23.22 ▲5.70 | 678.39 ▲14.46 | 60.44 ▼4.99 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.31 ▲0.12 | 111.72 ▼0.34 | 49.09 ▼0.18 |
All Maps /wp-admin/admin.php?page=google-maps-easy&tab=gmap | 1,806 | 5.39 | 82.41 | 132.47 |
Overview /wp-admin/admin.php?page=google-maps-easy&tab=overview | 2,923 | 20.89 | 524.96 | 90.20 |
Marker Categories /wp-admin/admin.php?page=google-maps-easy&tab=marker_groups | 1,380 | 4.15 | 64.06 | 92.05 |
Settings /wp-admin/admin.php?page=google-maps-easy&tab=settings | 1,595 | 4.45 | 63.01 | 84.60 |
Add Map /wp-admin/admin.php?page=google-maps-easy&tab=gmap_add_new | 8,420 | 11.85 | 322.47 | 217.17 |
Easy Google Maps /wp-admin/admin.php?page=google-maps-easy | 1,801 | 5.36 | 79.56 | 101.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 11 tables in the database
- wp_gmp_modules
- wp_gmp_options_categories
- wp_gmp_modules_type
- wp_gmp_icons
- wp_gmp_marker_groups_relation
- wp_gmp_marker_groups
- wp_gmp_membership_presets
- wp_gmp_usage_stat
- wp_gmp_options
- wp_gmp_maps
- ...
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- wp_gmp_db_installed
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wp_gmp_db_version
- theysaidso_admin_options
- widget_recent-comments
- gmp_def_icons_installed
- gmp_plugin_activation_errors
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/google-maps-easy/modules/gmap_widget/views/tpl/widget.php
- > /wp-content/plugins/google-maps-easy/modules/supsystic_promo/views/tpl/adminFooter.php
- 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'moduleGmp' not found in wp-content/plugins/google-maps-easy/modules/icons/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleGmp' not found in wp-content/plugins/google-maps-easy/modules/mail/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'modelGmp' not found in wp-content/plugins/google-maps-easy/modules/supsystic_promo/models/supsystic_promo.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/google-maps-easy/modules/supsystic_promo/views/tpl/adminPromoTabContent.php:2
- > PHP Fatal error
Uncaught Error: Class 'modelGmp' not found in wp-content/plugins/google-maps-easy/modules/marker_groups/models/marker_groups.php:2
- > PHP Fatal error
Uncaught Error: Class 'baseObjectGmp' not found in wp-content/plugins/google-maps-easy/classes/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/google-maps-easy/modules/gmap_widget/views/tpl/form.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleGmp' not found in wp-content/plugins/google-maps-easy/modules/shortcodes/mod.php:2
- > PHP Warning
Use of undefined constant GMP_PLUGINS_URL - assumed 'GMP_PLUGINS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-maps-easy/modules/supsystic_promo/views/tpl/overviewTabContent.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/google-maps-easy/modules/marker_groups/views/tpl/mgrAdmin.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=google-maps-easy&tab=gmap_add_new
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&language=en&ver=1.11.10 208: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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: map, google maps, location, map markers, google map
google-maps-easy/gmp.php 92% from 13 tests
The main file in "Easy Google Maps" v. 1.11.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("google-maps-easy.php" instead of "gmp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin65,585 lines of code in 265 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 12,105 | 17,988 | 31,679 |
PHP | 109 | 546 | 2,098 | 15,226 |
JavaScript | 100 | 684 | 2,553 | 12,566 |
CSS | 36 | 162 | 244 | 3,206 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 1 | 0 | 0 | 237 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 25.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 7 | 8.54% |
▷ Concrete classes | 75 | 91.46% |
▷ Final classes | 0 | 0.00% |
Methods | 912 | |
▷ Static methods | 246 | 26.97% |
▷ Public methods | 821 | 90.02% |
▷ Protected methods | 52 | 5.70% |
▷ Private methods | 39 | 4.28% |
Functions | 21 | |
▷ Named functions | 16 | 76.19% |
▷ Anonymous functions | 5 | 23.81% |
Constants | 74 | |
▷ Global constants | 60 | 81.08% |
▷ Class constants | 14 | 18.92% |
▷ Public constants | 14 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
177 PNG files occupy 0.96MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/icons/icons_files/def_icons/marker_1.png | 1.18KB | 0.86KB | ▼ 26.99% |
modules/icons/icons_files/def_icons/paw_gray.png | 2.02KB | 1.90KB | ▼ 5.91% |
modules/icons/icons_files/def_icons/star_pin_black.png | 1.79KB | 1.74KB | ▼ 3.16% |
modules/icons/icons_files/def_icons/green_circle.png | 2.10KB | 1.72KB | ▼ 18.15% |
img/buttonsPlusMinus.png | 2.81KB | 0.17KB | ▼ 93.88% |