Benchmarks
Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests
This is a short check of server-side resources used by Grow by Tradedoubler - Advertiser Plugin for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 34.16 ▼4.46 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.26 ▼14.10 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.46 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.98 ▼13.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.35 ▲4.58 |
Server storage [IO: ▲5.60MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 666 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Grow by Tradedoubler - Advertiser Plugin for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲24 | 14.67 ▲0.42 | 1.49 ▼0.53 | 37.10 ▼7.99 |
Dashboard /wp-admin | 2,213 ▲33 | 5.62 ▼0.05 | 105.80 ▲6.88 | 47.96 ▲1.39 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.95 ▼0.00 | 36.68 ▼5.76 | 34.97 ▼7.46 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.63 ▲0.08 | 671.86 ▲50.13 | 56.96 ▼2.04 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.21 ▲0.06 | 98.90 ▼44.15 | 41.01 ▼11.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'TradedoublerAPI' not found in wp-content/plugins/tradedoubler-affiliate-tracker/templates/partials/transactions.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Discounts' not found in wp-content/plugins/tradedoubler-affiliate-tracker/src/TradedoublerDiscount/TradedoublerDiscount.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/tradedoubler-affiliate-tracker/templates/partials/codes-alerts.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tradedoubler-affiliate-tracker/templates/partials/pending.php:2
- > PHP Fatal error
Uncaught Error: Class 'TradedoublerAPI' not found in wp-content/plugins/tradedoubler-affiliate-tracker/templates/partials/affi.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tradedoubler-affiliate-tracker/templates/partials/stats.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: merchant, marketing, tradedoubler, grow, advertiser...
tradedoubler-affiliate-tracker/index.php 85% from 13 tests
The main file in "Grow by Tradedoubler - Advertiser Plugin for WooCommerce" v. 2.0.21 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 263 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tradedoubler-affiliate-tracker.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin44,611 lines of code in 661 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 567 | 0 | 0 | 35,882 |
PHP | 26 | 487 | 166 | 4,947 |
CSS | 4 | 10 | 0 | 2,262 |
JavaScript | 64 | 101 | 81 | 1,520 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 50 | 47.62% |
▷ Public methods | 94 | 89.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.48% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/code.png | 2.31KB | 1.27KB | ▼ 44.84% |
assets/images/finalImage.png | 23.06KB | 8.72KB | ▼ 62.19% |