Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-dynamic-pricing-and-discounts/azh_woo_discounts.php+479
Undefined variable: context
Server metrics [RAM: ▼1.18MB] [CPU: ▼186.35ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Discounts and Dynamic Pricing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼0.38 | 6.64 ▼26.44 |
Dashboard /wp-admin | 2.47 ▼0.58 | 6.94 ▼40.13 |
Posts /wp-admin/edit.php | 2.47 ▼0.63 | 6.73 ▼36.79 |
Add New Post /wp-admin/post-new.php | 2.47 ▼2.96 | 6.74 ▼638.72 |
Media Library /wp-admin/upload.php | 2.47 ▼0.53 | 6.60 ▼29.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Discounts and Dynamic Pricing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.33 ▲0.77 | 11.21 ▲0.55 | 45.83 ▼1.43 |
Dashboard /wp-admin | 2,993 ▲62 | 5.92 ▼0.02 | 139.04 ▲0.20 | 106.46 ▲1.70 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.73 ▲0.02 | 67.25 ▲1.97 | 92.03 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,881 ▼1,845 | 19.14 ▲3.95 | 385.68 ▼38.39 | 107.80 ▼2.82 |
Media Library /wp-admin/upload.php | 1,827 ▲76 | 5.03 ▲0.05 | 152.50 ▼4.64 | 111.71 ▼7.79 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-dynamic-pricing-and-discounts/azh_woo_discounts.php+479
Undefined variable: context
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-dynamic-pricing-and-discounts/azh_woo_discounts.php:12
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
8 plugin tags: discounts, dynamic pricing, bulk pricing, tiered pricing, product pricing...
woo-dynamic-pricing-and-discounts/azh_woo_discounts.php 85% from 13 tests
The entry point to "WooCommerce Discounts and Dynamic Pricing" version 1.27.15 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-dynamic-pricing-and-discounts.php" instead of "azh_woo_discounts.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin1,546 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 49 | 1,546 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 9 | 19.15% |
▷ Anonymous functions | 38 | 80.85% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin