Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲3.33ms] Passed 4 tests
An overview of server-side resources used by Google Merchant Product Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 53.18 ▲7.71 |
Dashboard /wp-admin | 3.40 ▲0.09 | 65.43 ▲3.15 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 55.41 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 111.64 ▲7.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 43.05 ▲5.54 |
Google Merchant Feeds /wp-admin/edit.php?post_type=gmpf | 3.36 | 45.54 |
Add New /wp-admin/post-new.php?post_type=gmpf | 3.33 | 65.25 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Merchant Product Feed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.29 ▼1.08 | 5.14 ▲3.05 | 39.22 ▼9.52 |
Dashboard /wp-admin | 2,241 ▲53 | 5.83 ▲0.95 | 131.66 ▲6.87 | 55.25 ▲12.17 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▲0.02 | 47.65 ▼0.45 | 39.41 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 20.92 ▼2.40 | 781.99 ▲55.58 | 60.48 ▲9.70 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.16 ▼0.05 | 130.77 ▲8.24 | 73.69 ▲22.44 |
Google Merchant Feeds /wp-admin/edit.php?post_type=gmpf | 1,090 | 2.01 | 48.33 | 44.80 |
Add New /wp-admin/post-new.php?post_type=gmpf | 1,402 | 1.96 | 19.04 | 30.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=gmpf
- > Error in wp-content/plugins/merchant-xml-feed-generator/gmpf.php+223
Uncaught Error: Call to undefined function woocommerce_get_page_id() in wp-content/plugins/merchant-xml-feed-generator/gmpf.php:223
Stack trace:
#0 wp-admin/includes/template.php(1443): GoogleProductFeed->render_meta_box_content()
#1 wp-admin/edit-form-advanced.php(711): do_meta_boxes()
#2 wp-admin/post-new.php(75): require('/var/www/wordpr...')
#3 {main}
thrown
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: Call to undefined function add_action() in wp-content/plugins/merchant-xml-feed-generator/gmpf.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/merchant-xml-feed-generator/test.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/merchant-xml-feed-generator/single-gmpf.php:5
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: ecommerce, woocommerce, google xml feed, google shopping feed, google merchant...
merchant-xml-feed-generator/gmpf.php 92% from 13 tests
"Google Merchant Product Feed" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("merchant-xml-feed-generator.php" instead of "gmpf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,398 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 261 | 216 | 1,104 |
PHP | 6 | 458 | 408 | 886 |
CSS | 7 | 49 | 23 | 408 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.40 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |