Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.00MB] [CPU: ▲6.83ms] Passed 4 tests
Analyzing server-side resources used by Import Products from any XML or CSV to WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 51.82 ▲4.53 |
Dashboard /wp-admin | 4.30 ▲1.00 | 64.11 ▲7.85 |
Posts /wp-admin/edit.php | 4.42 ▲1.06 | 54.92 ▲7.75 |
Add New Post /wp-admin/post-new.php | 6.88 ▲1.00 | 103.98 ▲7.20 |
Media Library /wp-admin/upload.php | 4.23 ▲1.00 | 51.69 ▲14.88 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Import Products from any XML or CSV to WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲102 | 13.55 ▼0.75 | 4.94 ▲3.03 | 40.08 ▼6.55 |
Dashboard /wp-admin | 2,244 ▲44 | 4.86 ▼1.02 | 115.73 ▼3.97 | 46.37 ▼2.07 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.14 ▲0.14 | 38.34 ▼0.83 | 36.83 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,572 ▲27 | 23.31 ▲0.20 | 653.45 ▲42.93 | 54.68 ▼4.57 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.31 ▲0.05 | 101.52 ▼2.48 | 50.15 ▲4.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/confirm.php
- 97× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/confirm.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'wpai_woocommerce_add_on\\libraries\\importer\\ImportBase' not found in wp-content/plugins/woocommerce-xml-csv-product-import/libraries/importer/products/ImportProductBase.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/shop_order/_tabs/_order_item_taxes.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/shop_order/_tabs/_order_payment.php:8
- > PHP Notice
Undefined variable: post in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/shop_order/_tabs/_order_item_taxes.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'wpai_woocommerce_add_on\\libraries\\importer\\ImportBase' not found in wp-content/plugins/woocommerce-xml-csv-product-import/libraries/importer/products/ImportProductBase.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-xml-csv-product-import/plugin.php on line 12
- > PHP Notice
Undefined variable: post in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/confirm.php on line 5
- > PHP Notice
Undefined variable: isWizard in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/options/_reimport_options.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-xml-csv-product-import/views/admin/import/shop_order/_tabs/_order_billing.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The WooCommerce add-on.)
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
woocommerce-xml-csv-product-import/plugin.php 85% from 13 tests
"Import Products from any XML or CSV to WooCommerce" version 1.5.1'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:
- Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-xml-csv-product-import.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,257 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,109 | 2,150 | 9,217 |
PO File | 3 | 1,344 | 2,481 | 2,706 |
CSS | 3 | 61 | 40 | 742 |
JavaScript | 3 | 89 | 18 | 592 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 21.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 12 | 33.33% |
▷ Concrete classes | 24 | 66.67% |
▷ Final classes | 2 | 8.33% |
Methods | 284 | |
▷ Static methods | 11 | 3.87% |
▷ Public methods | 261 | 91.90% |
▷ Protected methods | 19 | 6.69% |
▷ Private methods | 4 | 1.41% |
Functions | 35 | |
▷ Named functions | 32 | 91.43% |
▷ Anonymous functions | 3 | 8.57% |
Constants | 24 | |
▷ Global constants | 5 | 20.83% |
▷ Class constants | 19 | 79.17% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.27MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/data-example-1.png | 21.83KB | 6.24KB | ▼ 71.41% |
static/img/data-example-3.png | 23.26KB | 6.40KB | ▼ 72.47% |
static/img/left_btn.png | 1.14KB | 0.22KB | ▼ 80.50% |
screenshot-1.png | 179.10KB | 49.31KB | ▼ 72.47% |
static/img/data-example-4.png | 19.69KB | 5.24KB | ▼ 73.41% |