77% quick-checkout-for-woocommerce

Code Review | Quick Checkout, Direct Checkout Button, Quick View for WooCommerce

WordPress plugin Quick Checkout, Direct Checkout Button, Quick View for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: quick-checkout-fo...
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Nov 9, 2023
  • Number of updates: 35
  • Update frequency: every 4.2 days
  • Top authors: noruzzaman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.10MB] [CPU: ▲14.42ms] Passed 4 tests

A check of server-side resources used by Quick Checkout, Direct Checkout Button, Quick View for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.60 ▲2.1360.24 ▲16.10
Dashboard /wp-admin5.40 ▲2.0959.92 ▲12.84
Posts /wp-admin/edit.php5.51 ▲2.1562.48 ▲19.26
Add New Post /wp-admin/post-new.php8.00 ▲2.11111.50 ▲12.42
Media Library /wp-admin/upload.php5.32 ▲2.0954.45 ▲16.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
qcfw-checkout
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Quick Checkout, Direct Checkout Button, Quick View for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲20813.39 ▼0.899.99 ▲8.1636.29 ▼9.47
Dashboard /wp-admin2,234 ▲645.55 ▼0.1289.01 ▼21.5841.67 ▼1.79
Posts /wp-admin/edit.php2,146 ▲462.03 ▲0.0942.21 ▲5.4837.05 ▲1.51
Add New Post /wp-admin/post-new.php1,555 ▲2923.56 ▲0.50606.52 ▼84.8152.40 ▼0.96
Media Library /wp-admin/upload.php1,442 ▲424.20 ▼0.0898.82 ▼10.1644.51 ▼2.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • qcfw-checkout
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quick-checkout-for-woocommerce/admin/partials/qcfw-checkout-admin-display.php
    • > /wp-content/plugins/quick-checkout-for-woocommerce/public/partials/qcfw-checkout-public-display.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Warning
      require_once(QCFW_CHECKOUT_PATHincludes/backend/class-qcfw-checkout-settings.php): failed to open stream: No such file or directory in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'QCFW_CHECKOUT_PATHincludes/backend/class-qcfw-checkout-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
    • > PHP Warning
      Use of undefined constant QCFW_CHECKOUT_PATH - assumed 'QCFW_CHECKOUT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
    • > PHP Warning
      require_once(wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #3, #4, #5, #6, #7, #8, #9 in quick-checkout-for-woocommerce/assets to your readme.txt
Please take inspiration from this readme.txt

quick-checkout-for-woocommerce/qcfw-checkout.php 77% from 13 tests

Analyzing the main PHP file in "Quick Checkout, Direct Checkout Button, Quick View for WooCommerce" version 1.4.3
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-checkout-for-woocommerce.php" instead of "qcfw-checkout.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin44,355 lines of code in 184 files:
LanguageFilesBlank linesComment linesLines of code
PHP1194,2703,04819,302
JavaScript101,3295196,718
PO File203,1983,5916,500
Sass1997836,139
CSS84125185,185
Markdown1820255
JSON300127
XML161195
YAML16032
SVG2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity24.17
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity5.53
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes84
▷ Abstract classes22.38%
▷ Concrete classes8297.62%
▷ Final classes00.00%
Methods431
▷ Static methods7116.47%
▷ Public methods38990.26%
▷ Protected methods61.39%
▷ Private methods368.35%
Functions33
▷ Named functions2987.88%
▷ Anonymous functions412.12%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
libs/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%