Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.28ms] Passed 4 tests
This is a short check of server-side resources used by Dynamic Pricing and Discount Rules for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.99 ▼5.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.77 ▼2.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.01 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.05 ▼19.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.20 ▼1.77 |
Server storage [IO: ▲6.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 279 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
theysaidso_admin_options |
wdpad_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for Dynamic Pricing and Discount Rules for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.48 ▲0.13 | 1.78 ▼0.33 | 40.83 ▲2.57 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.93 | 106.55 ▲2.66 | 38.81 ▼3.38 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.39 ▼1.07 | 36.57 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.30 ▼5.01 | 618.87 ▼9.67 | 50.57 ▲1.92 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 93.83 ▼12.76 | 39.30 ▼5.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_theysaidso_widget
- db_upgraded
- fs_debug_mode
- fs_active_plugins
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- fs_accounts
- wdpad_version
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #4, #6 in woo-conditional-discount-rules-for-checkout/assets to your readme.txt
woo-conditional-discount-rules-for-checkout/woo-conditional-discount-rules-for-checkout.php Passed 13 tests
The entry point to "Dynamic Pricing and Discount Rules for WooCommerce" version 2.4.1 is a PHP file that has certain tags in its header comment area
120 characters long description:
With this plugin, you can create and manage complex discount rules in WooCommerce store without the help of a developer.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,423 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 8,794 | 18,630 | 39,309 |
PO File | 4 | 1,916 | 3,709 | 5,029 |
CSS | 23 | 349 | 470 | 2,369 |
JavaScript | 8 | 365 | 461 | 2,369 |
SVG | 5 | 0 | 0 | 1,329 |
XML | 1 | 3 | 0 | 16 |
Markdown | 1 | 0 | 0 | 2 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
- Method cyclomatic complexity should be reduced to less than 100 (currently 136)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 91.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 136.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,378 | |
▷ Static methods | 210 | 15.24% |
▷ Public methods | 978 | 70.97% |
▷ Protected methods | 19 | 1.38% |
▷ Private methods | 381 | 27.65% |
Functions | 132 | |
▷ Named functions | 132 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 158 | |
▷ Global constants | 107 | 67.72% |
▷ Class constants | 51 | 32.28% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 1.68MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/images/Getting_Started_02.png | 133.27KB | 39.65KB | ▼ 70.25% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/pro-features-img/feature-box-img-8.png | 112.69KB | 34.51KB | ▼ 69.37% |