84% woo-curlec-online-banking

Code Review | Woocommerce CurlecPay

WordPress plugin Woocommerce CurlecPay scored84%from 54 tests.

About plugin

  • Plugin page: woo-curlec-online...
  • Plugin version: 1.9.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-7.4.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2019
  • Latest release: Mar 22, 2023
  • Number of updates: 17
  • Update frequency: every 78.7 days
  • Top authors: subbu1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Woocommerce CurlecPay
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.60 ▼5.18
Dashboard /wp-admin3.31 ▲0.0143.81 ▼9.38
Posts /wp-admin/edit.php3.36 ▲0.0045.53 ▼1.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.13 ▼7.62
Media Library /wp-admin/upload.php3.23 ▲0.0036.69 ▲2.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce CurlecPay
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.171.96 ▲0.2941.92 ▼4.44
Dashboard /wp-admin2,206 ▲154.85 ▼1.05108.59 ▲3.7838.11 ▼3.88
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0935.72 ▼2.8334.17 ▼0.74
Add New Post /wp-admin/post-new.php1,519 ▼023.15 ▲0.15696.33 ▲70.8553.04 ▼8.88
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0393.60 ▼20.9341.77 ▼6.82

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

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-curlec-online-banking/woocommerce-curlec-online-banking.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-curlec-online-banking/class-woocommerce-curlec-online-banking.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce extension, payment option, curlec online banking payment gateway, woocommerce

woo-curlec-online-banking/woocommerce-curlec-online-banking.php 85% from 13 tests

Analyzing the main PHP file in "Woocommerce CurlecPay" version 1.9.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-curlec-online-banking.php" instead of "woocommerce-curlec-online-banking.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5.1" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin579 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24847480
CSS11099

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods17.14%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin