84% billmate-checkout-for-woocommerce

Code Review | Qvickly Checkout for WooCommerce

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

About plugin

  • Plugin page: billmate-checkout...
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: May 4, 2023
  • Number of updates: 15
  • Update frequency: every 55.3 days
  • Top authors: Billmate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,569 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.02MB] [CPU: ▼5.64ms] Passed 4 tests

Analyzing server-side resources used by Qvickly Checkout for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.06 ▼10.16
Dashboard /wp-admin3.33 ▲0.0245.35 ▼10.83
Posts /wp-admin/edit.php3.38 ▲0.0245.68 ▲0.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.96 ▼1.60
Media Library /wp-admin/upload.php3.25 ▲0.0236.78 ▲3.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Qvickly Checkout for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.541.89 ▼0.4640.61 ▼1.27
Dashboard /wp-admin2,206 ▲185.89 ▼0.01107.35 ▲4.0042.45 ▼2.31
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0439.24 ▲1.1134.72 ▲0.84
Add New Post /wp-admin/post-new.php1,542 ▲718.32 ▼4.91604.94 ▲8.5149.02 ▼6.10
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0598.43 ▼0.1842.79 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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 everything seems fine, this is not an exhaustive test

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 fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/billmate-checkout-for-woocommerce/includes/bco-form-fields.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bco_show_iframe() in wp-content/plugins/billmate-checkout-for-woocommerce/templates/billmate-pay.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_print_notices() in wp-content/plugins/billmate-checkout-for-woocommerce/templates/billmate-checkout.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

billmate-checkout-for-woocommerce/billmate-checkout-for-woocommerce.php 92% from 13 tests

"Qvickly Checkout for WooCommerce" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,493 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP274491,3682,282
JavaScript2122228980
PO File17184216
CSS11015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.13
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods157
▷ Static methods8856.05%
▷ Public methods15699.36%
▷ Protected methods00.00%
▷ Private methods10.64%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/qvickly-logo.png7.97KB3.76KB▼ 52.76%
assets/images/bm_delbetalning_l.png5.29KB2.33KB▼ 55.93%