Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.62ms] Passed 4 tests
A check of server-side resources used by SOFT79 Pricing Rules for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 45.65 ▲5.12 |
Dashboard /wp-admin | 3.66 ▲0.35 | 50.81 ▼2.09 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 51.03 ▼0.85 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 96.94 ▼8.67 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 44.66 ▲8.90 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SOFT79 Pricing Rules for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.36 | 1.65 ▼0.03 | 40.45 ▲1.60 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.02 | 101.46 ▲12.31 | 42.74 ▲2.21 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.01 | 38.59 ▲0.09 | 29.29 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.32 ▲0.34 | 689.45 ▲14.78 | 57.29 ▲9.71 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.01 | 105.12 ▼3.56 | 42.03 ▼5.17 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SOFT79_Rule' not found in wp-content/plugins/soft79-wc-pricing-rules/includes/soft79-bulk-rule.php:3
- > PHP Warning
include(soft-wc-pricing-rules.php): failed to open stream: No such file or directory in wp-content/plugins/soft79-wc-pricing-rules/soft79-wc-pricing-rules-pro.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'SOFT79_Rule_Controller' not found in wp-content/plugins/soft79-wc-pricing-rules/includes/soft79-rule-controller-pro.php:4
- > PHP Notice
Undefined variable: show_table in wp-content/plugins/soft79-wc-pricing-rules/templates/single-product/bulk-rule.php on line 10
- > PHP Notice
Undefined variable: show_description in wp-content/plugins/soft79-wc-pricing-rules/templates/single-product/bulk-rule.php on line 10
- > PHP Warning
include(): Failed opening 'soft-wc-pricing-rules.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/soft79-wc-pricing-rules/soft79-wc-pricing-rules-pro.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce, discount, pricing
soft79-wc-pricing-rules/soft79-wc-pricing-rules.php 92% from 13 tests
"SOFT79 Pricing Rules for WooCommerce" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,202 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 404 | 404 | 1,572 |
PO File | 3 | 220 | 270 | 577 |
CSS | 2 | 7 | 1 | 19 |
JavaScript | 2 | 2 | 3 | 15 |
XML | 1 | 0 | 0 | 11 |
JSON | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 3 | 33.33% |
Methods | 120 | |
▷ Static methods | 29 | 24.17% |
▷ Public methods | 107 | 89.17% |
▷ Protected methods | 4 | 3.33% |
▷ Private methods | 9 | 7.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected