Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▼2.56ms] Passed 4 tests
Server-side resources used by 10Web Map Builder for Google Maps
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 43.87 ▲3.70 |
Dashboard /wp-admin | 4.11 ▲0.80 | 54.13 ▲7.18 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 53.13 ▲1.26 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 81.65 ▼19.56 |
Media Library /wp-admin/upload.php | 3.98 ▲0.74 | 38.66 ▲4.38 |
Maps /wp-admin/admin.php?page=maps_gmwd | 4.51 | 42.60 |
Uninstall /wp-admin/admin.php?page=uninstall_gmwd | 3.97 | 39.04 |
Options /wp-admin/admin.php?page=options_gmwd | 3.98 | 47.28 |
Marker Categories /wp-admin/admin.php?page=markercategories_gmwd | 3.94 | 40.26 |
Themes /wp-admin/admin.php?page=themes_gmwd | 3.95 | 40.80 |
Google Maps Add-ons /wp-admin/admin.php?page=gmwd_addons | 3.92 | 37.93 |
Server storage [IO: ▲5.39MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 262 new files
Database: 11 new tables, 9 new options
New tables |
---|
wp_gmwd_rectangles |
wp_gmwd_markers |
wp_gmwd_maps |
wp_gmwd_options |
wp_gmwd_markercategories |
wp_gmwd_polygons |
wp_gmwd_polylines |
wp_gmwd_mapstyles |
wp_gmwd_themes |
wp_gmwd_circles |
... |
New WordPress options |
---|
gmwd_admin_notice |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
gmwd_download_markers |
can_compress_scripts |
widget_gmwd_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 10Web Map Builder for Google Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,119 ▲384 | 16.93 ▲2.62 | 25.96 ▲24.03 | 40.03 ▼3.41 |
Dashboard /wp-admin | 2,408 ▲223 | 7.43 ▲2.38 | 155.61 ▲39.68 | 38.84 ▼5.30 |
Posts /wp-admin/edit.php | 2,322 ▲233 | 4.05 ▲1.99 | 73.70 ▲28.33 | 32.72 ▼2.22 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,728 | 26.62 ▲3.63 | 965.44 ▲350.39 | 40.31 ▼30.82 |
Media Library /wp-admin/upload.php | 1,458 ▲73 | 5.19 ▲1.03 | 103.40 ▲6.65 | 41.12 ▼3.88 |
Maps /wp-admin/admin.php?page=maps_gmwd | 1,435 | 3.85 | 74.97 | 158.16 |
Uninstall /wp-admin/admin.php?page=uninstall_gmwd | 1,231 | 3.75 | 64.04 | 61.03 |
Options /wp-admin/admin.php?page=options_gmwd | 2,254 | 7.65 | 160.16 | 151.22 |
Marker Categories /wp-admin/admin.php?page=markercategories_gmwd | 1,158 | 3.75 | 49.53 | 91.75 |
Themes /wp-admin/admin.php?page=themes_gmwd | 1,220 | 3.69 | 54.04 | 96.55 |
Google Maps Add-ons /wp-admin/admin.php?page=gmwd_addons | 1,045 | 3.60 | 49.71 | 73.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 11 tables in the database
- wp_gmwd_polylines
- wp_gmwd_themes
- wp_gmwd_shortcodes
- wp_gmwd_maps
- wp_gmwd_polygons
- wp_gmwd_options
- wp_gmwd_circles
- wp_gmwd_mapstyles
- wp_gmwd_rectangles
- wp_gmwd_markers
- ...
- The uninstall procedure has failed, leaving 9 options in the database
- gmwd_admin_notice
- theysaidso_admin_options
- gmwd_download_markers
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_gmwd_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GMWDModel' not found in wp-content/plugins/wd-google-maps/admin/models/GMWDModelUninstall_gmwd.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-google-maps/preview.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wd-google-maps/wd-google-maps.php:12
- > PHP Fatal error
Uncaught Error: Class 'GMWDModel' not found in wp-content/plugins/wd-google-maps/admin/models/GMWDModelMaps_gmwd.php:3
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/wd-google-maps/wd/templates/display_deactivation_popup.php on line 4
- > PHP Notice
Trying to get property 'wd_url_img' of non-object in wp-content/plugins/wd-google-maps/wd/templates/display_deactivation_popup.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'GMWDView' not found in wp-content/plugins/wd-google-maps/admin/views/GMWDViewShortcode_gmwd.php:3
- > PHP Fatal error
Uncaught Error: Class 'GMWDController' not found in wp-content/plugins/wd-google-maps/admin/controllers/GMWDControllerThemes_gmwd.php:3
- > PHP Fatal error
Uncaught Error: Class 'GMWDController' not found in wp-content/plugins/wd-google-maps/admin/controllers/GMWDControllerMaps_gmwd.php:3
- > PHP Fatal error
Uncaught Error: Class 'GMWDControllerFrontend' not found in wp-content/plugins/wd-google-maps/frontend/controllers/GMWDControllerFrontendMap.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=markercategories_gmwd
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&sensor=false&v=3.exp&key=AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI&ver=6.3.1 243: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"
- > GET request to /wp-admin/admin.php?page=uninstall_gmwd
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&sensor=false&v=3.exp&key=AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o&ver=6.3.1 243: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"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=themes_gmwd
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&sensor=false&v=3.exp&key=AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc&ver=6.3.1 243: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"
- > GET request to /wp-admin/admin.php?page=options_gmwd
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&sensor=false&v=3.exp&key=AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc&ver=6.3.1 161:248 "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started"
- > GET request to /wp-admin/admin.php?page=gmwd_addons
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places%2Cgeometry&sensor=false&v=3.exp&key=%09AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw&ver=6.3.1 243: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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #9 (10Web Google Maps - Google Maps Store locator), #10 (10Web Google Maps - Google Maps Polygons and Polylines)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wd-google-maps/wd-google-maps.php Passed 13 tests
The principal PHP file in "10Web Map Builder for Google Maps" v. 1.0.74 is loaded by WordPress automatically on each request
133 characters long description:
10Web Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin36,896 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 8,206 | 13,232 | 17,515 |
CSS | 15 | 208 | 28 | 9,008 |
PHP | 59 | 944 | 1,257 | 6,431 |
JavaScript | 18 | 608 | 448 | 3,812 |
Markdown | 1 | 20 | 0 | 93 |
SVG | 4 | 0 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 50 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 19 | 9.64% |
▷ Public methods | 159 | 80.71% |
▷ Protected methods | 15 | 7.61% |
▷ Private methods | 23 | 11.68% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.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
124 PNG files occupy 2.81MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/marker_clusters.png | 4.90KB | 2.51KB | ▼ 48.79% |
wd/assets/img/wds_main_plugin.png | 5.66KB | 3.74KB | ▼ 34.04% |
images/css/i-add-polygon.png | 0.75KB | 0.77KB | 0.00% |
images/css/add-new-blue.png | 0.52KB | 0.31KB | ▼ 40.60% |
images/css/rectangle-tab.png | 1.77KB | 1.63KB | ▼ 8.06% |