Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; gwebproStoreLocator has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼54.18ms] Passed 4 tests
Analyzing server-side resources used by Gwebpro Store Locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 5.56 ▼36.87 |
Dashboard /wp-admin | 2.26 ▼1.04 | 6.20 ▼42.68 |
Posts /wp-admin/edit.php | 2.26 ▼1.09 | 12.53 ▼39.74 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 8.68 ▼97.41 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 6.10 ▼31.91 |
Store Locator /wp-admin/edit.php?post_type=store | 2.26 | 5.84 |
Store Category /wp-admin/edit-tags.php?taxonomy=store_category&post_type=store | 2.26 | 6.67 |
Add Store /wp-admin/post-new.php?post_type=store | 2.26 | 5.79 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Gwebpro Store Locator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲219 | 14.56 ▲0.16 | 28.46 ▲26.76 | 37.34 ▼8.46 |
Dashboard /wp-admin | 2,273 ▲67 | 4.93 ▼0.94 | 106.85 ▲3.79 | 61.95 ▲18.01 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.02 ▼0.04 | 41.59 ▲1.25 | 36.61 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,722 ▲191 | 22.77 ▼0.40 | 665.30 ▲60.58 | 53.93 ▲4.72 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.23 ▲0.02 | 95.79 ▼6.98 | 78.77 ▲33.48 |
Store Locator /wp-admin/edit.php?post_type=store | 1,130 | 1.96 | 34.21 | 30.39 |
Store Category /wp-admin/edit-tags.php?taxonomy=store_category&post_type=store | 1,323 | 2.15 | 26.75 | 32.17 |
Add Store /wp-admin/post-new.php?post_type=store | 2,504 | 9.37 | 228.83 | 62.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; gwebproStoreLocator has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=store
- > Deprecated in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; gwebproStoreLocator has a deprecated constructor
- > GET request to /wp-admin/edit-tags.php?taxonomy=store_category&post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+232
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: list-address1
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: list-city
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: list-postcode
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: addi-website
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: addi-mobile
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: addi-phone
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: addi-fax
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: addi-email
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: list-lat
- > GET request to /wp-admin/post-new.php?post_type=store
- > Notice in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php+118
Undefined index: list-long
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_queryvar() on null in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator-frontend.php:2
- > PHP Notice
Undefined variable: store in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator-frontend.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gwebpro-store-locator/gwebpro-store-locator.php:575
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=store
- > Javascript (warning) in unknown
/wp-content/plugins/gwebpro-store-locator/js/storeAdmin.js?ver=6.3.1 47 A parser-blocking, cross site (i.e. different eTLD+1) script, http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
- > GET request to /wp-admin/post-new.php?post_type=store
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false 235: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 94% 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 to be fixed:
- Tags: You are using too many tags: 41 tag instead of maximum 10
gwebpro-store-locator/gwebpro-store-locator.php 92% from 13 tests
The entry point to "Gwebpro Store Locator" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,305 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 36 | 717 |
JavaScript | 2 | 172 | 227 | 487 |
CSS | 2 | 11 | 3 | 101 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.80MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/top_arrow.png | 1.06KB | 0.18KB | ▼ 82.66% |
images/me_map - Copy.png | 1.72KB | 0.92KB | ▼ 46.19% |
images/close_button.png | 2.81KB | 1.93KB | ▼ 31.38% |
assets/screenshot 1 - Gwebpro Storlocator Map search.png | 401.42KB | 161.27KB | ▼ 59.82% |
assets/screenshot 3 - Gwebpro Storlocator store lists.png | 55.99KB | 27.52KB | ▼ 50.85% |