Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.54ms] Passed 4 tests
Analyzing server-side resources used by REDIS - WooCommerce Dynamic Pricing and Discounts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.24 ▼1.97 |
Dashboard /wp-admin | 3.48 ▲0.13 | 48.11 ▼9.74 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.22 ▼5.46 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 80.94 ▼13.00 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.99 ▲1.37 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 77 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_viredis_product_pricing |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for REDIS - WooCommerce Dynamic Pricing and Discounts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.16 ▼1.23 | 1.82 ▼0.34 | 41.53 ▲0.10 |
Dashboard /wp-admin | 2,217 ▲29 | 5.87 ▼0.02 | 95.52 ▼19.47 | 39.54 ▼3.13 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.18 ▲0.13 | 36.61 ▼4.38 | 33.68 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.08 ▲4.74 | 627.72 ▲19.79 | 55.57 ▲6.80 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.26 ▲0.07 | 95.43 ▼5.42 | 43.20 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_viredis_product_pricing
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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:
- Tags: You are using too many tags: 13 tag instead of maximum 10
redis-woo-dynamic-pricing-and-discounts/redis-woo-dynamic-pricing-and-discounts.php Passed 13 tests
The main PHP file in "REDIS - WooCommerce Dynamic Pricing and Discounts" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
REDIS - WooCommerce Dynamic Pricing and Discounts helps you to manage product price and cart discount for WooCommerce easy
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected16,228 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 124 | 135 | 6,682 |
JavaScript | 13 | 1,202 | 354 | 6,049 |
SVG | 3 | 0 | 12 | 2,880 |
CSS | 21 | 57 | 123 | 399 |
Sass | 2 | 2 | 0 | 218 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 80.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 531.00 |
Average method complexity | 10.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 51 | 42.86% |
▷ Public methods | 112 | 94.12% |
▷ Protected methods | 5 | 4.20% |
▷ Private methods | 2 | 1.68% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin