Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests
Analyzing server-side resources used by Discounts Per Payment Method on WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.84 ▼3.14 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.91 ▼2.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.92 ▼4.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.82 ▲2.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.73 ▼5.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
woocommerce_payment_discounts_version |
woocommerce_payment_discounts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Discounts Per Payment Method on WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲63 | 14.47 ▲0.09 | 1.84 ▼0.12 | 40.29 ▼3.88 |
Dashboard /wp-admin | 2,218 ▲33 | 4.84 ▼1.03 | 109.46 ▲0.21 | 40.54 ▼3.64 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.02 ▲0.05 | 38.72 ▲0.81 | 34.09 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 17.84 ▲0.16 | 682.33 ▼0.99 | 74.58 ▲18.07 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.30 ▲0.14 | 99.49 ▲5.38 | 43.21 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
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
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce, coupon, discount
woocommerce-payment-discounts/woocommerce-payment-discounts.php 92% from 13 tests
Analyzing the main PHP file in "Discounts Per Payment Method on WooCommerce" version 3.1.0
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin302 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 89 | 227 | 293 |
JavaScript | 2 | 1 | 3 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 7 | 28.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 6 | 24.00% |
▷ Private methods | 2 | 8.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin