Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.14ms] Passed 4 tests
A check of server-side resources used by Checkout Address Suggestion And Autocomplete For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.31 ▼0.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.66 ▼11.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.22 ▲5.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.55 ▼12.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.06 ▼0.19 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout Address Suggestion And Autocomplete For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.24 ▼1.14 | 2.15 ▲0.42 | 41.52 ▼1.85 |
Dashboard /wp-admin | 2,221 ▲18 | 5.77 ▲0.90 | 113.78 ▼4.88 | 43.25 ▼2.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.02 | 36.87 ▲0.68 | 35.14 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,544 ▼135 | 23.23 ▲0.98 | 664.53 ▼24.94 | 52.89 ▼7.59 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.01 | 104.27 ▼13.56 | 43.17 ▼4.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/index.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/checkout-address-suggestion-and-autocomplete-for-woocommerce/lib/main.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: google address, woocommerce, address autosuggestion, checkout address, checkout...
checkout-address-suggestion-and-autocomplete-for-woocommerce/index.php 92% from 13 tests
This is the main PHP file of "Checkout Address Suggestion And Autocomplete For Woocommerce" version 1.3, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-address-suggestion-and-autocomplete-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin385 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 40 | 5 | 352 |
PHP | 2 | 13 | 12 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected