Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/account-manager-woocommerce/accountmanager.php+20
Constant WP_PLUGIN_DIR already defined
Server metrics [RAM: ▼2.51MB] [CPU: ▼339.90ms] Passed 4 tests
Server-side resources used by Account Manager for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.86 ▼1.65 | 4.53 ▼45.67 |
Dashboard /wp-admin | 1.88 ▼1.53 | 3.65 ▼28.52 |
Posts /wp-admin/edit.php | 1.88 ▼1.76 | 4.01 ▼33.14 |
Add New Post /wp-admin/post-new.php | 1.88 ▼5.09 | 4.68 ▼1,252.25 |
Media Library /wp-admin/upload.php | 1.88 ▼1.41 | 3.63 ▼22.03 |
Insights /wp-admin/admin.php?page=zacctmgr_insights | 1.88 | 4.21 |
Settings /wp-admin/admin.php?page=zacctmgr_settings | 1.88 | 4.90 |
Overview /wp-admin/admin.php?page=zacctmgr | 1.88 | 3.71 |
Commission /wp-admin/admin.php?page=zacctmgr_commission | 1.88 | 4.47 |
Server storage [IO: ▲0.57MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_zacctmgr_acm_order_audit_mapping |
wp_zacctmgr_acm_commissions_mapping |
wp_zacctmgr_acm_manager_commission_audit_mapping |
wp_zacctmgr_acm_assignments_mapping |
New WordPress options |
---|
zacctmgr_v2_install_date |
zacctmgr_acm_assignments_mapping_version |
zacctmgr_acm_manager_commission_audit_mapping |
recovery_mode_email_last_sent |
zacctmgr_acm_order_audit_mapping_version |
zacctmgr_acm_commissions_mapping_version |
Browser metrics Passed 4 tests
Checking browser requirements for Account Manager for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲91 | 16.63 ▲0.89 | 6.63 ▲0.70 | 2.32 ▼0.06 |
Dashboard /wp-admin | 2,972 ▲114 | 6.95 ▲0.83 | 119.67 ▼11.10 | 156.65 ▼3.00 |
Posts /wp-admin/edit.php | 2,776 ▲82 | 3.54 ▲0.31 | 70.12 ▲1.19 | 144.37 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,728 ▲60 | 19.41 ▲1.30 | 396.77 ▲20.45 | 161.13 ▲4.38 |
Media Library /wp-admin/upload.php | 1,781 ▲83 | 5.97 ▲0.50 | 126.55 ▼11.20 | 181.21 ▼2.03 |
Insights /wp-admin/admin.php?page=zacctmgr_insights | 907 | 1.97 | 37.67 | 102.98 |
Settings /wp-admin/admin.php?page=zacctmgr_settings | 889 | 1.97 | 36.96 | 71.37 |
Overview /wp-admin/admin.php?page=zacctmgr | 1,087 | 2.16 | 37.19 | 107.19 |
Commission /wp-admin/admin.php?page=zacctmgr_commission | 916 | 1.98 | 41.56 | 111.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/account-manager-woocommerce/accountmanager.php+20
Constant WP_PLUGIN_DIR already defined
- Zombie tables were found after uninstall: 4 tables
- wp_zacctmgr_acm_manager_commission_audit_mapping
- wp_zacctmgr_acm_order_audit_mapping
- wp_zacctmgr_acm_assignments_mapping
- wp_zacctmgr_acm_commissions_mapping
- This plugin did not uninstall successfully, leaving 6 options in the database
- recovery_mode_email_last_sent
- zacctmgr_acm_manager_commission_audit_mapping
- zacctmgr_acm_commissions_mapping_version
- zacctmgr_v2_install_date
- zacctmgr_acm_assignments_mapping_version
- zacctmgr_acm_order_audit_mapping_version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zacctmgr_commission
- > 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_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(307): ZACCTMGR_Core_Admin->show_zacctmgr_insights()
#4 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(474): 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(307): ZACCTMGR_Core_Admin->show_zacctmgr_settings()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > 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(1450): ZACCTMGR_Core_Customer->column_default()
#1 wp-admin/includes/class-wp-list-table.php(1390): WP_List_Table->single_row_columns()
#2 wp-admin/includes/class-wp-list-table.php(1377): WP_List_Table->single_row()
#3 wp-admin/includes/class-wp-list-table.php(1362): WP_List_Table->display_rows()
#4 wp-admin/includes/class-wp-list-table.php(1289): 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_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(307): ZACCTMGR_Core_Admin->show_zacctmgr_commission()
#4 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(474): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (26 tag instead of maximum 10)
account-manager-woocommerce/accountmanager.php 85% from 13 tests
"Account Manager for WooCommerce" version 2.0.19's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: The required version number must 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected