Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼35.70ms] Passed 4 tests
Server-side resources used by Products CSV Importer for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.21 ▲1.43 |
Dashboard /wp-admin | 3.00 ▼0.31 | 21.82 ▼25.20 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 22.57 ▼29.32 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 22.82 ▼76.59 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 25.24 ▼11.68 |
Server storage [IO: ▲0.26MB] [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: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpci_id_associations |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Products CSV Importer for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.24 ▼0.90 | 2.06 ▼0.04 | 45.54 ▲1.21 |
Dashboard /wp-admin | 2,226 ▲38 | 4.84 ▼1.01 | 119.10 ▲6.73 | 44.33 ▲1.37 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 1.99 ▼0.01 | 35.99 ▼2.24 | 39.69 ▲5.66 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.20 ▼0.31 | 651.46 ▼7.65 | 55.18 ▲1.80 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.21 ▲0.02 | 101.91 ▼2.93 | 44.02 ▲0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure failed, leaving 1 table in the database
- wp_wpci_id_associations
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/products-csv-importer-for-woocommerce/views/wpci-options-view.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-csv-importer-for-woocommerce/includes/wpci-upload-csv.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-csv-importer-for-woocommerce/includes/wpci-import-csv-action.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-csv-importer-for-woocommerce/products-csv-importer.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/products-csv-importer-for-woocommerce/views/wpci-importer-view.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
products-csv-importer-for-woocommerce/products-csv-importer.php 92% from 13 tests
This is the main PHP file of "Products CSV Importer for Woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("products-csv-importer-for-woocommerce.php" instead of "products-csv-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin662 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 79 | 95 | 562 |
CSS | 1 | 0 | 0 | 58 |
JavaScript | 1 | 4 | 0 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 35 | 100.00% |
▷ Public methods | 27 | 77.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 22.86% |
Functions | 12 | |
▷ Named functions | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 63.43KB | 16.15KB | ▼ 74.54% |
assets/screenshot-1.png | 100.16KB | 27.51KB | ▼ 72.53% |
assets/screenshot-3.png | 72.35KB | 18.92KB | ▼ 73.85% |