Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.19ms] Passed 4 tests
Server-side resources used by Enhanced Ecommerce Google Analytics for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.84 ▲1.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.48 ▼14.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.80 ▼10.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.88 ▼16.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.94 ▲0.34 |
Server storage [IO: ▲7.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 260 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
fs_accounts |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Enhanced Ecommerce Google Analytics for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.17 ▼0.38 | 1.81 ▼0.09 | 46.11 ▲6.76 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▲0.10 | 95.22 ▲7.44 | 41.76 ▲3.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 32.47 ▼8.96 | 33.68 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.21 ▼0.40 | 690.74 ▼8.95 | 56.06 ▼6.81 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.04 | 97.93 ▼11.37 | 41.90 ▼4.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- can_compress_scripts
- fs_accounts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-ecommerce-tracking-for-google-and-facebook/admin/partials/advance-ecommerce-tracking-admin-display.php
- > /wp-content/plugins/woo-ecommerce-tracking-for-google-and-facebook/public/partials/advance-ecommerce-tracking-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
woo-ecommerce-tracking-for-google-and-facebook/advance-ecommerce-tracking.php 77% from 13 tests
"Enhanced Ecommerce Google Analytics for WooCommerce" version 3.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-ecommerce-tracking-for-google-and-facebook.php" instead of "advance-ecommerce-tracking.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.3")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin41,133 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,389 | 18,448 | 36,747 |
CSS | 21 | 139 | 67 | 2,229 |
PO File | 1 | 255 | 297 | 889 |
SVG | 3 | 0 | 0 | 692 |
JavaScript | 4 | 77 | 104 | 560 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,329 | |
▷ Static methods | 202 | 15.20% |
▷ Public methods | 931 | 70.05% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 381 | 28.67% |
Functions | 134 | |
▷ Named functions | 133 | 99.25% |
▷ Anonymous functions | 1 | 0.75% |
Constants | 155 | |
▷ Global constants | 108 | 69.68% |
▷ Class constants | 47 | 30.32% |
▷ Public constants | 47 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 3.00MB with 1.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/eet.png | 169.78KB | 78.92KB | ▼ 53.52% |
admin/images/selector.png | 73.45KB | 36.14KB | ▼ 50.80% |
(invalid) admin/images/pro-features-img/feature-box-five-img.png | 98.39KB | 0.00KB | ▼ 100.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/ec_step4.png | 99.49KB | 27.24KB | ▼ 72.62% |