Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.24ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Retargeting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.27 ▼1.89 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.63 ▼15.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.30 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.04 ▼14.22 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.63 ▲4.94 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Retargeting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.56 ▼1.19 | 4.53 ▲2.55 | 40.70 ▼0.37 |
Dashboard /wp-admin | 2,224 ▲21 | 5.84 ▼0.07 | 100.14 ▼13.86 | 41.36 ▼6.27 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.04 | 34.06 ▼3.69 | 33.60 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.42 ▲0.44 | 634.65 ▼32.07 | 62.03 ▼4.27 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▲0.04 | 98.26 ▼16.91 | 47.70 ▼4.42 |
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 were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-retargeting/woocommerce-retargeting.php
- 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RetargetingSDK\\AbstractRetargetingSDK' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/lib/Brand.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/tests/Unit/StockManagementTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/tests/Unit/CategoryTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'RetargetingSDK\\Javascript\\Item\\AbstractItem' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/lib/Javascript/Item/ProductComment.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/tests/Unit/BrandTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/tests/Unit/OrderTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'RetargetingSDK\\Helpers\\AbstractHelper' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/lib/Helpers/VariationsHelper.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/woocommerce-retargeting/includes/class-rtg-integration.php:3
- > PHP Fatal error
Uncaught Error: Class 'RetargetingSDK\\Javascript\\Item\\AbstractItem' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/lib/Javascript/Item/PageHome.php:9
- > PHP Fatal error
Uncaught Error: Class 'RetargetingSDK\\Javascript\\Item\\AbstractItem' not found in wp-content/plugins/woocommerce-retargeting/vendor/retargeting/retargeting-sdk/lib/Javascript/Item/Email.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: retargeting, woocommerce
woocommerce-retargeting/woocommerce-retargeting.php 85% from 13 tests
The main PHP script in "WooCommerce Retargeting" version 3.1.0 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,807 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,020 | 2,335 | 4,476 |
Markdown | 3 | 37 | 0 | 213 |
JSON | 3 | 0 | 0 | 97 |
XML | 1 | 3 | 0 | 21 |
JavaScript | 1 | 2 | 77 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 3 | 4.48% |
▷ Concrete classes | 64 | 95.52% |
▷ Final classes | 9 | 14.06% |
Methods | 439 | |
▷ Static methods | 24 | 5.47% |
▷ Public methods | 402 | 91.57% |
▷ Protected methods | 16 | 3.64% |
▷ Private methods | 21 | 4.78% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 13 | |
▷ Global constants | 2 | 15.38% |
▷ Class constants | 11 | 84.62% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.29MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 13.58KB | 4.45KB | ▼ 67.26% |
assets/icon-256x256.png | 20.07KB | 6.54KB | ▼ 67.41% |
(invalid) assets/banner-772x250.png | 260.31KB | 0.00KB | ▼ 100.00% |