Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲1.92ms] Passed 4 tests
Analyzing server-side resources used by Locations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.04 | 55.57 ▲16.38 |
Dashboard /wp-admin | 4.34 ▲1.04 | 63.01 ▲6.85 |
Posts /wp-admin/edit.php | 4.40 ▲1.05 | 67.35 ▲15.91 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 67.33 ▼31.47 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 59.88 ▲20.37 |
About Plugin /wp-admin/edit.php?post_type=location&page=gp_locations_aloha | 4.25 | 51.11 |
Help & Instructions /wp-admin/edit.php?post_type=location&page=locations-help | 4.23 | 48.86 |
Add New Location /wp-admin/post-new.php?post_type=location | 4.35 | 69.64 |
Settings /wp-admin/edit.php?post_type=location&page=locations-settings | 4.23 | 52.00 |
Upgrade To Pro /wp-admin/edit.php?post_type=location&page=locations-upgrade-to-pro | 4.23 | 49.04 |
Locations /wp-admin/edit.php?post_type=location | 4.31 | 53.07 |
Location Categories /wp-admin/edit-tags.php?taxonomy=location-categories&post_type=location | 4.26 | 47.38 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_storelocatorwidgetajax |
theysaidso_admin_options |
widget_locationslistwidget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_singlelocationwidget |
widget_theysaidso_widget |
widget_storelocatorwidget |
Browser metrics Passed 4 tests
Checking browser requirements for Locations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,034 ▲273 | 14.43 ▼0.29 | 26.03 ▲24.39 | 38.55 ▼3.65 |
Dashboard /wp-admin | 2,288 ▲107 | 5.12 ▼0.59 | 97.86 ▼5.05 | 46.39 ▲4.49 |
Posts /wp-admin/edit.php | 2,199 ▲99 | 2.56 ▲0.53 | 41.01 ▲2.15 | 35.26 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,641 ▲115 | 23.54 ▲0.34 | 667.56 ▼1.57 | 38.67 ▼15.01 |
Media Library /wp-admin/upload.php | 1,497 ▲94 | 4.65 ▲0.47 | 102.85 ▼3.76 | 49.44 ▲5.67 |
About Plugin /wp-admin/edit.php?post_type=location&page=gp_locations_aloha | 1,067 | 2.02 | 25.84 | 42.96 |
Help & Instructions /wp-admin/edit.php?post_type=location&page=locations-help | 930 | 2.50 | 37.35 | 34.33 |
Add New Location /wp-admin/post-new.php?post_type=location | 2,177 | 4.05 | 69.41 | 38.93 |
Settings /wp-admin/edit.php?post_type=location&page=locations-settings | 1,342 | 2.54 | 34.69 | 33.34 |
Upgrade To Pro /wp-admin/edit.php?post_type=location&page=locations-upgrade-to-pro | 1,119 | 2.24 | 28.66 | 57.95 |
Locations /wp-admin/edit.php?post_type=location | 1,359 | 2.37 | 32.28 | 31.52 |
Location Categories /wp-admin/edit-tags.php?taxonomy=location-categories&post_type=location | 1,364 | 2.29 | 28.29 | 28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_locationslistwidget
- widget_theysaidso_widget
- widget_storelocatorwidget
- widget_recent-posts
- widget_recent-comments
- widget_singlelocationwidget
- widget_storelocatorwidgetajax
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/locations/templates/google-maps-info-window.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/locations/widgets/single_location_widget.php:21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/locations/templates/single-location-content.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locations/blocks/single-location.php:50
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/locations/widgets/single_location_widget.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/locations/widgets/locations_list_widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locations/blocks/store-locator.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/locations/assets/content/welcome.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/locations/widgets/store_locator_widget.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/locations/widgets/store_locator_widget_ajax.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_post_thumbnail() in wp-content/plugins/locations/templates/single-location-content.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: store locator, business address map, business locations, maps, business maps...
locations/locations.php Passed 13 tests
The main PHP script in "Locations" version 4.0 is automatically included on every request by WordPress
109 characters long description:
Easily add a Store Locator to your website. List your business' locations and show a Google map for each one.
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
No dangerous file extensions were detected12,222 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 708 | 712 | 4,560 |
CSS | 18 | 288 | 91 | 4,323 |
JavaScript | 11 | 346 | 173 | 2,553 |
SVG | 1 | 0 | 0 | 685 |
HTML | 1 | 0 | 0 | 101 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.05 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 224 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 217 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.12% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.27MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/upgrade/import-export.png | 38.06KB | 15.12KB | ▼ 60.28% |
lib/GP_MegaSeptember/assets/img/lock.png | 1.28KB | 1.25KB | ▼ 2.52% |
lib/GP_MegaSeptember/assets/img/logo.png | 1.02KB | 0.92KB | ▼ 9.79% |
assets/img/upgrade/locations-directory-widget.png | 191.02KB | 84.60KB | ▼ 55.71% |
assets/img/lock.png | 1.28KB | 1.25KB | ▼ 2.52% |