84% checkout-address-sugessions-for-woocommerce

Code Review | Checkout Address Suggestions for WooCommerce

WordPress plugin Checkout Address Suggestions for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: checkout-address-...
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Jun 19, 2019
  • Number of updates: 25
  • Update frequency: every 26.8 days
  • Top authors: rkc.zira (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

600+ active /10,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.41ms] Passed 4 tests

Analyzing server-side resources used by Checkout Address Suggestions for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0137.24 ▼7.01
Dashboard /wp-admin3.36 ▲0.0247.75 ▼3.03
Posts /wp-admin/edit.php3.47 ▲0.0850.23 ▲2.95
Add New Post /wp-admin/post-new.php5.94 ▲0.0182.74 ▼23.07
Media Library /wp-admin/upload.php3.28 ▲0.0136.98 ▼0.52

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Checkout Address Suggestions for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.082.19 ▲0.4942.65 ▼0.84
Dashboard /wp-admin2,201 ▲275.62 ▲0.0293.95 ▼6.3543.94 ▲0.76
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0640.60 ▲4.5936.36 ▲0.09
Add New Post /wp-admin/post-new.php1,532 ▲422.94 ▼0.12676.86 ▼4.0751.46 ▼12.60
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.0396.84 ▼10.3242.24 ▼6.93

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/checkout-address-sugessions-for-woocommerce/index.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/checkout-address-sugessions-for-woocommerce/lib/class.cas.woocommerce.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: suggession, woocommerce address autocomplete, checkout address autocomplete, address autocomplate, checkout address suggession...

checkout-address-sugessions-for-woocommerce/index.php 85% from 13 tests

The main file in "Checkout Address Suggestions for WooCommerce" v. 1.2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-address-sugessions-for-woocommerce.php" instead of "index.php")

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 plugin86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123185
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin