Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WooCustomerInsightSchema::generate_tables() should not be called statically
Server metrics [RAM: ▲0.45MB] [CPU: ▼113.83ms] Passed 4 tests
A check of server-side resources used by Web Analytics for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 44.99 ▼2.48 |
Dashboard /wp-admin | 3.77 ▲0.38 | 47.85 ▼450.36 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 50.17 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 98.41 ▲14.13 |
Media Library /wp-admin/upload.php | 3.70 ▲0.46 | 36.09 ▲0.47 |
Customer Stats /wp-admin/admin.php?page=customer_logs | 3.69 | 38.33 |
Opportunities /wp-admin/admin.php?page=user_payments | 3.72 | 35.64 |
Dashboard /wp-admin/admin.php?page=dashboard | 3.93 | 41.27 |
Reports /wp-admin/admin.php?page=reports | 3.69 | 32.76 |
Server storage [IO: ▲1.54MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 8 new tables, 6 new options
New tables |
---|
wci_user_purchased_history |
wci_successful_purchases |
wci_user_profile_updated |
wci_activity |
wci_user_session |
wci_abandon_cart |
wci_events |
wci_history |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Web Analytics for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 14.52 ▲0.13 | 1.14 ▼0.63 | 47.04 ▲7.62 |
Dashboard /wp-admin | 2,353 ▲168 | 6.20 ▲0.32 | 115.51 ▲16.58 | 94.26 ▲54.38 |
Posts /wp-admin/edit.php | 2,161 ▲69 | 2.83 ▲0.84 | 51.23 ▲8.63 | 34.06 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,576 ▲34 | 23.71 ▲5.20 | 684.99 ▼7.43 | 40.09 ▼18.11 |
Media Library /wp-admin/upload.php | 1,451 ▲63 | 5.19 ▲0.81 | 111.62 ▼1.35 | 82.59 ▲31.66 |
Customer Stats /wp-admin/admin.php?page=customer_logs | 1,026 | 2.78 | 47.61 | 47.93 |
Opportunities /wp-admin/admin.php?page=user_payments | 1,076 | 2.75 | 38.28 | 40.06 |
Dashboard /wp-admin/admin.php?page=dashboard | 1,440 | 2.65 | 49.27 | 54.71 |
Reports /wp-admin/admin.php?page=reports | 1,052 | 2.41 | 36.52 | 31.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 8 tables
- wci_history
- wci_successful_purchases
- wci_user_profile_updated
- wci_events
- wci_user_session
- wci_abandon_cart
- wci_user_purchased_history
- wci_activity
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/woo-customer-insight/includes/wci_cart_submit.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=reports
- > Network (severe)
wp-content/plugins/woo-customer-insight/fonts/fontawesome-webfont.woff2?v=4.6.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=customer_logs
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=customer_logs 0:0 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/admin.php?page=user_payments
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=user_payments 0:0 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/admin.php?page=dashboard
- > Network (severe)
wp-content/plugins/woo-customer-insight/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=dashboard
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=dashboard 0:0 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/admin.php?page=reports
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=reports 0:0 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Dashboard view.), #2 (Opportunities view.), #3 (Customer Stats.), #4 (Reports.)
woo-customer-insight/woo-customer-insight.php 92% from 13 tests
"Web Analytics for Woocommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
Good job! No executable or dangerous file extensions detected7,415 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 608 | 279 | 5,028 |
JavaScript | 10 | 389 | 429 | 1,781 |
CSS | 6 | 87 | 81 | 606 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 36.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 19 | 31.15% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.65MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 87.60KB | 34.58KB | ▼ 60.52% |
images/eye2Icons24.png | 1.15KB | 0.75KB | ▼ 34.36% |
screenshot-2.png | 170.67KB | 71.09KB | ▼ 58.35% |
screenshot-3.png | 240.65KB | 94.41KB | ▼ 60.77% |
images/Sample.png | 18.44KB | 7.16KB | ▼ 61.16% |