Benchmarks
Plugin footprint 65% 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.17MB] [CPU: ▼5.66ms] Passed 4 tests
Analyzing server-side resources used by Import Shopify To WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.69 ▼5.95 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.12 ▼12.67 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.32 ▲5.51 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.32 ▼7.90 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.92 ▲3.90 |
Shopify Importer /wp-admin/tools.php?page=import-shopify-to-wp | 3.43 | 35.05 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 55 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_shopify2wp_variations_log |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import Shopify To WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 14.73 ▲0.09 | 1.86 ▲0.06 | 39.96 ▼10.82 |
Dashboard /wp-admin | 2,226 ▲38 | 5.78 ▲0.90 | 98.10 ▼23.65 | 41.77 ▼1.07 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.01 | 37.29 ▲0.32 | 33.31 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.11 ▲4.83 | 676.94 ▲48.12 | 68.02 ▲18.90 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.22 ▲0.08 | 96.66 ▼9.00 | 43.26 ▼1.90 |
Shopify Importer /wp-admin/tools.php?page=import-shopify-to-wp | 903 | 8.44 | 177.89 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_shopify2wp_variations_log
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/import-shopify-to-wp/import-shopify-to-wp.php:21
- > PHP Fatal error
Uncaught Error: Class 'S2WPImporter\\Process\\AbstractRecord' not found in wp-content/plugins/import-shopify-to-wp/app/Process/Order.php:9
- > PHP Fatal error
Uncaught Error: Class 'S2WPImporter\\Process\\AbstractRecord' not found in wp-content/plugins/import-shopify-to-wp/app/Process/Customer.php:7
- > PHP Fatal error
Trait 'S2WPImporter\\Traits\\ErrorTrait' not found in wp-content/plugins/import-shopify-to-wp/app/Process/AbstractRecord.php on line 7
- > PHP Fatal error
Trait 'S2WPImporter\\Traits\\ErrorTrait' not found in wp-content/plugins/import-shopify-to-wp/app/IdMapping.php on line 7
- > PHP Fatal error
Trait 'S2WPImporter\\Traits\\AjaxTrait' not found in wp-content/plugins/import-shopify-to-wp/app/Plugins/Installer.php on line 12
- > PHP Fatal error
Trait 'S2WPImporter\\Traits\\ErrorTrait' not found in wp-content/plugins/import-shopify-to-wp/app/Image.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'S2WPImporter\\AbstractDB' not found in wp-content/plugins/import-shopify-to-wp/app/VariationsLog.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/import-shopify-to-wp/app/Plugins/UpgraderSkin.php:10
- > PHP Fatal error
Trait 'S2WPImporter\\Traits\\AjaxTrait' not found in wp-content/plugins/import-shopify-to-wp/app/Process/Importer.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: import, free, woocommerce, export, shopify
import-shopify-to-wp/import-shopify-to-wp.php Passed 13 tests
The entry point to "Import Shopify To WP" version 1.0.1 is a PHP file that has certain tags in its header comment area
49 characters long description:
Easily transfer your Shopify Store to WooCommerce
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
No dangerous file extensions were detected3,440 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 691 | 1,120 | 2,120 |
TypeScript | 11 | 162 | 37 | 893 |
Sass | 1 | 58 | 19 | 337 |
SVG | 2 | 0 | 2 | 82 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of 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.35 |
Average class complexity | 10.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 16 | 9.70% |
▷ Public methods | 145 | 87.88% |
▷ Protected methods | 18 | 10.91% |
▷ Private methods | 2 | 1.21% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected