Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.77ms] Passed 4 tests
A check of server-side resources used by Maps Plugin using Google Maps for WordPress - WP Google Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 44.29 ▲3.89 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.58 ▼3.52 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.60 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.47 ▼9.33 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.04 ▲6.47 |
All Maps /wp-admin/admin.php?page=wpgmapembed | 3.39 | 57.58 |
Add New /wp-admin/admin.php?page=wpgmapembed-new | 3.58 | 42.17 |
Settings /wp-admin/admin.php?page=wpgmapembed-settings | 3.43 | 45.69 |
Quick Setup /wp-admin/admin.php?page=wgm_setup_wizard | 3.40 | 39.37 |
Support /wp-admin/admin.php?page=wpgmapembed-support | 3.39 | 40.52 |
Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 732 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_wgm_markers |
wp_wgm_icons |
New WordPress options |
---|
db_upgraded |
gmap_embed_activation_time |
widget_recent-comments |
_wgm_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_srmgmap_widget |
widget_recent-posts |
can_compress_scripts |
_wgm_p_v_migration |
... |
Browser metrics Passed 4 tests
Maps Plugin using Google Maps for WordPress - WP Google Map: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲255 | 14.53 ▼0.03 | 17.69 ▲16.17 | 30.10 ▼14.06 |
Dashboard /wp-admin | 2,311 ▲134 | 5.57 ▼0.10 | 84.42 ▼11.08 | 80.18 ▲35.73 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 2.00 ▼0.03 | 33.51 ▼1.43 | 36.68 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,803 ▲277 | 22.90 ▼0.62 | 709.13 ▲29.39 | 39.75 ▼12.92 |
Media Library /wp-admin/upload.php | 1,510 ▲113 | 4.11 ▼0.08 | 105.29 ▲5.23 | 67.04 ▲21.14 |
All Maps /wp-admin/admin.php?page=wpgmapembed | 1,374 | 4.89 | 101.14 | 99.40 |
Add New /wp-admin/admin.php?page=wpgmapembed-new | 2,346 | 10.02 | 250.13 | 172.50 |
Settings /wp-admin/admin.php?page=wpgmapembed-settings | 2,751 | 3.37 | 40.87 | 70.55 |
Quick Setup /wp-admin/admin.php?page=wgm_setup_wizard | 2,586 | 3.28 | 40.83 | 65.89 |
Support /wp-admin/admin.php?page=wpgmapembed-support | 1,908 | 10.24 | 276.36 | 107.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_wgm_markers
- wp_wgm_icons
- This plugin does not fully uninstall, leaving 12 options in the database
- gmap_embed_activation_time
- widget_recent-comments
- _wgm_db_version
- widget_srmgmap_widget
- can_compress_scripts
- theysaidso_admin_options
- _wgm_migration_multiple_marker
- db_upgraded
- _wgm_p_v_migration
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _wgm_is_premium() in wp-content/plugins/gmap-embed/admin/includes/markers-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/gmap-embed/admin/includes/markers-icons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _wgm_is_premium() in wp-content/plugins/gmap-embed/admin/includes/map_theme_presets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/gmap-embed/admin/includes/wpgmap_setup_wizard.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpgmapembed-new
- > Console-api (severe) in unknown
https://maps.google.com/maps/api/js?key&libraries=places&language=en®ion=US&callback=Function.prototype&ver=6.3.1 153:248 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
- > GET request to /wp-admin/admin.php?page=wpgmapembed-new
- > Javascript (severe) in unknown
https://maps.google.com/maps-api-v3/api/js/54/10/controls.js 81:501 Uncaught TypeError: Cannot read properties of null (reading 'set')
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (WP Google Map menu in the left sidebar.) image not found
gmap-embed/srm_gmap_embed.php 85% from 13 tests
The primary PHP file in "Maps Plugin using Google Maps for WordPress - WP Google Map" version 1.9.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gmap-embed.php" instead of "srm_gmap_embed.php")
- Description: The description should be shorter than 140 characters (currently 252 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin17,720 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 39 | 344 | 433 | 3,795 |
JavaScript | 10 | 266 | 399 | 2,051 |
CSS | 7 | 171 | 40 | 1,138 |
PO File | 10 | 409 | 458 | 953 |
JSON | 1 | 0 | 0 | 237 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 15 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 1 | 1.35% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.05% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 5 | |
▷ Global constants | 5 | 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
635 PNG files occupy 0.81MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/markers/icons/star_pin_green.png | 2.37KB | 1.86KB | ▼ 21.70% |
admin/assets/images/markers/icons/speed50.png | 1.34KB | 0.94KB | ▼ 29.64% |
admin/assets/images/markers/icons/arch.png | 0.89KB | 0.60KB | ▼ 32.64% |
admin/assets/images/markers/icons/museum-naval.png | 0.91KB | 0.86KB | ▼ 4.74% |
admin/assets/images/markers/icons/police2.png | 0.92KB | 0.63KB | ▼ 30.78% |