Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.01ms] 75% from 4 tests
This is a short check of server-side resources used by Product Feed on WooCommerce for Google, Awin, Shareasale, Bing, and More
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 837.26ms on /wp-admin/admin.php?page=cart-product-feed-manage-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 37.52 ▲0.58 |
Dashboard /wp-admin | 3.47 ▲0.17 | 47.35 ▲2.06 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 48.39 ▼1.07 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.71 ▼9.60 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.28 ▲8.59 |
Create New Feed /wp-admin/admin.php?page=cart-product-feed-admin | 4.86 | 1,440.47 |
Tutorials /wp-admin/admin.php?page=cart-product-feed-tutorials-page | 4.44 | 734.64 |
Manage Feeds /wp-admin/admin.php?page=cart-product-feed-manage-page | 4.44 | 837.26 |
Server storage [IO: ▲12.64MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 297 new files
Database: 5 new tables, 14 new options
New tables |
---|
wp_cpf_resolved_product_data |
wp_cpf_custom_products |
wp_cpf_customfeeds |
wp_cpf_feedproducts |
wp_cp_feeds |
New WordPress options |
---|
cp_feed_order_reverse |
db_upgraded |
widget_theysaidso_widget |
cart-product-feed-installation-date |
theysaidso_admin_options |
widget_recent-comments |
cp_localkey |
widget_recent-posts |
cp_feed_delay |
CPFDBVERSION |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Product Feed on WooCommerce for Google, Awin, Shareasale, Bing, and More
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 14.76 ▲0.49 | 2.05 ▲0.46 | 38.12 ▼2.37 |
Dashboard /wp-admin | 2,307 ▲130 | 5.67 ▲0.09 | 81.51 ▼7.75 | 81.17 ▲43.13 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▲0.04 | 35.67 ▼2.65 | 35.05 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,564 ▲13 | 23.18 ▲4.88 | 700.65 ▲76.75 | 60.95 ▲2.13 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.20 ▼0.01 | 96.36 ▲0.31 | 70.95 ▲28.33 |
Create New Feed /wp-admin/admin.php?page=cart-product-feed-admin | 1,244 | 2.11 | 36.21 | 29.70 |
Tutorials /wp-admin/admin.php?page=cart-product-feed-tutorials-page | 2,214 | 22.01 | 473.08 | 26.75 |
Manage Feeds /wp-admin/admin.php?page=cart-product-feed-manage-page | 1,142 | 2.18 | 30.71 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 5 tables
- wp_cpf_customfeeds
- wp_cp_feeds
- wp_cpf_resolved_product_data
- wp_cpf_feedproducts
- wp_cpf_custom_products
- Zombie WordPress options detected upon uninstall: 14 options
- CPFDBVERSION
- cp_licensekey
- cp_localkey
- db_upgraded
- cp_feed_order
- widget_theysaidso_widget
- theysaidso_admin_options
- cpf_custom_attribute_user_map
- can_compress_scripts
- cart-product-feed-installation-date
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cart-product-feed-manage-page
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/classes/dialogfeedeBaysettings.php
- > /wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/shareasale/categories.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/aggxmlgoogle/dialog.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/kelkoo/templates/property.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/kelkoo/dialog.tpl.php:30
- > PHP Fatal error
Uncaught Error: Class 'EXCPF_PBaseFeedDialog' not found in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/tradetracker/dialognew.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/kelkoo/templates/new.usedcars.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/facebookxml/dialog.tpl.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/aggtxt/dialog.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/kelkoo/templates/wine.champagne.php:8
- > PHP Fatal error
Uncaught Error: Class 'EXCPF_PBaseFeedDialog' not found in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/aggtsv/dialognew.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/purple-xmls-google-product-feed-for-woocommerce/core/feeds/kelkoo/templates/fashion.accessories.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid plugin version format
- Screenshots: Please add images for these screenshots: #1 (Select 'Product Feed' from the Admin Menu), #2 (Select Export Type - More formats coming too!), #3 (Provide the filters according to your preferences and search product), #4 (Custom Feed - Choose the filtered products, move to right, give the title for feed and click on 'Get Feed'), #5 (Feed By Category - Choose merchant's category, local category, specify the feed title and click on 'Get Feed' to generate the feed), #6 (Manage your feed with feed configuration)
- Tags: Please delete some tags, you are using 71 tag instead of maximum 10
purple-xmls-google-product-feed-for-woocommerce/cart-product-feed.php 77% from 13 tests
The main PHP script in "Product Feed on WooCommerce for Google, Awin, Shareasale, Bing, and More" version 3.5.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("purple-xmls-google-product-feed-for-woocommerce.php" instead of "cart-product-feed.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.5")
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 72 characters long)
Code Analysis 97% from 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 plugin40,683 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 3,912 | 3,989 | 20,269 |
JavaScript | 17 | 4,494 | 14,349 | 16,684 |
CSS | 19 | 209 | 316 | 3,487 |
SVG | 1 | 0 | 0 | 243 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 460.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 214 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 214 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 724 | |
▷ Static methods | 47 | 6.49% |
▷ Public methods | 652 | 90.06% |
▷ Protected methods | 17 | 2.35% |
▷ Private methods | 55 | 7.60% |
Functions | 51 | |
▷ Named functions | 49 | 96.08% |
▷ Anonymous functions | 2 | 3.92% |
Constants | 23 | |
▷ Global constants | 21 | 91.30% |
▷ Class constants | 2 | 8.70% |
▷ Public constants | 2 | 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
23 PNG files occupy 0.56MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/exf-sm-logo.png | 3.42KB | 2.30KB | ▼ 32.85% |
images/cpf-sm-logo.png | 23.73KB | 6.79KB | ▼ 71.38% |
screenshot-3.png | 40.73KB | 16.24KB | ▼ 60.13% |
images/reset.png | 1.79KB | 1.02KB | ▼ 42.86% |
images/ebay.png | 6.63KB | 2.30KB | ▼ 65.34% |