Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/geo-my-wp/geo-my-wp.php+417
Trying to access array offset on value of type bool
Server metrics [RAM: ▲4.22MB] [CPU: ▲24.61ms] 75% from 4 tests
An overview of server-side resources used by GEO my Wordpress
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 675.54ms on /wp-admin/admin.php?page=gmw-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.62 ▲3.15 | 60.39 ▲15.89 |
Dashboard /wp-admin | 7.92 ▲4.57 | 113.05 ▲49.72 |
Posts /wp-admin/edit.php | 7.94 ▲4.58 | 72.98 ▲25.37 |
Add New Post /wp-admin/post-new.php | 10.51 ▲4.63 | 119.99 ▲20.41 |
Media Library /wp-admin/upload.php | 7.81 ▲4.58 | 70.85 ▲36.78 |
Tools /wp-admin/admin.php?page=gmw-tools | 8.24 | 66.95 |
Forms /wp-admin/admin.php?page=gmw-forms | 7.81 | 64.12 |
Settings /wp-admin/admin.php?page=gmw-settings | 7.82 | 68.74 |
Extensions & Licenses /wp-admin/admin.php?page=gmw-extensions | 7.90 | 675.54 |
Import / Export /wp-admin/admin.php?page=gmw-import-export | 8.12 | 63.03 |
Server storage [IO: ▲9.42MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 412 new files
Database: 3 new tables, 18 new options
New tables |
---|
wp_gmw_locationmeta |
wp_gmw_forms |
wp_gmw_locations |
New WordPress options |
---|
widget_geo_my_wp_current_location_widget |
widget_recent-posts |
widget_gmw_search_form_widget |
gmw_extensions_updater |
gmw_license_data |
gmw_options |
can_compress_scripts |
widget_gmw_single_location_widget |
gmw_addons_version |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for GEO my Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲145 | 14.71 ▲0.24 | 1.61 ▼0.10 | 40.99 ▼2.48 |
Dashboard /wp-admin | 2,309 ▲131 | 5.58 ▼0.10 | 95.53 ▼18.81 | 86.23 ▲40.41 |
Posts /wp-admin/edit.php | 2,213 ▲113 | 1.96 ▼0.05 | 37.89 ▲0.56 | 29.78 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,518 ▼17 | 17.90 ▼7.40 | 754.81 ▲47.67 | 51.83 ▼12.04 |
Media Library /wp-admin/upload.php | 1,530 ▲133 | 4.18 ▲0.03 | 99.71 ▼34.07 | 78.88 ▲23.95 |
Tools /wp-admin/admin.php?page=gmw-tools | 1,084 | 2.02 | 44.92 | 64.63 |
Forms /wp-admin/admin.php?page=gmw-forms | 1,316 | 2.39 | 48.88 | 48.65 |
Settings /wp-admin/admin.php?page=gmw-settings | 2,929 | 2.82 | 67.73 | 81.25 |
Extensions & Licenses /wp-admin/admin.php?page=gmw-extensions | 2,952 | 2.42 | 47.08 | 80.53 |
Import / Export /wp-admin/admin.php?page=gmw-import-export | 1,202 | 2.42 | 46.49 | 53.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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 3 tables in the database
- wp_gmw_locations
- wp_gmw_locationmeta
- wp_gmw_forms
- This plugin did not uninstall successfully, leaving 18 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- gmw_addons_status
- gmw_addons_data
- gmw_options
- gmw_forms_table_updated
- gmw_license_data
- gmw_db_version
- can_compress_scripts
- gmw_extensions_updater
- ...
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 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
- 128× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: address_ph in wp-content/plugins/geo-my-wp/plugins/bp-profile-search-geolocation/templates/bps-fields/members/bps-form-sweetdate-horizontal.php on line 54
- > PHP Fatal error
Uncaught Error: Call to undefined function gmw_form_class() in wp-content/plugins/geo-my-wp/plugins/members-locator/templates/search-results/responsive-2/content.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/geo-my-wp/plugins/posts-locator/templates/search-results/responsive-1/no-results.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function gmw_form_class() in wp-content/plugins/geo-my-wp/plugins/posts-locator/templates/search-results/responsive-3/content.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/geo-my-wp/plugins/posts-locator/templates/search-results/responsive-3/results.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/geo-my-wp/includes/location-form/templates/form-fields/hidden-field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/geo-my-wp/plugins/members-locator/templates/info-window/popup/right-white/content.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/geo-my-wp/plugins/members-locator/templates/info-window/popup/slide-left/content.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_nouveau_member_hook() in wp-content/plugins/geo-my-wp/plugins/members-locator/templates/search-results/buddyboss/single-result.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/geo-my-wp/includes/location-form/templates/form-fields/loader-field.php:1
- > PHP Notice
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=gmw-tools
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=gmw-tools 17:4 Uncaught ReferenceError: jQuery is not defined
- > GET request to /wp-admin/admin.php?page=gmw-extensions
- > Network (severe)
https://geomywp.com/wp-content/uploads/extensions-images/icons/bp_xprofile_geolocation_icon.svg?v=11 - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=gmw-extensions
- > Network (severe)
https://geomywp.com/wp-content/uploads/extensions-images/icons/gmw_kleo_geolocation_icon.svg?v=11 - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
geo-my-wp/geo-my-wp.php 92% from 13 tests
This is the main PHP file of "GEO my Wordpress" version 4.1, 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 237 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin110,070 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 47 | 14,302 | 16,366 | 47,846 |
PHP | 223 | 13,348 | 20,909 | 37,031 |
CSS | 60 | 2,632 | 2,527 | 13,769 |
PO File | 4 | 5,424 | 12,145 | 10,387 |
JSON | 1 | 0 | 0 | 740 |
Markdown | 1 | 56 | 0 | 173 |
SVG | 2 | 109 | 0 | 124 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 35.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 106 | |
▷ Abstract classes | 1 | 0.94% |
▷ Concrete classes | 105 | 99.06% |
▷ Final classes | 0 | 0.00% |
Methods | 849 | |
▷ Static methods | 188 | 22.14% |
▷ Public methods | 779 | 91.76% |
▷ Protected methods | 45 | 5.30% |
▷ Private methods | 25 | 2.94% |
Functions | 459 | |
▷ Named functions | 459 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 16 | 50.00% |
▷ Class constants | 16 | 50.00% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/markerclusters/m5.png | 6.68KB | 5.10KB | ▼ 23.66% |
assets/lib/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/images/spotlight-hdpi.png | 1.60KB | 1.70KB | 0.00% |
assets/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |