Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.43ms] Passed 4 tests
A check of server-side resources used by Import Export For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.98 ▼0.96 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.33 ▼12.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.57 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.89 ▼11.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.62 ▼0.67 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Import Export For WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.23 ▼0.11 | 1.83 ▲0.06 | 42.10 ▼2.12 |
Dashboard /wp-admin | 2,195 ▲14 | 5.49 ▼0.19 | 86.55 ▼26.72 | 38.35 ▼5.98 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.04 | 35.70 ▼1.90 | 31.55 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 22.85 ▼0.23 | 652.04 ▲28.12 | 54.70 ▲1.22 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.08 | 95.11 ▼8.98 | 41.59 ▼0.10 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/import-export-for-woocommerce/templates/buy-now.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/coupon/navigation.php:1
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/product-review/navigation.php:1
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/product-category/navigation.php:1
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/user/navigation.php:1
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/order/navigation.php:1
- > PHP Fatal error
Uncaught Error: Class 'SN_WIE_INIT' not found in wp-content/plugins/import-export-for-woocommerce/templates/product/navigation.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
import-export-for-woocommerce/init.php 92% from 13 tests
The main PHP file in "Import Export For WooCommerce" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("import-export-for-woocommerce.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9,778 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 829 | 1,208 | 5,651 |
JavaScript | 10 | 386 | 447 | 3,023 |
CSS | 2 | 18 | 32 | 1,104 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 66.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 96 | 56.80% |
▷ Public methods | 85 | 50.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 84 | 49.70% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/order-icon.png | 1.13KB | 0.52KB | ▼ 54.11% |
assets/images/attribute-icon.png | 1.04KB | 0.48KB | ▼ 53.77% |
assets/images/icon.png | 1.12KB | 0.24KB | ▼ 78.76% |
assets/images/category-icon.png | 1.20KB | 0.53KB | ▼ 55.67% |
assets/images/coupon-icon.png | 0.72KB | 0.39KB | ▼ 45.93% |