89% ep-woocommerce-checkout-address-autocomplete

Code Review | EP Woocommerce Checkout Address AutoComplete

WordPress plugin EP Woocommerce Checkout Address AutoComplete scored89%from 54 tests.

About plugin

  • Plugin page: ep-woocommerce-ch...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2019
  • Latest release: Jul 13, 2019
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: suvronur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /994 total downloads

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.00MB] [CPU: ▲0.97ms] Passed 4 tests

An overview of server-side resources used by EP Woocommerce Checkout Address AutoComplete
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.99 ▲3.60
Dashboard /wp-admin3.31 ▲0.0050.64 ▼1.70
Posts /wp-admin/edit.php3.36 ▲0.0049.40 ▲1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.07 ▲2.75
Media Library /wp-admin/upload.php3.23 ▲0.0036.93 ▲0.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for EP Woocommerce Checkout Address AutoComplete
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.59 ▲0.311.65 ▼0.3941.06 ▼6.00
Dashboard /wp-admin2,195 ▲185.65 ▼0.0893.68 ▼2.4942.40 ▲2.68
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0038.92 ▼1.7535.47 ▼0.53
Add New Post /wp-admin/post-new.php1,535 ▼018.17 ▼0.26617.15 ▲6.0569.46 ▼6.68
Media Library /wp-admin/upload.php1,403 ▲34.08 ▼0.25102.47 ▼8.2249.88 ▲6.96

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

ep-woocommerce-checkout-address-autocomplete/ep-address-autocomplete-woocommerce.php 85% from 13 tests

The main PHP file in "EP Woocommerce Checkout Address AutoComplete" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ep-woocommerce-checkout-address-autocomplete.php" instead of "ep-address-autocomplete-woocommerce.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,184 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8199274793
CSS2475345
JavaScript4384446

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity29.67
▷ Minimum class complexity4.00
▷ Maximum class complexity73.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin