Benchmarks
Plugin footprint 23% 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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/account-manager-woocommerce/accountmanager.php+20
Constant WP_PLUGIN_DIR already defined
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.19ms] Passed 4 tests
An overview of server-side resources used by Account Manager for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.40 ▼36.15 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.01 ▼47.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.83 ▼43.10 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.27 ▼98.02 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.95 ▼30.04 |
Overview /wp-admin/admin.php?page=zacctmgr | 2.05 | 5.23 |
Insights /wp-admin/admin.php?page=zacctmgr_insights | 2.06 | 5.67 |
Commission /wp-admin/admin.php?page=zacctmgr_commission | 2.06 | 5.39 |
Settings /wp-admin/admin.php?page=zacctmgr_settings | 2.06 | 6.24 |
Server storage [IO: ▲0.57MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: 4 new tables, 12 new options
New tables |
---|
wp_zacctmgr_acm_manager_commission_audit_mapping |
wp_zacctmgr_acm_commissions_mapping |
wp_zacctmgr_acm_order_audit_mapping |
wp_zacctmgr_acm_assignments_mapping |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
zacctmgr_v2_install_date |
zacctmgr_acm_order_audit_mapping_version |
zacctmgr_acm_commissions_mapping_version |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
zacctmgr_acm_manager_commission_audit_mapping |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Account Manager for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲71 | 13.27 ▼0.96 | 1.74 ▼0.28 | 42.33 ▼2.36 |
Dashboard /wp-admin | 2,266 ▲92 | 5.07 ▼0.60 | 103.28 ▼4.75 | 43.28 ▼1.60 |
Posts /wp-admin/edit.php | 2,169 ▲72 | 2.38 ▲0.34 | 38.27 ▲0.06 | 37.74 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,581 ▲36 | 23.71 ▲0.65 | 682.30 ▲18.55 | 56.10 ▼6.61 |
Media Library /wp-admin/upload.php | 1,471 ▲74 | 4.60 ▲0.36 | 104.49 ▼3.04 | 46.97 ▲1.90 |
Overview /wp-admin/admin.php?page=zacctmgr | 888 | 1.53 | 6.56 | 27.65 |
Insights /wp-admin/admin.php?page=zacctmgr_insights | 740 | 1.14 | 6.40 | 19.33 |
Commission /wp-admin/admin.php?page=zacctmgr_commission | 746 | 1.53 | 6.48 | 27.48 |
Settings /wp-admin/admin.php?page=zacctmgr_settings | 729 | 1.14 | 8.11 | 20.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/account-manager-woocommerce/accountmanager.php+20
Constant WP_PLUGIN_DIR already defined
- Zombie tables detected upon uninstall: 4 tables
- wp_zacctmgr_acm_manager_commission_audit_mapping
- wp_zacctmgr_acm_order_audit_mapping
- wp_zacctmgr_acm_commissions_mapping
- wp_zacctmgr_acm_assignments_mapping
- Zombie WordPress options detected upon uninstall: 12 options
- zacctmgr_acm_commissions_mapping_version
- zacctmgr_acm_manager_commission_audit_mapping
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- zacctmgr_acm_assignments_mapping_version
- widget_recent-comments
- zacctmgr_v2_install_date
- recovery_mode_email_last_sent
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zacctmgr_settings
- > Notice in wp-content/plugins/account-manager-woocommerce/accountmanager.php+20
Constant WP_PLUGIN_DIR already defined
- > GET request to /wp-admin/admin.php?page=zacctmgr
- > Error in wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-customer.php+143
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-customer.php:143
Stack trace:
#0 wp-admin/includes/class-wp-list-table.php(1752): ZACCTMGR_Core_Customer->column_default()
#1 wp-admin/includes/class-wp-list-table.php(1690): WP_List_Table->single_row_columns()
#2 wp-admin/includes/class-wp-list-table.php(1677): WP_List_Table->single_row()
#3 wp-admin/includes/class-wp-list-table.php(1662): WP_List_Table->display_rows()
#4 wp-admin/includes/class-wp-list-table.php(1589): WP_List_Table->display_rows_or_placeholder()
#5 wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-customer.php(75): WP_List_Table->display()
#6 wp-content/plugins/account-manager-woocommerce/template/overview.php(10): ZACCTMGR_Core_Customer->print_overview()
#7 wp-content/- > GET request to /wp-admin/admin.php?page=zacctmgr_insights
- > Error in wp-content/plugins/account-manager-woocommerce/accountmanager_functions.php+233
Uncaught Error: Call to undefined function wc_get_customer_total_spent() in wp-content/plugins/account-manager-woocommerce/accountmanager_functions.php:233
Stack trace:
#0 wp-content/plugins/account-manager-woocommerce/template/tab/customers.php(10): zacctmgr_get_top_customers()
#1 wp-content/plugins/account-manager-woocommerce/template/insights.php(14): include_once('/var/www/wordpr...')
#2 wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-admin.php(224): include_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): ZACCTMGR_Core_Admin->show_zacctmgr_insights()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown- > GET request to /wp-admin/admin.php?page=zacctmgr_commission
- > Error in wp-content/plugins/account-manager-woocommerce/accountmanager_functions.php+1022
Uncaught Error: Call to undefined function WC() in wp-content/plugins/account-manager-woocommerce/accountmanager_functions.php:1022
Stack trace:
#0 wp-content/plugins/account-manager-woocommerce/template/commission/my_commission.php(125): zacctmgr_get_manager_report()
#1 wp-content/plugins/account-manager-woocommerce/template/commissions.php(25): include_once('/var/www/wordpr...')
#2 wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-admin.php(216): include_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): ZACCTMGR_Core_Admin->show_zacctmgr_commission()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown- > GET request to /wp-admin/admin.php?page=zacctmgr_settings
- > Error in wp-content/plugins/account-manager-woocommerce/template/settings.php+22
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/account-manager-woocommerce/template/settings.php:22
Stack trace:
#0 wp-content/plugins/account-manager-woocommerce/helper/class-zacctmgr-core-admin.php(220): include_once()
#1 wp-includes/class-wp-hook.php(310): ZACCTMGR_Core_Admin->show_zacctmgr_settings()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
account-manager-woocommerce/accountmanager.php 85% from 13 tests
Analyzing the main PHP file in "Account Manager for WooCommerce" version 2.0.19
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0" instead of "2.4.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("account-manager-woocommerce.php" instead of "accountmanager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected11,819 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,111 | 472 | 8,624 |
JavaScript | 2 | 122 | 1 | 2,719 |
CSS | 1 | 96 | 0 | 471 |
Markdown | 2 | 4 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 268.00 |
Average method complexity | 7.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 11 | 13.92% |
▷ Public methods | 78 | 98.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.27% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin