Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.89ms] Passed 4 tests
Server-side resources used by Google Map Locations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.12 ▼8.01 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.73 ▲1.24 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.42 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.59 ▼5.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.09 ▲1.39 |
Settings /wp-admin/admin.php?page=gml-settings | 3.24 | 29.56 |
Add New Location /wp-admin/admin.php?page=add-location | 3.28 | 30.61 |
Google Map Locations /wp-admin/admin.php?page=google-map-location | 3.29 | 29.47 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_gml_locations |
wp_gml_settings |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Map Locations
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.17 ▼1.20 | 5.66 ▲3.63 | 42.88 ▼5.86 |
Dashboard /wp-admin | 2,243 ▲55 | 4.86 ▼0.03 | 95.60 ▼18.54 | 66.60 ▲22.13 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.01 ▲0.02 | 36.78 ▲0.56 | 35.58 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.12 ▼0.23 | 712.34 ▲24.56 | 69.17 ▲15.00 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.13 ▼0.07 | 96.03 ▼9.47 | 82.78 ▲38.17 |
Settings /wp-admin/admin.php?page=gml-settings | 955 | 2.08 | 34.58 | 29.20 |
Add New Location /wp-admin/admin.php?page=add-location | 969 | 2.03 | 22.85 | 26.45 |
Google Map Locations /wp-admin/admin.php?page=google-map-location | 889 | 2.04 | 26.59 | 25.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_gml_settings
- wp_gml_locations
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/google-map-locations.php+219
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=google-map-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_location_list.php+49
Undefined index: trashed
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+48
Undefined index: name
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+54
Undefined index: address_one
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+61
Undefined index: address_two
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+68
Undefined index: postcode
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+74
Undefined index: phone
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+80
Undefined index: email
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+86
Undefined index: latitude
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+93
Undefined index: longitude
- > GET request to /wp-admin/admin.php?page=add-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_add_location.php+100
Undefined index: description
- > GET request to /wp-admin/admin.php?page=google-map-location
- > Notice in wp-content/plugins/google-map-locations/admin_views/gml_location_list.php+113
Undefined variable: cid
SRP 0% 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 return non-empty strings:
- > /wp-content/plugins/google-map-locations/admin_views/gml_edit_settings.php
- > /wp-content/plugins/google-map-locations/admin_views/gml_edit_location.php
- > /wp-content/plugins/google-map-locations/admin_views/gml_add_location.php
- > /wp-content/plugins/google-map-locations/admin_views/gml_location_list.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/google-map-locations/google-map-locations.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Tags: There are too many tags (23 tag instead of maximum 10)
google-map-locations/google-map-locations.php Passed 13 tests
The entry point to "Google Map Locations" version 1.0 is a PHP file that has certain tags in its header comment area
65 characters long description:
This plugin lets you add a google map with locations with bubble.
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
No dangerous file extensions were detected1,155 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 166 | 100 | 977 |
JavaScript | 2 | 34 | 3 | 174 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pointers/restaurents.png | 1.71KB | 1.51KB | ▼ 11.56% |
images/pointers/airport.png | 1.45KB | 0.55KB | ▼ 61.85% |
images/pointers/city.png | 1.49KB | 0.72KB | ▼ 51.93% |
images/pointers/shoppingmolls.png | 1.42KB | 1.30KB | ▼ 8.50% |
images/pointers/institutions.png | 1.51KB | 1.48KB | ▼ 1.68% |