Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-settings-manager.php+165
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-settings-manager.php:165
Stack trace:
#0 wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-activator.php(193): WCCS_Settings_Manager->get_registered_settings()
#1 wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-activator.php(164): WCCS_Activator::create_options()
#2 wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-activator.php(112): WCCS_Activator::run_install()
#3 wp-content/plugins/easy-woocommerce-discounts/easy-woocommerce-discounts.php(36): WCCS_Activator::activate()
#4 wp-includes/class-wp-hook.php(310): activate_wc_conditions()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /var/www/word
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.45ms] Passed 4 tests
Analyzing server-side resources used by Discount Rules and Dynamic Pricing for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.68 ▼3.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.97 ▼5.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.62 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.12 ▼6.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.53 ▲2.06 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_wccs_condition_meta |
wp_wccs_conditions |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
wccs_install_timestamp |
widget_recent-comments |
wp_wccs_conditions_db_version |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
wp_wccs_condition_meta_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Discount Rules and Dynamic Pricing 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.21 ▼0.20 | 1.68 ▼0.20 | 36.60 ▼7.45 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.09 | 98.11 ▼1.47 | 42.88 ▼4.93 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▲0.02 | 39.97 ▲1.16 | 37.08 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.36 ▲0.33 | 644.43 ▲10.65 | 57.89 ▼1.73 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.02 | 103.91 ▲3.59 | 45.51 ▲5.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wccs_condition_meta
- wp_wccs_conditions
- This plugin does not fully uninstall, leaving 9 options in the database
- wp_wccs_condition_meta_db_version
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- wccs_install_timestamp
- wp_wccs_conditions_db_version
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 23 tag instead of maximum 10
easy-woocommerce-discounts/easy-woocommerce-discounts.php 92% from 13 tests
"Discount Rules and Dynamic Pricing for WooCommerce" version 6.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.4.2" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,967 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 2,414 | 3,537 | 11,067 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 23 | 16 | 116 | 112 |
CSS | 10 | 3 | 10 | 100 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 22.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 5 | 5.21% |
▷ Concrete classes | 91 | 94.79% |
▷ Final classes | 1 | 1.10% |
Methods | 643 | |
▷ Static methods | 69 | 10.73% |
▷ Public methods | 554 | 86.16% |
▷ Protected methods | 76 | 11.82% |
▷ Private methods | 13 | 2.02% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin