Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.75ms] Passed 4 tests
Analyzing server-side resources used by CSV Product Import Export for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.87 ▲3.21 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.18 ▲6.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.87 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.44 ▼4.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.56 ▼1.90 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CSV Product Import Export for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.40 ▼0.41 | 1.84 ▼0.10 | 47.85 ▼0.89 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.79 | 97.04 ▼20.67 | 39.18 ▼7.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 36.10 ▼0.50 | 36.91 ▲5.08 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 18.29 ▼4.77 | 581.76 ▼75.79 | 67.16 ▲11.15 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.01 | 96.64 ▼9.60 | 40.80 ▼2.69 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/importer/views/html-import-greeting.php:5
- > PHP Notice
Undefined variable: log_file in wp-content/plugins/csv-wc-product-import-export/includes/views/import/html-import-logs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/importer/views/html-import-options.php:2
- > PHP Notice
Undefined variable: log_file in wp-content/plugins/csv-wc-product-import-export/includes/views/import/html-import-logs.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/views/html-admin-tabs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/views/import/html-import-logs.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/views/import/html-import-products.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/csv-wc-product-import-export/includes/class-piecfw-dependencies.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/views/export/html-export-products.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/csv-wc-product-import-export/includes/views/html-admin-tabs.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: csv product export, csv product import, csv product import logs, woocommerce, csv product import by cron
csv-wc-product-import-export/csv-wc-product-import-export.php Passed 13 tests
The entry point to "CSV Product Import Export for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Manage your WooCommerce product data by import & export from CSV file.
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
No dangerous file extensions were detected9,252 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 1,577 | 1,046 | 6,315 |
JavaScript | 5 | 341 | 131 | 2,843 |
CSS | 3 | 1 | 0 | 94 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 173)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 106.58 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 11.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 173.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 | 123 | |
▷ Static methods | 13 | 10.57% |
▷ Public methods | 111 | 90.24% |
▷ Protected methods | 12 | 9.76% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
11 PNG files occupy 0.34MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/clock.png | 18.50KB | 10.09KB | ▼ 45.44% |
assets/images/log.png | 0.76KB | 0.80KB | 0.00% |
assets/images/done.png | 0.76KB | 0.68KB | ▼ 10.44% |
assets/screenshots/screenshot-4.png | 88.74KB | 22.41KB | ▼ 74.75% |
assets/images/error.png | 0.79KB | 0.72KB | ▼ 8.67% |