90% wpc-copy-billing-address

Code Review | WPC Copy Billing Address for WooCommerce

WordPress plugin WPC Copy Billing Address for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-copy-billing-...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2021
  • Latest release: Sep 3, 2023
  • Number of updates: 18
  • Update frequency: every 43.0 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,633 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.22ms] Passed 4 tests

An overview of server-side resources used by WPC Copy Billing Address for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.97 ▲6.86
Dashboard /wp-admin3.33 ▲0.0249.55 ▼3.66
Posts /wp-admin/edit.php3.44 ▲0.0852.51 ▼0.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.66 ▼11.34
Media Library /wp-admin/upload.php3.25 ▲0.0244.73 ▲7.94
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2133.31
About /wp-admin/admin.php?page=wpclever3.2130.63

Server storage [IO: ▲0.06MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC Copy Billing Address for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.37 ▲0.032.03 ▲0.3644.04 ▲2.81
Dashboard /wp-admin2,269 ▲925.61 ▲0.0485.69 ▼4.4383.36 ▲44.25
Posts /wp-admin/edit.php2,182 ▲821.99 ▲0.0138.89 ▲1.9036.04 ▲2.76
Add New Post /wp-admin/post-new.php1,754 ▲22622.47 ▼0.72738.28 ▲59.5967.79 ▲9.79
Media Library /wp-admin/upload.php1,480 ▲804.25 ▲0.06103.36 ▼5.7574.14 ▲26.92
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1335.8760.86
About /wp-admin/admin.php?page=wpclever1,3962.1433.5137.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 97% 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
Attributes that require attention: The official readme.txt might help

wpc-copy-billing-address/wpc-copy-billing-address.php Passed 13 tests

The entry point to "WPC Copy Billing Address for WooCommerce" version 1.1.4 is a PHP file that has certain tags in its header comment area
82 characters long description:
Help buyers copy the whole billing address to the shipping address with one click.

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
Success! There were no dangerous files found in this plugin1,134 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP48620614
CSS3746403
JavaScript313288
SVG10029

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin