Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 55.97 ▲5.73 |
Dashboard /wp-admin | 3.44 ▲0.03 | 37.48 ▲3.78 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.65 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 99.74 ▼1,224.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 26.17 ▼4.30 |
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins | 3.28 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.23 ▲0.20 | 6.29 ▲0.59 | 2.38 ▼0.22 |
Dashboard /wp-admin | 2,929 ▲68 | 6.03 ▼0.13 | 115.42 ▼18.06 | 168.48 ▲12.34 |
Posts /wp-admin/edit.php | 2,725 ▲31 | 3.25 ▲0.02 | 62.31 ▲0.23 | 157.65 ▲18.12 |
Add New Post /wp-admin/post-new.php | 1,782 ▲30 | 22.27 ▲1.28 | 417.59 ▼33.91 | 158.67 ▼8.49 |
Media Library /wp-admin/upload.php | 1,731 ▲30 | 5.55 ▲0.02 | 142.74 ▲7.03 | 201.28 ▲12.86 |
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins | 1,064 | 2.41 | 54.92 | 118.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
Optimizations
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:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in advanced-partial-payment-or-deposit-for-woocommerce/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,277 | 1,275 | 6,570 |
CSS | 3 | 149 | 15 | 906 |
JavaScript | 4 | 88 | 79 | 673 |
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 code | 0.42 |
Average class complexity | 34.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 221 | |
▷ Static methods | 6 | 2.71% |
▷ Public methods | 183 | 82.81% |
▷ Protected methods | 9 | 4.07% |
▷ Private methods | 29 | 13.12% |
Functions | 77 | |
▷ Named functions | 77 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/checklist_icon.png | 0.49KB | 0.50KB | 0.00% |
asset/img/wcpp_pro_discount_ad.png | 144.20KB | 39.63KB | ▼ 72.52% |