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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.01MB] [CPU: ▼1.59ms] Passed 4 tests
Server-side resources used by WordPress Plugin for Google Maps - WP MAPS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 57.85 ▲16.02 |
Dashboard /wp-admin | 4.34 ▲0.99 | 50.24 ▼15.03 |
Posts /wp-admin/edit.php | 4.44 ▲1.09 | 51.64 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.03 | 101.98 ▲2.04 |
Media Library /wp-admin/upload.php | 4.25 ▲1.03 | 42.56 ▲4.76 |
Server storage [IO: ▲8.56MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 763 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_map_locations |
wp_group_map |
wp_create_map |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_wpgmp_google_map_widget_class |
widget_theysaidso_widget |
wpgmp_ignore_buy_pro |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Plugin for Google Maps - WP MAPS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲120 | 14.22 ▼0.19 | 1.78 ▼0.09 | 43.09 ▲0.93 |
Dashboard /wp-admin | 2,281 ▲101 | 5.53 ▼0.14 | 96.97 ▲1.48 | 86.73 ▲46.79 |
Posts /wp-admin/edit.php | 2,189 ▲89 | 1.98 ▲0.04 | 39.71 ▼0.65 | 34.88 ▼10.40 |
Add New Post /wp-admin/post-new.php | 1,600 ▲74 | 22.68 ▼0.40 | 682.58 ▲22.38 | 59.80 ▲5.72 |
Media Library /wp-admin/upload.php | 1,486 ▲86 | 4.16 ▼0.06 | 96.89 ▼0.42 | 73.01 ▲31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 3 tables
- wp_group_map
- wp_create_map
- wp_map_locations
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_wpgmp_google_map_widget_class
- wpgmp_ignore_buy_pro
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-google-map-plugin/modules/drawing/views/manage.php
- > /wp-content/plugins/wp-google-map-plugin/modules/route/views/manage.php
- > /wp-content/plugins/wp-google-map-plugin/modules/route/views/form.php
- > /wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php
- > /wp-content/plugins/wp-google-map-plugin/modules/tools/views/manage.php
- > /wp-content/plugins/wp-google-map-plugin/modules/permissions/views/manage.php
- 99× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_element() on null in wp-content/plugins/wp-google-map-plugin/modules/map/views/map-forms/map-style-setting-form.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPGMP_Template' not found in wp-content/plugins/wp-google-map-plugin/modules/overview/views/how.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function add_element() on null in wp-content/plugins/wp-google-map-plugin/modules/map/views/map-forms/additional-styling-form.php:8
- > PHP Warning
Use of undefined constant WPGMP_DIR - assumed 'WPGMP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-google-map-plugin/modules/permissions/views/manage.php on line 1
- > PHP Notice
Undefined variable: form in wp-content/plugins/wp-google-map-plugin/modules/map/views/map-forms/custom-control-form.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function add_element() on null in wp-content/plugins/wp-google-map-plugin/modules/map/views/map-forms/listing-setting-form.php:7
- > PHP Warning
include_once(WPGMP_DIRinc/modals/pro.php): failed to open stream: No such file or directory in wp-content/plugins/wp-google-map-plugin/modules/tools/views/manage.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function add_element() on null in wp-content/plugins/wp-google-map-plugin/modules/map/views/map-forms/url-filter.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPGMP_Model' not found in wp-content/plugins/wp-google-map-plugin/modules/group_map/views/form.php:9
- > PHP Warning
include_once(WPGMP_DIRinc/modals/pro.php): failed to open stream: No such file or directory in wp-content/plugins/wp-google-map-plugin/modules/drawing/views/manage.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wp-google-map-plugin/wp-google-map-plugin.php 92% from 13 tests
"WordPress Plugin for Google Maps - WP MAPS" version 4.5.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin61,208 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 5,734 | 9,729 | 24,783 |
PO File | 16 | 6,992 | 7,421 | 17,395 |
CSS | 18 | 879 | 627 | 11,446 |
PHP | 72 | 1,864 | 2,190 | 6,783 |
SVG | 2 | 0 | 0 | 700 |
HTML | 9 | 3 | 0 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 33.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 5.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 224 | |
▷ Static methods | 45 | 20.09% |
▷ Public methods | 215 | 95.98% |
▷ Protected methods | 6 | 2.68% |
▷ Private methods | 3 | 1.34% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
581 PNG files occupy 2.87MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/karate.png | 1.16KB | 0.89KB | ▼ 23.17% |
assets/images/icons/horseriding.png | 1.24KB | 0.99KB | ▼ 19.91% |
assets/images/icons/moderntower.png | 0.89KB | 0.61KB | ▼ 31.62% |
assets/images/icons/historicalquarter.png | 0.78KB | 0.74KB | ▼ 5.16% |
assets/images/icons/days-mar.png | 0.96KB | 0.68KB | ▼ 29.18% |