Benchmarks
Plugin footprint 65% 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.02MB] [CPU: ▼142.68ms] 75% from 4 tests
An overview of server-side resources used by Sync WooCommerce Product feed to Google Shopping
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,283.83ms on /wp-admin/admin.php?page=gcpf-feed-admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 37.65 ▼15.22 |
Dashboard /wp-admin | 3.09 ▲0.03 | 48.87 ▲7.52 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 50.65 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.04 ▼554.36 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.14 ▼1.61 |
Tutorials /wp-admin/admin.php?page=gcpf-feed-tutorials-page | 3.02 | 4,206.45 |
Manage Feeds /wp-admin/admin.php?page=gcpf-feed-manage-page | 3.01 | 693.56 |
Create New Feed /wp-admin/admin.php?page=gcpf-feed-admin | 2.99 | 1,283.83 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 125 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_gcpf_custom_products |
wp_gcp_feeds |
New WordPress options |
---|
gcp_licensekey |
gcp_feed_order |
gcp_localkey |
gcpf-installation-date |
gcp_feed_order_reverse |
gcp_feed_delay |
Browser metrics Passed 4 tests
An overview of browser requirements for Sync WooCommerce Product feed to Google Shopping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,740 ▲168 | 15.98 ▼0.01 | 8.14 ▲0.87 | 47.39 ▼7.41 |
Dashboard /wp-admin | 2,998 ▲67 | 5.90 ▼0.04 | 142.99 ▼13.67 | 138.64 ▲17.74 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.59 ▼0.09 | 68.40 ▼5.23 | 99.45 ▲14.98 |
Add New Post /wp-admin/post-new.php | 1,708 ▲25 | 18.76 ▲0.51 | 393.06 ▲1.24 | 118.72 ▲7.16 |
Media Library /wp-admin/upload.php | 1,789 ▼18 | 5.02 ▼0.00 | 134.50 ▼18.39 | 156.15 ▲32.98 |
Tutorials /wp-admin/admin.php?page=gcpf-feed-tutorials-page | 2,050 | 9.98 | 280.10 | 117.57 |
Manage Feeds /wp-admin/admin.php?page=gcpf-feed-manage-page | 1,462 | 2.36 | 61.03 | 83.12 |
Create New Feed /wp-admin/admin.php?page=gcpf-feed-admin | 12,645 | 2.89 | 99.99 | 131.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_gcpf_custom_products
- wp_gcp_feeds
- This plugin did not uninstall successfully, leaving 6 options in the database
- gcp_feed_order_reverse
- gcp_feed_delay
- gcp_localkey
- gcpf-installation-date
- gcp_licensekey
- gcp_feed_order
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/exportfeed-for-woocommerce-google-product-feed/core/classes/dialogbasefeed.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/exportfeed-for-woocommerce-google-product-feed/core/classes/dialogbasefeedcustom.tpl.php:177
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/exportfeed-for-woocommerce-google-product-feed/core/feeds/productlistraw/dialog.tpl.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Select Google Feed from the Admin Menu), #2 (Custom Feed - Search the products from the filter form.), #3 (Custom Feed - Select the products from the list, assign the categories and create feed.), #4 (To create feed by WooCommerce Categories, select the tab Google Feed [Category] on Create Feed Option from admin menu and create feed.), #5 (Manage the exisitng feed from feed manage page or tabs.)
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
exportfeed-for-woocommerce-google-product-feed/google-feed.php 77% from 13 tests
The main PHP file in "Sync WooCommerce Product feed to Google Shopping" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("exportfeed-for-woocommerce-google-product-feed.php" instead of "google-feed.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin33,132 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 3,612 | 2,251 | 18,384 |
PHP | 59 | 1,788 | 1,257 | 9,152 |
HTML | 3 | 65 | 0 | 3,200 |
CSS | 9 | 180 | 238 | 2,059 |
SVG | 1 | 0 | 0 | 243 |
JSON | 2 | 0 | 0 | 94 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 255.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 94 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 405 | |
▷ Static methods | 56 | 13.83% |
▷ Public methods | 321 | 79.26% |
▷ Protected methods | 12 | 2.96% |
▷ Private methods | 72 | 17.78% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.62MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 7.69KB | 3.57KB | ▼ 53.52% |
images/gts-logo.png | 11.13KB | 3.93KB | ▼ 64.72% |
screenshot-6.png | 115.14KB | 41.03KB | ▼ 64.36% |
screenshot-5.png | 65.31KB | 24.25KB | ▼ 62.87% |
screenshot-4.png | 120.00KB | 43.45KB | ▼ 63.79% |