Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲3.79MB] [CPU: ▲23.39ms] Passed 4 tests
Server-side resources used by ShopWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.39 ▲3.93 | 74.60 ▲34.40 |
Dashboard /wp-admin | 7.03 ▲3.73 | 68.15 ▲20.80 |
Posts /wp-admin/edit.php | 7.15 ▲3.80 | 68.80 ▲13.18 |
Add New Post /wp-admin/post-new.php | 9.87 ▲3.99 | 125.50 ▲30.22 |
Media Library /wp-admin/upload.php | 6.95 ▲3.72 | 63.86 ▲29.35 |
Extensions /wp-admin/admin.php?page=wps-extensions | 7.10 | 62.29 |
Sync /wp-admin/admin.php?page=wps-tools | 7.10 | 66.50 |
Info /wp-admin/admin.php?page=wps-help | 7.10 | 62.51 |
Wizard /wp-admin/admin.php?page=shopwp-wizard | 7.06 | 61.67 |
Visual Builder /wp-admin/admin.php?page=wps-visual-builder | 7.10 | 59.67 |
License /wp-admin/admin.php?page=wps-license | 7.10 | 63.55 |
Connect /wp-admin/admin.php?page=wps-connect | 7.10 | 61.28 |
Settings /wp-admin/admin.php?page=wps-settings | 7.10 | 65.52 |
Products /wp-admin/edit.php?post_type=wps_products | 7.26 | 67.95 |
Server storage [IO: ▲8.56MB] [DB: ▲0.03MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 1 file (3.82KB) outside of "wp-content/plugins/wpshopify/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/shopwp-compatibility.php
Filesystem: 1,040 new files
Database: 12 new tables, 19 new options
New tables |
---|
wp_wps_options |
wp_wps_collects |
wp_wps_variants |
wp_wps_collections_smart |
wp_wps_settings_connection |
wp_wps_settings_license |
wp_wps_images |
wp_wps_settings_syncing |
wp_wps_tags |
wp_wps_products |
... |
New WordPress options |
---|
shopwp_table_exists_wp_wps_options |
widget_recent-posts |
db_upgraded |
shopwp_table_exists_wp_wps_variants |
widget_theysaidso_widget |
shopwp_table_exists_wp_wps_settings_connection |
shopwp_table_exists_wp_wps_settings_general |
widget_recent-comments |
shopwp_should_flush_rewrite_rules |
shopwp_table_exists_wp_wps_collections_custom |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShopWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲189 | 15.41 ▲0.91 | 51.96 ▲50.12 | 41.41 ▼0.69 |
Dashboard /wp-admin | 2,261 ▲81 | 5.63 ▼0.07 | 92.46 ▼1.72 | 38.71 ▼1.70 |
Posts /wp-admin/edit.php | 2,170 ▲65 | 1.99 ▲0.01 | 37.65 ▼4.41 | 32.42 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 17.91 ▼5.71 | 623.55 ▼41.45 | 80.18 ▲24.72 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.23 ▲0.08 | 97.45 ▼11.60 | 42.50 ▼3.50 |
Extensions /wp-admin/admin.php?page=wps-extensions | 1,511 | 15.44 | 350.41 | 96.72 |
Sync /wp-admin/admin.php?page=wps-tools | 1,439 | 15.39 | 214.38 | 42.34 |
Info /wp-admin/admin.php?page=wps-help | 1,455 | 14.94 | 207.38 | 42.53 |
Wizard /wp-admin/admin.php?page=shopwp-wizard | 934 | 11.16 | 133.16 | 20.37 |
Visual Builder /wp-admin/admin.php?page=wps-visual-builder | 1,360 | 14.86 | 211.01 | 59.61 |
License /wp-admin/admin.php?page=wps-license | 1,365 | 15.21 | 211.26 | 40.62 |
Connect /wp-admin/admin.php?page=wps-connect | 1,366 | 14.90 | 207.01 | 43.91 |
Settings /wp-admin/admin.php?page=wps-settings | 1,464 | 15.05 | 195.72 | 43.99 |
Products /wp-admin/edit.php?post_type=wps_products | 1,540 | 13.86 | 170.09 | 31.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wpshopify/classes/filesystem/class-filesystem.php+120
unlink(wp-content/mu-plugins/shopwp-compatibility.php): No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 15× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/collections-all.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/cart.php
- > /wp-content/plugins/wpshopify/public/templates/components/storefront/storefront.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/reviews.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/products-single.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/product-title.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/products-all.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/product-pricing.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/product.php
- > /wp-content/plugins/wpshopify/public/templates/components/skeletons/storefront.php
- 38× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShopWP\\Factories\\Render\\Root_Factory' not found in wp-content/plugins/wpshopify/public/templates/components/wrapper/wrapper-client.php:3
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\Filter\\Filter' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\Filter\\Filter' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/Filter/ReplaceFilter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php:16
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\TransformerInterface' not found in wp-content/plugins/wpshopify/vendor/typisttech/imposter/src/Transformer.php:9
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ShopWP\\Vendor\\DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/wpshopify/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php:8
- > PHP Fatal error
Uncaught Error: Class 'ShopWP\\Factories\\CPT_Model_Factory' not found in wp-content/plugins/wpshopify/public/templates/webhooks/products/product-create.php:3
- > PHP Fatal error
Uncaught Error: Class 'ShopWP\\Factories\\DB\\Products_Factory' not found in wp-content/plugins/wpshopify/public/templates/webhooks/products/product-delete.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: store, shopify, purchase, ecommerce, shop...
wpshopify/shopwp.php 77% from 13 tests
The entry point to "ShopWP" version 5.1.10 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("wpshopify.php" instead of "shopwp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected47,756 lines of code in 811 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 314 | 6,972 | 2,988 | 24,994 |
SVG | 280 | 1 | 3 | 18,804 |
PO File | 9 | 1,251 | 1,773 | 2,718 |
Markdown | 3 | 309 | 0 | 585 |
JSON | 41 | 3 | 0 | 476 |
JavaScript | 160 | 0 | 7 | 158 |
CSS | 4 | 6 | 18 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 77 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 267 | |
▷ Abstract classes | 2 | 0.75% |
▷ Concrete classes | 265 | 99.25% |
▷ Final classes | 1 | 0.38% |
Methods | 1,542 | |
▷ Static methods | 281 | 18.22% |
▷ Public methods | 1,463 | 94.88% |
▷ Protected methods | 50 | 3.24% |
▷ Private methods | 29 | 1.88% |
Functions | 74 | |
▷ Named functions | 4 | 5.41% |
▷ Anonymous functions | 70 | 94.59% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.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
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/vendor/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/icon-128x128.png | 2.56KB | 1.40KB | ▼ 45.15% |
assets/default-avatar.png | 0.81KB | 0.42KB | ▼ 48.43% |
admin/imgs/extensions/elementor/banner.png | 15.54KB | 10.16KB | ▼ 34.64% |
public/imgs/placeholder.png | 2.93KB | 2.09KB | ▼ 28.56% |