83% cashflows-payments-by-ideal-checkout

Code Review | Cashflows for WooCommerce

WordPress plugin Cashflows for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: cashflows-payment...
  • Plugin version: 2.1.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2021
  • Latest release: Nov 30, 2023
  • Number of updates: 22
  • Update frequency: every 38.6 days
  • Top authors: cashflowsgateway2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.26ms] Passed 4 tests

Analyzing server-side resources used by Cashflows for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.46 ▼8.07
Dashboard /wp-admin3.32 ▲0.0245.92 ▼4.98
Posts /wp-admin/edit.php3.38 ▲0.0247.63 ▲0.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.62 ▼0.54
Media Library /wp-admin/upload.php3.25 ▲0.0238.03 ▲7.88

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Cashflows for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.15 ▼0.191.78 ▲0.1045.16 ▲1.02
Dashboard /wp-admin2,198 ▲235.60 ▼0.1190.36 ▼21.5942.98 ▼5.18
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0739.89 ▲2.6038.37 ▲3.45
Add New Post /wp-admin/post-new.php1,529 ▲323.55 ▲0.91670.52 ▲74.6155.15 ▲4.90
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.03103.34 ▲7.8946.95 ▲6.31

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'iccf_abstract' not found in wp-content/plugins/cashflows-payments-by-ideal-checkout/gateways/cashflows/cards.inc.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iccf_abstract' not found in wp-content/plugins/cashflows-payments-by-ideal-checkout/gateways/cashflows/paypal.inc.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cashflows-payments-by-ideal-checkout/gateways/cashflows/abstract.inc.php: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 83% 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: creditcard, cashflows, woocommerce, payment

cashflows-payments-by-ideal-checkout/ic-cashflows-for-woo.php 62% from 13 tests

"Cashflows for WooCommerce" version 2.1.8'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:
  • Main file name: Name the main plugin file the same as the plugin slug ("cashflows-payments-by-ideal-checkout.php" instead of "ic-cashflows-for-woo.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.8.0" instead of "5.8")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path should be prefixed with a forward slash character ("//")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")

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
No dangerous file extensions were detected1,544 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10329881,404
PO File14651140

PHP code Passed 2 tests

An overview of 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.37
Average class complexity27.83
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods83
▷ Static methods2226.51%
▷ Public methods8096.39%
▷ Protected methods00.00%
▷ Private methods33.61%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin