Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.61MB] [CPU: ▼0.44ms] Passed 4 tests
Server-side resources used by S2W - Import Shopify to WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 39.27 ▼3.60 |
Dashboard /wp-admin | 3.91 ▲0.61 | 48.37 ▼4.71 |
Posts /wp-admin/edit.php | 4.02 ▲0.67 | 52.57 ▲4.91 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 99.35 ▲1.64 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 43.25 ▲7.98 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for S2W - Import Shopify to WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.13 ▼1.16 | 4.95 ▲2.78 | 38.77 ▼8.52 |
Dashboard /wp-admin | 2,214 ▲26 | 4.86 ▲0.00 | 109.78 ▼5.65 | 42.71 ▼4.50 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.05 ▲0.03 | 40.34 ▲6.24 | 37.54 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.29 ▲5.73 | 655.08 ▼21.32 | 54.07 ▲5.19 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.27 ▲0.08 | 95.52 ▼13.45 | 43.06 ▼6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/import-shopify-to-woocommerce/includes/wp-background-process.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/import-shopify-to-woocommerce/includes/class-s2w-process-new.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #2 in import-shopify-to-woocommerce/assets to your readme.txt
import-shopify-to-woocommerce/import-shopify-to-woocommerce.php Passed 13 tests
The main file in "S2W - Import Shopify to WooCommerce" v. 1.1.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Easily migrate all Shopify products and their collections(categories) to WooCommerce after several clicks
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin11,640 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 436 | 583 | 5,576 |
JavaScript | 12 | 1,149 | 313 | 5,035 |
SVG | 1 | 0 | 0 | 565 |
CSS | 20 | 85 | 112 | 464 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 226)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 410.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 226.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 39 | 23.93% |
▷ Public methods | 133 | 81.60% |
▷ Protected methods | 27 | 16.56% |
▷ Private methods | 3 | 1.84% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fs-sprite.png | 0.22KB | 0.18KB | ▼ 15.63% |