Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.16ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway Based Fees and Discounts for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.13 ▼3.66 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.40 ▼2.77 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.78 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.04 ▼3.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.76 ▲0.43 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway Based Fees and Discounts for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.19 ▼0.06 | 1.59 ▼0.37 | 37.88 ▼0.15 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.07 | 88.67 ▼10.02 | 39.43 ▼5.19 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▼0.00 | 40.15 ▼0.91 | 39.95 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.56 ▲0.39 | 591.23 ▼72.76 | 50.53 ▲1.30 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.13 | 100.18 ▲3.01 | 42.66 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in checkout-fees-for-woocommerce/assets to your readme.txt
checkout-fees-for-woocommerce/checkout-fees-for-woocommerce.php Passed 13 tests
"Payment Gateway Based Fees and Discounts for WooCommerce" version 2.11.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Set payment gateways fees and discounts in WooCommerce.
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 detected4,646 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 436 | 1,354 | 4,281 |
JavaScript | 5 | 67 | 25 | 289 |
CSS | 1 | 9 | 5 | 48 |
XML | 1 | 3 | 0 | 26 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 38.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 1 | 6.25% |
Methods | 117 | |
▷ Static methods | 13 | 11.11% |
▷ Public methods | 117 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin