Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.02MB] [CPU: ▲17.94ms] 75% from 4 tests
Analyzing server-side resources used by WooCommerce Google Analytics Integration By Advanced WC Analytics
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.02MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 60.39 ▲16.34 |
Dashboard /wp-admin | 8.95 ▲5.61 | 76.27 ▲16.03 |
Posts /wp-admin/edit.php | 8.95 ▲5.60 | 85.51 ▲36.44 |
Add New Post /wp-admin/post-new.php | 9.28 ▲3.40 | 108.85 ▲14.10 |
Media Library /wp-admin/upload.php | 8.95 ▲5.72 | 64.31 ▲25.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.95 | 60.73 |
Server storage [IO: ▲5.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 219 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
fs_active_plugins |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Google Analytics Integration By Advanced WC Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲98 | 14.71 ▼0.00 | 1.88 ▲0.15 | 28.97 ▼14.89 |
Dashboard /wp-admin | 2,237 ▲57 | 5.57 ▼0.09 | 97.05 ▼6.33 | 46.03 ▲2.47 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.17 ▲0.14 | 43.05 ▲0.27 | 39.82 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.21 ▲0.32 | 619.41 ▼46.08 | 53.52 ▲2.60 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.22 ▼0.01 | 96.89 ▼23.21 | 46.12 ▼1.46 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,101 | 1.66 | 26.86 | 30.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/advance-wc-analytics/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- fs_active_plugins
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: analytics, e-commerce, enhanced e-commerce, woocommerce, google analytics
advance-wc-analytics/advance-wc-analytics.php 85% from 13 tests
The main PHP script in "WooCommerce Google Analytics Integration By Advanced WC Analytics" version 3.4.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.7.0")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin38,417 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 8,336 | 17,583 | 37,627 |
JavaScript | 11 | 34 | 153 | 360 |
CSS | 15 | 0 | 12 | 216 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 3 | 4.92% |
▷ Concrete classes | 58 | 95.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,410 | |
▷ Static methods | 202 | 14.33% |
▷ Public methods | 978 | 69.36% |
▷ Protected methods | 31 | 2.20% |
▷ Private methods | 401 | 28.44% |
Functions | 103 | |
▷ Named functions | 101 | 98.06% |
▷ Anonymous functions | 2 | 1.94% |
Constants | 153 | |
▷ Global constants | 105 | 68.63% |
▷ Class constants | 48 | 31.37% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/images/icon-5.png | 16.53KB | 7.78KB | ▼ 52.94% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assests/images/icon-1.png | 3.88KB | 1.95KB | ▼ 49.82% |
assests/images/WoocommerceAnalytics.png | 26.15KB | 13.31KB | ▼ 49.11% |
assests/images/icon-2.png | 1.47KB | 0.72KB | ▼ 50.93% |