Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.66ms] Passed 4 tests
Analyzing server-side resources used by Conversion Tracking for WooCommerce and Google Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.79 ▼6.99 |
Dashboard /wp-admin | 3.46 ▲0.16 | 43.87 ▼6.94 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.20 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.33 ▲0.02 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.62 ▲3.26 |
Options /wp-admin/admin.php?page=daextctwga-options | 3.36 | 31.73 |
Help /wp-admin/admin.php?page=daextctwga-help | 3.35 | 42.14 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 87 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
daextctwga_excluded_user_capability |
daextctwga_order_value |
daextctwga_conversion_id |
daextctwga_conversion_label |
daextctwga_excluded_user_ip |
daextctwga_required_cookie_value |
daextctwga_require_cookie |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Conversion Tracking for WooCommerce and Google Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲79 | 14.48 ▲0.19 | 1.66 ▼0.37 | 39.37 ▼4.24 |
Dashboard /wp-admin | 2,253 ▲74 | 5.91 ▲0.05 | 112.81 ▼7.61 | 38.27 ▼12.36 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.01 ▼0.02 | 44.79 ▲7.90 | 35.48 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,550 ▲14 | 23.27 ▲0.18 | 662.83 ▲31.02 | 66.33 ▲20.08 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.23 ▼0.03 | 103.21 ▲3.72 | 42.76 ▼0.85 |
Options /wp-admin/admin.php?page=daextctwga-options | 1,028 | 2.55 | 46.29 | 34.48 |
Help /wp-admin/admin.php?page=daextctwga-help | 843 | 2.03 | 29.49 | 24.75 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/conversion-tracking-for-woocommerce-and-google-ads/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/conversion-tracking-for-woocommerce-and-google-ads/admin/view/options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
conversion-tracking-for-woocommerce-and-google-ads/init.php 92% from 13 tests
"Conversion Tracking for WooCommerce and Google Ads" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("conversion-tracking-for-woocommerce-and-google-ads.php" instead of "init.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
Good job! No executable or dangerous file extensions detected11,567 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 67 | 2,551 | 760 | 9,517 |
CSS | 7 | 222 | 23 | 1,286 |
PHP | 7 | 291 | 168 | 634 |
PO File | 1 | 41 | 41 | 113 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 5 | 11.90% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |