83% helcim-commerce-for-woocommerce

Code Review | Helcim Commerce for WooCommerce

WordPress plugin Helcim Commerce for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: helcim-commerce-f...
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 42
  • Update frequency: every 55.8 days
  • Top authors: Helcim (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active / 8,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼15.83ms] Passed 4 tests

Server-side resources used by Helcim Commerce for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.75 ▼7.76
Dashboard /wp-admin3.31 ▲0.0044.99 ▼22.36
Posts /wp-admin/edit.php3.36 ▲0.0046.72 ▼9.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.64 ▼23.30
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▲0.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Helcim Commerce for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.59 ▼0.781.58 ▼1.2143.53 ▼21.16
Dashboard /wp-admin2,206 ▲185.86 ▼0.02104.59 ▼15.4640.42 ▼5.10
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0438.67 ▼1.7635.20 ▼2.80
Add New Post /wp-admin/post-new.php1,514 ▼2817.67 ▼0.81670.17 ▲71.6055.00 ▲11.01
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0396.48 ▼8.7343.86 ▲1.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/helcim-commerce-for-woocommerce/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 29 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Helcim Commerce for WooCommerce - Payment gateway list page) image not found
Please take inspiration from this readme.txt

helcim-commerce-for-woocommerce/index.php 92% from 13 tests

The principal PHP file in "Helcim Commerce for WooCommerce" v. 4.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("helcim-commerce-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,179 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9163961,826
JavaScript12172353

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.00
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods100
▷ Static methods1414.00%
▷ Public methods8787.00%
▷ Protected methods00.00%
▷ Private methods1313.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants753.85%

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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/helcim_checkout_logo.png6.45KB3.06KB▼ 52.48%