Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼9.54ms] Passed 4 tests
Analyzing server-side resources used by Deposit & Partial Payments for WooCommerce - WpDepositly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 43.15 ▲3.85 |
Dashboard /wp-admin | 3.59 ▲0.24 | 46.08 ▼20.18 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.78 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 81.32 ▼19.57 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.24 ▼0.30 |
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins | 3.52 | 33.42 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Deposit & Partial Payments for WooCommerce - WpDepositly
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.70 ▲0.58 | 1.77 ▲0.13 | 46.16 ▲2.13 |
Dashboard /wp-admin | 2,222 ▲42 | 5.65 ▼0.01 | 94.92 ▲1.10 | 43.05 ▲0.02 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.16 ▲0.18 | 36.13 ▲0.55 | 35.48 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.42 ▼0.24 | 650.43 ▼73.32 | 53.80 ▼7.91 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.23 ▲0.06 | 102.75 ▼9.34 | 43.35 ▼4.02 |
Install WCPP Plugins /wp-admin/plugins.php?page=wcpp-plugins | 821 | 2.04 | 41.59 | 32.36 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-partial-payment-or-deposit-for-woocommerce/inc/templates/email/partial_payment_customer_template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-partial-payment-or-deposit-for-woocommerce/inc/templates/email/partial_payment_template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these 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 main PHP file in "Deposit & Partial Payments for WooCommerce - WpDepositly" ver. 2.2.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,704 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,423 | 1,336 | 7,374 |
CSS | 3 | 151 | 19 | 980 |
JavaScript | 4 | 113 | 120 | 818 |
PO File | 1 | 215 | 238 | 532 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 38.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 6 | 2.62% |
▷ Public methods | 190 | 82.97% |
▷ Protected methods | 10 | 4.37% |
▷ Private methods | 29 | 12.66% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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% |