Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.07ms] Passed 4 tests
A check of server-side resources used by Map to Address
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 22.19 ▼18.20 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.15 ▼13.31 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.65 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.70 ▼9.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.32 ▲4.50 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Map to Address
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,479 ▼267 | 14.23 ▼0.33 | 0.51 ▼1.83 | 17.24 ▼24.51 |
Dashboard /wp-admin | 2,220 ▲40 | 5.63 ▼0.07 | 97.15 ▲5.28 | 42.41 ▲0.46 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.04 ▲0.09 | 39.16 ▼1.31 | 36.59 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.08 ▼0.12 | 654.59 ▼115.40 | 62.31 ▼0.01 |
Media Library /wp-admin/upload.php | 1,425 ▲31 | 4.23 ▲0.02 | 98.23 ▲1.33 | 43.95 ▲2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% 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 | 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 take a closer look at the following
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: fields in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Notice
Undefined variable: fields in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-common-fields.php:3
- > PHP Notice
Undefined variable: fields in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Notice
Undefined variable: fields in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-list-addresses.php:15
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/map-to-address/public/partials/woocommerce-delivery-location-customised-fields.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: woocommerce location picker, google map checkout, map to address
map-to-address/map-to-address.php Passed 13 tests
The principal PHP file in "Map to Address" v. 1.0.14 is loaded by WordPress automatically on each request
93 characters long description:
Customers can mark their location on google map and address will be automatically populated.
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
Everything looks great! No dangerous files found in this plugin2,428 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 278 | 915 | 1,142 |
CSS | 8 | 201 | 56 | 849 |
JavaScript | 4 | 77 | 31 | 419 |
Markdown | 1 | 7 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 36 | 69.23% |
▷ Protected methods | 8 | 15.38% |
▷ Private methods | 8 | 15.38% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/icons/tik.png | 4.66KB | 2.53KB | ▼ 45.68% |
public/img/icons/close.png | 1.40KB | 0.46KB | ▼ 67.32% |
public/img/icons/location-finder-grey.png | 2.32KB | 2.71KB | 0.00% |