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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.03MB] [CPU: ▼143.07ms] Passed 4 tests
A check of server-side resources used by Discounts Per Payment Method for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.68 ▼0.16 | 24.41 ▼11.57 |
Dashboard /wp-admin | 3.08 ▲0.02 | 41.35 ▼6.07 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.47 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 92.47 ▼551.94 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 30.36 ▼2.70 |
Discounts Per Payment Method for WooCommerce /wp-admin/index.php?page=wpd-about | 2.99 | 27.49 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woo_payment_discounts |
Browser metrics Passed 4 tests
Checking browser requirements for Discounts Per Payment Method for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,255 ▼341 | 16.16 ▲0.44 | 0.47 ▼8.98 | 11.83 ▼38.19 |
Dashboard /wp-admin | 2,975 ▲84 | 6.13 ▲0.30 | 136.40 ▼7.04 | 108.12 ▼5.00 |
Posts /wp-admin/edit.php | 2,738 ▼1 | 2.72 ▼0.13 | 69.85 ▲2.22 | 96.06 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,606 ▼66 | 18.49 ▼0.40 | 355.53 ▼30.92 | 105.42 ▼2.65 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.04 ▲0.02 | 142.56 ▼19.46 | 116.16 ▼3.11 |
Discounts Per Payment Method for WooCommerce /wp-admin/index.php?page=wpd-about | 1,326 | 2.05 | 53.27 | 94.56 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- woo_payment_discounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
woo-payment-discounts/woo-payment-discounts.php Passed 13 tests
This is the main PHP file of "Discounts Per Payment Method for WooCommerce" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Setup discounts for specific payment methods is selected on checkout.
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
Everything looks great! No dangerous files found in this plugin346 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 82 | 121 | 310 |
CSS | 1 | 1 | 0 | 28 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 4 | 19.05% |
▷ Private methods | 1 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin