Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.31ms] Passed 4 tests
Server-side resources used by Woo Product Feed For Marketing Channels
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.68 ▼3.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.34 ▼0.30 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.85 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.19 ▼2.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.27 ▲3.91 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 176 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
woogool_version |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Product Feed For Marketing Channels
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.28 ▲0.00 | 1.67 ▼0.13 | 43.21 ▼3.40 |
Dashboard /wp-admin | 2,199 ▲25 | 5.50 ▼0.08 | 83.08 ▼20.23 | 36.17 ▼7.53 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.97 ▼0.07 | 34.18 ▼3.52 | 35.52 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.18 ▲0.28 | 584.05 ▼115.75 | 50.67 ▼6.69 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.21 ▲0.01 | 100.86 ▼5.78 | 42.75 ▲0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- woogool_version
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-to-google-merchant-center/views/tutorial/hireme.php
- > /wp-content/plugins/woocommerce-to-google-merchant-center/views/tutorial/single.php
- > /wp-content/plugins/woocommerce-to-google-merchant-center/views/tutorial/multiple.php
- > /wp-content/plugins/woocommerce-to-google-merchant-center/views/single/tutorial.php
- > /wp-content/plugins/woocommerce-to-google-merchant-center/views/multiple/multiple-product.php
- 81× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'Google/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Service/Exception.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Google/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Http/Batch.php on line 18
- > PHP Warning
require_once(Google/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/IO/Exception.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'Google/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Auth/Exception.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function woogool_pages() in wp-content/plugins/woocommerce-to-google-merchant-center/views/multiple/header.php:2
- > PHP Fatal error
require_once(): Failed opening required 'Google/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Cache/File.php on line 18
- > PHP Warning
require_once(Google/Cache/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Cache/Apc.php on line 18
- > PHP Notice
Undefined variable: mail in wp-content/plugins/woocommerce-to-google-merchant-center/views/tutorial/hireme.php on line 78
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Service/ShoppingContent.php:32
- > PHP Warning
require_once(Google/Auth/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-google-merchant-center/includes/Google/Signer/P12.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
woocommerce-to-google-merchant-center/wogol.php 92% from 13 tests
The main file in "Woo Product Feed For Marketing Channels" v. 1.9.0 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-to-google-merchant-center.php" instead of "wogol.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
There were no executable files found in this plugin38,685 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 3,623 | 4,028 | 25,354 |
JavaScript | 14 | 1,645 | 1,681 | 11,540 |
CSS | 5 | 73 | 59 | 1,654 |
JSON | 2 | 0 | 0 | 73 |
SVG | 1 | 0 | 0 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 126 | |
▷ Abstract classes | 7 | 5.56% |
▷ Concrete classes | 119 | 94.44% |
▷ Final classes | 1 | 0.84% |
Methods | 1,101 | |
▷ Static methods | 39 | 3.54% |
▷ Public methods | 1,035 | 94.01% |
▷ Protected methods | 31 | 2.82% |
▷ Private methods | 35 | 3.18% |
Functions | 225 | |
▷ Named functions | 223 | 99.11% |
▷ Anonymous functions | 2 | 0.89% |
Constants | 46 | |
▷ Global constants | 10 | 21.74% |
▷ Class constants | 36 | 78.26% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/css/images/ui-bg_diagonals-small_75_cccccc_40x40.png | 0.15KB | 0.10KB | ▼ 35.06% |
assets/css/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/css/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |