99% advanced-partial-payment-or-deposit-for-woocommerce

Code Review | Advanced - Deposit & Partial Payments for WooCommerce

WordPress plugin Advanced - Deposit & Partial Payments for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-partial-...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 5.9.2
  • First release: Oct 24, 2021
  • Latest release: Mar 15, 2022
  • Number of updates: 32
  • Update frequency: every 3.5 days
  • Top authors: magepeopleteam (100%)Otto42 (6.25%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 918 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Advanced - Deposit & Partial Payments for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0555.97 ▲5.73
Dashboard /wp-admin3.44 ▲0.0337.48 ▲3.78
Posts /wp-admin/edit.php3.66 ▲0.0237.65 ▲2.33
Add New Post /wp-admin/post-new.php6.91 ▼0.0699.74 ▼1,224.08
Media Library /wp-admin/upload.php3.31 ▲0.0126.17 ▼4.30
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins3.2822.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced - Deposit & Partial Payments for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.23 ▲0.206.29 ▲0.592.38 ▼0.22
Dashboard /wp-admin2,929 ▲686.03 ▼0.13115.42 ▼18.06168.48 ▲12.34
Posts /wp-admin/edit.php2,725 ▲313.25 ▲0.0262.31 ▲0.23157.65 ▲18.12
Add New Post /wp-admin/post-new.php1,782 ▲3022.27 ▲1.28417.59 ▼33.91158.67 ▼8.49
Media Library /wp-admin/upload.php1,731 ▲305.55 ▲0.02142.74 ▲7.03201.28 ▲12.86
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins1,0642.4154.92118.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can take inspiration from this readme.txt

advanced-partial-payment-or-deposit-for-woocommerce/advanced_partial_payment.php 92% from 13 tests

The primary PHP file in "Advanced - Deposit & Partial Payments for WooCommerce" version 2.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-partial-payment-or-deposit-for-woocommerce.php" instead of "advanced_partial_payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin8,149 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.94
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
▷ Static methods62.71%
▷ Public methods18382.81%
▷ Protected methods94.07%
▷ Private methods2913.12%
▷ Named functions77100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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.14MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/img/wcpp_pro_discount_ad.png144.20KB39.63KB▼ 72.52%