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.11MB] [CPU: ▼1.15ms] Passed 4 tests
A check of server-side resources used by Export Import For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.17 ▲4.66 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.25 ▼1.87 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 43.91 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.84 ▼3.66 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.01 ▲3.41 |
Export Import WC /wp-admin/admin.php?page=woie-settings | 3.39 | 37.17 |
Server storage [IO: ▲4.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
woie_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
Export Import For WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.41 | 1.99 ▲0.36 | 38.68 ▼3.30 |
Dashboard /wp-admin | 2,193 ▲15 | 5.56 ▼0.21 | 82.86 ▼15.18 | 36.96 ▼9.38 |
Posts /wp-admin/edit.php | 2,083 ▼20 | 2.01 ▲0.01 | 34.15 ▼2.82 | 33.55 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.25 ▲0.09 | 684.28 ▲1.98 | 61.75 ▼9.04 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.04 | 96.53 ▼0.66 | 44.41 ▼0.72 |
Export Import WC /wp-admin/admin.php?page=woie-settings | 1,163 | 3.93 | 68.37 | 77.67 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- woie_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=woie-settings
- > Error in wp-content/plugins/export-import-for-woocommerce/inc/woie_settings.php+150
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/export-import-for-woocommerce/inc/woie_settings.php:150
Stack trace:
#0 wp-content/plugins/export-import-for-woocommerce/inc/functions.php(156): include_once()
#1 wp-includes/class-wp-hook.php(310): woie_settings()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/export-import-for-woocommerce/index.php
- 2× 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/export-import-for-woocommerce/inc/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/export-import-for-woocommerce/inc/woie_settings.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=woie-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught Error: Could not find select element
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: product import, migration, export product, csv, export
export-import-for-woocommerce/index.php 77% from 13 tests
The principal PHP file in "Export Import For WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("export-import-for-woocommerce.php" instead of "index.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin10,657 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 5 | 529 | 21 | 728 |
JavaScript | 5 | 203 | 30 | 250 |
CSS | 4 | 28 | 13 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/woo.png | 6.68KB | 3.20KB | ▼ 52.07% |