Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.32ms] Passed 4 tests
This is a short check of server-side resources used by Datalayer for WooCommerce FREE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.36 ▼4.11 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.56 ▼2.56 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.83 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.03 ▼10.04 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.52 ▲1.78 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
migrate_datalayer_for_woocommerce |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Datalayer for WooCommerce FREE
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.72 ▼0.04 | 1.88 ▼0.04 | 45.77 ▼1.04 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.05 | 89.56 ▼13.46 | 37.08 ▼9.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.02 | 38.67 ▼6.73 | 37.42 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.23 ▲0.17 | 600.26 ▼40.58 | 49.20 ▼5.20 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▼0.04 | 96.64 ▲0.49 | 42.70 ▼0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- migrate_datalayer_for_woocommerce
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: analytics, ua, ga4, gtm tag manager, universal analytics...
datalayer-for-ecommerce-free/datalayer-for-ecommerce-free.php Passed 13 tests
"Datalayer for WooCommerce FREE" version 3.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
DataLayer is an object that makes available in real time the information that is executed by users while browsing the WooCommerce Store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,606 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 310 | 780 | 1,535 |
PO File | 1 | 21 | 86 | 64 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 3 | 18.75% |
Methods | 90 | |
▷ Static methods | 38 | 42.22% |
▷ Public methods | 79 | 87.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 12.22% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-datalayer-for-ecommerce-free.png | 3.09KB | 3.22KB | 0.00% |
assets/build/images/logo-datalayer-for-ecommerce-free.1a10e733.png | 3.09KB | 3.22KB | 0.00% |