10% kadio-deposit-for-woocommerce

Code Review | Kadio Deposit for Woocommerce

WordPress plugin Kadio Deposit for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: kadio-deposit-for...
  • Plugin version: 2.0.0
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 19, 2022
  • Latest release: Oct 17, 2023
  • Number of updates: 15
  • Update frequency: every 30.4 days
  • Top authors: kadioconsulting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/kadio-deposit-for-woocommerce/includes/class-controller.php+118
    syntax error, unexpected '|', expecting ';' or '{'

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.09ms] Passed 4 tests

A check of server-side resources used by Kadio Deposit for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.48 ▲2.06
Dashboard /wp-admin3.31 ▼0.0450.36 ▼9.22
Posts /wp-admin/edit.php3.36 ▲0.0045.22 ▼3.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.91 ▼12.10
Media Library /wp-admin/upload.php3.23 ▲0.0031.48 ▼3.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kadio Deposit for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▲0.261.74 ▲0.1442.96 ▲3.26
Dashboard /wp-admin2,192 ▲155.52 ▼0.1584.40 ▼2.4743.73 ▲3.11
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0435.23 ▲0.0832.40 ▼4.70
Add New Post /wp-admin/post-new.php1,535 ▼218.35 ▲0.00628.94 ▲11.8568.29 ▲2.38
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.1396.33 ▲0.8341.60 ▲0.98

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Kadio_Base_Controller' not found in wp-content/plugins/kadio-deposit-for-woocommerce/includes/class-kadio-cart.php:4
    • > PHP Notice
      Undefined variable: deposit in wp-content/plugins/kadio-deposit-for-woocommerce/templates/deposit_display_data.php on line 3
    • > PHP Parse error
      syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/kadio-deposit-for-woocommerce/includes/class-controller.php on line 118
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kadio-deposit-for-woocommerce/templates/deposit_remaining_message_view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kadio-deposit-for-woocommerce/templates/deposit_amount_view.php:3
    • > PHP Notice
      Undefined variable: deposit in wp-content/plugins/kadio-deposit-for-woocommerce/templates/deposit_on_order_review.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kadio-deposit-for-woocommerce/templates/deposit_display_data.php:7
    • > PHP Notice
      Undefined variable: deposit in wp-content/plugins/kadio-deposit-for-woocommerce/templates/admin_order_deposit_data.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Kadio_Base_Controller' not found in wp-content/plugins/kadio-deposit-for-woocommerce/includes/class-kadio-deposit.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Kadio_Base_Controller' not found in wp-content/plugins/kadio-deposit-for-woocommerce/includes/class-kadio-payments.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% 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: Please take inspiration from this readme.txt

kadio-deposit-for-woocommerce/kadio-deposit-for-woocommerce.php Passed 13 tests

The primary PHP file in "Kadio Deposit for Woocommerce" version 2.0.0 is used by WordPress to initiate all plugin functionality
54 characters long description:
This plugin allows making woocommerce deposit payment.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,877 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP153713761,467
PO File2104110298
Markdown140081
JavaScript17531

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity25.00
▷ Minimum class complexity3.00
▷ Maximum class complexity56.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods5870.73%
▷ Protected methods910.98%
▷ Private methods1518.29%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin