Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.50MB] [CPU: ▼2.42ms] Passed 4 tests
Analyzing server-side resources used by Deposits & Partial Payments for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 39.39 ▲0.51 |
Dashboard /wp-admin | 3.88 ▲0.57 | 47.74 ▼6.75 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 49.77 ▲4.22 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 90.35 ▼6.66 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 35.09 ▲3.21 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Deposits & Partial Payments for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.16 ▼0.18 | 1.71 ▼0.11 | 43.13 ▼6.05 |
Dashboard /wp-admin | 2,192 ▲12 | 5.49 ▼0.12 | 86.18 ▼13.43 | 38.83 ▼4.61 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.00 | 33.57 ▼4.91 | 36.37 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▲0.05 | 601.11 ▼39.64 | 60.50 ▲10.21 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.09 | 101.43 ▲2.19 | 42.73 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/views/admin-root.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/deposits-partial-payments-for-woocommerce/start.php:26
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/deposits-partial-payments-for-woocommerce/includes/class-awcdp-order.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Donate link: Invalid URI ("")
deposits-partial-payments-for-woocommerce/start.php 92% from 13 tests
"Deposits & Partial Payments for WooCommerce" version 1.1.16's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("deposits-partial-payments-for-woocommerce.php" instead of "start.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,525 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,062 | 707 | 4,184 |
Sass | 1 | 8 | 0 | 123 |
JavaScript | 5 | 11 | 2 | 109 |
SVG | 7 | 0 | 0 | 91 |
XML | 1 | 0 | 0 | 12 |
CSS | 2 | 4 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 99.62 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 520.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 8 | 3.54% |
▷ Public methods | 203 | 89.82% |
▷ Protected methods | 22 | 9.73% |
▷ Private methods | 1 | 0.44% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 12 | |
▷ Global constants | 12 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.44KB | 0.38KB | ▼ 14.19% |
assets/images/loading_ui.png | 2.07KB | 1.67KB | ▼ 19.42% |
assets/images/logo.png | 4.10KB | 2.99KB | ▼ 26.97% |
assets/images/prite1.png | 2.76KB | 1.13KB | ▼ 59.25% |