Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.11MB] [CPU: ▲32.25ms] Passed 4 tests
Server-side resources used by WP Go Maps (formerly WP Google Maps)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.94 ▲4.48 | 69.60 ▲31.93 |
Dashboard /wp-admin | 7.96 ▲4.62 | 76.25 ▲23.10 |
Posts /wp-admin/edit.php | 7.96 ▲4.61 | 87.52 ▲38.71 |
Add New Post /wp-admin/post-new.php | 8.63 ▲2.74 | 140.16 ▲35.24 |
Media Library /wp-admin/upload.php | 7.96 ▲4.73 | 75.53 ▲41.78 |
Support /wp-admin/admin.php?page=wp-google-maps-menu-support | 7.96 | 70.06 |
Maps /wp-admin/admin.php?page=wp-google-maps-menu | 7.96 | 72.26 |
Settings /wp-admin/admin.php?page=wp-google-maps-menu-settings | 7.96 | 79.10 |
Server storage [IO: ▲27.99MB] [DB: ▲0.02MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The filesystem usage should be lower than 25MB (currently using 27.99MB)
Filesystem: 608 new files
Database: 9 new tables, 15 new options
New tables |
---|
wp_wpgmza_maps |
wp_wpgmza_image_overlays |
wp_wpgmza_circles |
wp_wpgmza_polygon |
wp_wpgmza_admin_notices |
wp_wpgmza_polylines |
wp_wpgmza |
wp_wpgmza_rectangles |
wp_wpgmza_point_labels |
New WordPress options |
---|
WPGMZA_OTHER_SETTINGS |
wpgmza_temp_api |
wpgmza-first-run |
widget_theysaidso_widget |
widget_wpgmza_map_widget |
wpgmza_xml_url |
can_compress_scripts |
widget_recent-comments |
wpgmza_welcome_screen_done |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Go Maps (formerly WP Google Maps)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.25 ▼0.11 | 1.72 ▲0.02 | 40.03 ▲1.81 |
Dashboard /wp-admin | 2,210 ▲32 | 5.56 ▼0.18 | 84.69 ▼27.59 | 83.84 ▲40.06 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▼0.02 | 37.00 ▼4.89 | 33.29 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,788 ▲253 | 27.80 ▲9.58 | 782.85 ▲136.90 | 40.39 ▼25.19 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.17 ▼0.05 | 99.02 ▲4.74 | 73.59 ▲30.54 |
Support /wp-admin/admin.php?page=wp-google-maps-menu-support | 1,237 | 5.12 | 72.77 | 34.09 |
Maps /wp-admin/admin.php?page=wp-google-maps-menu | 1,381 | 6.01 | 100.93 | 65.16 |
Settings /wp-admin/admin.php?page=wp-google-maps-menu-settings | 3,954 | 6.82 | 135.27 | 64.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 9 tables
- wp_wpgmza_image_overlays
- wp_wpgmza_polygon
- wp_wpgmza_circles
- wp_wpgmza_polylines
- wp_wpgmza
- wp_wpgmza_maps
- wp_wpgmza_admin_notices
- wp_wpgmza_point_labels
- wp_wpgmza_rectangles
- The uninstall procedure has failed, leaving 15 options in the database
- wpgmza_xml_location
- widget_wpgmza_map_widget
- wpgmza_welcome_screen_done
- widget_recent-posts
- widget_theysaidso_widget
- WPGMZA_OTHER_SETTINGS
- wpgmza-first-run
- theysaidso_admin_options
- can_compress_scripts
- wpgmza_global_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-google-maps/html/atlas-novus/admin-notice-persistent.html.php
- > /wp-content/plugins/wp-google-maps/html/admin-notice-persistent.html.php
- > /wp-content/plugins/wp-google-maps/html/maps-engine-dialog.html.php
- 64× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-google-maps/html/atlas-novus/map-edit-page/map-select-dialog.html.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPGMZA\\FeaturePanel' not found in wp-content/plugins/wp-google-maps/includes/map-edit-page/class.polyline-panel.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPGMZA\\Page' not found in wp-content/plugins/wp-google-maps/includes/class.installer-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-google-maps/html/atlas-novus/map-edit-page/rectangle-panel.html.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-google-maps/html/installer-page.html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-google-maps/html/map-edit-page/rectangle-panel.html.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPGMZA\\FeaturePanel' not found in wp-content/plugins/wp-google-maps/includes/map-edit-page/class.marker-panel.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-google-maps/html/atlas-novus/store-locator.html.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-google-maps/html/atlas-novus/styling-page.html.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-google-maps/html/atlas-novus/map-edit-page/heatmap-panel.html.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wp-google-maps/wpGoogleMaps.php 85% from 13 tests
This is the main PHP file of "WP Go Maps (formerly WP Google Maps)" version 9.0.27, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-google-maps.php" instead of "wpGoogleMaps.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
Success! There were no dangerous files found in this plugin264,417 lines of code in 447 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 34 | 72,139 | 160,703 | 173,917 |
JavaScript | 142 | 13,139 | 16,655 | 45,080 |
PHP | 163 | 6,800 | 3,657 | 28,915 |
CSS | 35 | 2,325 | 462 | 14,003 |
JSON | 70 | 126 | 0 | 2,202 |
Markdown | 2 | 76 | 0 | 186 |
JSX | 1 | 36 | 56 | 114 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 107 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 107 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 665 | |
▷ Static methods | 52 | 7.82% |
▷ Public methods | 498 | 74.89% |
▷ Protected methods | 145 | 21.80% |
▷ Private methods | 22 | 3.31% |
Functions | 165 | |
▷ Named functions | 141 | 85.45% |
▷ Anonymous functions | 24 | 14.55% |
Constants | 93 | |
▷ Global constants | 9 | 9.68% |
▷ Class constants | 84 | 90.32% |
▷ Public constants | 84 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
76 compressed PNG files occupy 1.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/red.png | 41.78KB | 44.20KB | 0.00% |
images/marker_iw_type_2.png | 1.66KB | 1.86KB | 0.00% |
images/monochrome.png | 24.77KB | 26.77KB | 0.00% |
images/icons8-google-maps-500.png | 15.39KB | 6.65KB | ▼ 56.79% |
images/unlimited-markers.png | 30.95KB | 33.28KB | 0.00% |