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: ▲1.75MB] [CPU: ▲10.36ms] Passed 4 tests
A check of server-side resources used by Deposits & Partial Payments for WooCommerce - Bayna
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.21 ▲1.75 | 49.48 ▲12.71 |
Dashboard /wp-admin | 5.04 ▲1.74 | 57.12 ▲10.10 |
Posts /wp-admin/edit.php | 5.16 ▲1.80 | 65.84 ▲20.74 |
Add New Post /wp-admin/post-new.php | 7.64 ▲1.76 | 104.20 ▲0.83 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 49.56 ▲17.78 |
Server storage [IO: ▲1.88MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ci_woo_deposits_installed |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Deposits & Partial Payments for WooCommerce - Bayna
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.77 ▲0.01 | 1.58 ▼0.13 | 39.16 ▼0.05 |
Dashboard /wp-admin | 2,228 ▲37 | 4.90 ▼0.16 | 112.24 ▲12.28 | 42.06 ▼1.93 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.04 ▲0.04 | 41.98 ▲7.46 | 37.02 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.18 ▼0.30 | 604.57 ▼37.00 | 62.23 ▲10.86 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.27 ▲0.07 | 99.55 ▲1.33 | 42.46 ▲1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- ci_woo_deposits_installed
- widget_recent-posts
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 | 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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/deposits-for-woocommerce/src/Emails/DepositOrder.php:20
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/deposits-for-woocommerce/src/Emails/FullPaid.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/deposits-for-woocommerce/src/Emails/NewDeposit.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deposits-for-woocommerce/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deposits-for-woocommerce/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Background_Process' not found in wp-content/plugins/deposits-for-woocommerce/src/Modules/UpdateDB.php:9
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: partial, payment, deposit, woocommerce, woocommerce deposits...
deposits-for-woocommerce/deposits-for-woocommerce.php 92% from 13 tests
The principal PHP file in "Deposits & Partial Payments for WooCommerce - Bayna" v. 1.2.11 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected42,001 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 4,890 | 4,309 | 20,769 |
CSS | 9 | 649 | 577 | 8,085 |
JavaScript | 9 | 1,336 | 510 | 6,643 |
Sass | 17 | 973 | 3 | 6,089 |
JSON | 6 | 2 | 0 | 285 |
XML | 2 | 6 | 11 | 116 |
SVG | 3 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 2 | 2.20% |
▷ Concrete classes | 89 | 97.80% |
▷ Final classes | 2 | 2.25% |
Methods | 609 | |
▷ Static methods | 75 | 12.32% |
▷ Public methods | 549 | 90.15% |
▷ Protected methods | 23 | 3.78% |
▷ Private methods | 37 | 6.08% |
Functions | 45 | |
▷ Named functions | 36 | 80.00% |
▷ Anonymous functions | 9 | 20.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/004.png | 0.31KB | 0.25KB | ▼ 21.74% |