84% customize-wc-checkout

Code Review | Customize Checkout for WooCommerce

WordPress plugin Customize Checkout for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: customize-wc-chec...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2021
  • Latest release: May 10, 2023
  • Number of updates: 6
  • Update frequency: every 98.8 days
  • Top authors: manolomunoz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼12.34ms] Passed 4 tests

An overview of server-side resources used by Customize Checkout for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.16 ▼0.3121.46 ▼21.88
Dashboard /wp-admin3.60 ▲0.2550.95 ▼11.81
Posts /wp-admin/edit.php3.72 ▲0.3651.32 ▼6.82
Add New Post /wp-admin/post-new.php6.18 ▲0.2995.16 ▼8.85
Media Library /wp-admin/upload.php3.53 ▲0.2939.99 ▲2.49

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Customize Checkout for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,480 ▼26613.08 ▼1.280.76 ▼1.1818.09 ▼25.35
Dashboard /wp-admin2,233 ▲425.88 ▲1.01108.12 ▲1.8683.16 ▲36.18
Posts /wp-admin/edit.php2,119 ▲302.04 ▼0.0142.00 ▲4.7632.64 ▼7.46
Add New Post /wp-admin/post-new.php1,690 ▲16222.31 ▲3.82632.19 ▼4.0664.64 ▲0.82
Media Library /wp-admin/upload.php1,412 ▲274.17 ▼0.02102.76 ▼4.9271.32 ▲28.86

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/customize-wc-checkout/customize-wc-checkout.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

customize-wc-checkout/customize-wc-checkout.php 92% from 13 tests

Analyzing the main PHP file in "Customize Checkout for WooCommerce" version 1.0.3
It is important to fix the following:
  • 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
Good job! No executable or dangerous file extensions detected1,515 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP41853951,274
PO File18298196
JavaScript120844
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin