Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼7.71ms] Passed 4 tests
A check of server-side resources used by ELEX WooCommerce Google Shopping (Google Product Feed)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.40 ▼7.70 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.57 ▼15.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.82 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.74 ▼9.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.45 ▲2.32 |
Server storage [IO: ▲6.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ELEX WooCommerce Google Shopping (Google Product Feed)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.47 ▲0.03 | 1.60 ▼0.29 | 38.77 ▼2.87 |
Dashboard /wp-admin | 2,212 ▲27 | 4.84 ▼1.13 | 105.67 ▲5.79 | 38.21 ▼0.05 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.07 | 39.38 ▲4.26 | 35.29 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,544 ▲23 | 23.24 ▼0.02 | 634.08 ▼50.10 | 49.14 ▼12.41 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▼0.04 | 94.16 ▼14.24 | 40.64 ▼5.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elex-woocommerce-google-product-feed-plugin-basic/review_and_troubleshoot_notify/resources/logo.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elex-woocommerce-google-product-feed-plugin-basic/includes/market.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-woocommerce-google-product-feed-plugin-basic/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-woocommerce-google-product-feed-plugin-basic/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: google product feed, google shopping, woocommerce google product feed, woocommerce google shopping, google merchant center
elex-woocommerce-google-product-feed-plugin-basic/elex-product-feed-basic.php 77% from 13 tests
"ELEX WooCommerce Google Shopping (Google Product Feed)" version 1.3.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("elex-woocommerce-google-product-feed-plugin-basic.php" instead of "elex-product-feed-basic.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.6.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin46,435 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 358 | 57 | 32,960 |
CSS | 5 | 73 | 16 | 8,071 |
PHP | 27 | 268 | 60 | 4,742 |
PO File | 2 | 158 | 180 | 626 |
SVG | 1 | 0 | 0 | 36 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 51.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 447.00 |
Average method complexity | 9.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.46MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrow-down.png | 0.41KB | 0.23KB | ▼ 44.26% |
assets/images/pause.png | 0.40KB | 0.22KB | ▼ 43.63% |
assets/icons/jquery-ui-lib-icons/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/images/download.png | 0.50KB | 0.52KB | 0.00% |
resources/dynamic_pricing.png | 92.32KB | 23.50KB | ▼ 74.55% |