Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.83MB] [CPU: ▲20.06ms] Passed 4 tests
Analyzing server-side resources used by Ecwid Ecommerce Shopping Cart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.80 ▲2.34 | 54.38 ▲12.74 |
Dashboard /wp-admin | 6.26 ▲2.95 | 69.84 ▲18.68 |
Posts /wp-admin/edit.php | 6.39 ▲3.04 | 65.03 ▲14.86 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.56 | 2,741.13 ▲2,641.87 |
Media Library /wp-admin/upload.php | 6.24 ▲3.01 | 72.82 ▲33.96 |
/wp-admin/admin.php?page=ecwid-advanced | 6.12 | 62.84 |
/wp-admin/admin.php?page=ec-admin-mobile | 6.21 | 60.45 |
/wp-admin/admin.php?page=ec-params | 6.21 | 69.67 |
/wp-admin/admin.php?page=ecwid-debug | 6.12 | 63.57 |
/wp-admin/admin.php?page=ec-sync | 6.21 | 59.92 |
Storefront /wp-admin/admin.php?page=ec-storefront-settings | 6.29 | 65.91 |
/wp-admin/admin.php?page=ecwid-help | 6.12 | 56.63 |
/wp-admin/admin.php?page=ecwid-sync | 6.12 | 51.70 |
/wp-admin/admin.php?page=ecwid | 6.12 | 52.38 |
/wp-admin/admin.php?page=ecwid-install-theme | 6.12 | 54.62 |
Server storage [IO: ▲7.49MB] [DB: ▲0.38MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 508 new files
Database: no new tables, 74 new options
New WordPress options |
---|
ecwid_support_email |
ecwid_hide_canonical |
ecwid_plugin_version |
ecwid_floating_shopping_cart_mode |
ecwid_show_vote_message |
ecwid_historyjs_html4mode |
ec_store_cart_widget_layout |
ecwid_log_cache |
widget_ecwidrandomproduct |
ecwid_plugin_migration_since_version |
... |
Browser metrics Passed 4 tests
Ecwid Ecommerce Shopping Cart: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,250 ▲488 | 13.80 ▼0.54 | 7.83 ▲6.06 | 29.92 ▼17.00 |
Dashboard /wp-admin | 2,528 ▲347 | 5.24 ▼0.44 | 102.53 ▼0.96 | 51.66 ▲9.37 |
Posts /wp-admin/edit.php | 2,333 ▲233 | 2.71 ▲0.77 | 45.32 ▲7.09 | 42.52 ▲9.26 |
Add New Post /wp-admin/post-new.php | 7,212 ▲5,533 | 21.76 ▼0.02 | 1,104.97 ▲500.78 | 97.21 ▲56.76 |
Media Library /wp-admin/upload.php | 1,653 ▲250 | 4.75 ▲0.42 | 120.64 ▲21.04 | 58.34 ▲14.07 |
/wp-admin/admin.php?page=ecwid-advanced | 1,119 | 2.29 | 35.59 | 40.44 |
/wp-admin/admin.php?page=ec-admin-mobile | 1,088 | 2.14 | 38.24 | 41.17 |
/wp-admin/admin.php?page=ec-params | 1,568 | 2.17 | 37.02 | 42.27 |
/wp-admin/admin.php?page=ecwid-debug | 28 | 0.41 | 0.09 | 3.92 |
/wp-admin/admin.php?page=ec-sync | 1,044 | 2.30 | 34.60 | 33.69 |
Storefront /wp-admin/admin.php?page=ec-storefront-settings | 2,233 | 2.54 | 36.59 | 46.21 |
/wp-admin/admin.php?page=ecwid-help | 1,312 | 2.22 | 35.43 | 70.59 |
/wp-admin/admin.php?page=ecwid-sync | 28 | 0.41 | 0.08 | 3.80 |
/wp-admin/admin.php?page=ecwid | 1,045 | 2.22 | 38.20 | 52.60 |
/wp-admin/admin.php?page=ecwid-install-theme | 28 | 0.41 | 0.08 | 3.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.38MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 57 options in the database
- widget_ecwidbadge
- widget_ecwidlatestproducts
- widget_ecwidnsfminicart
- ecwid_hide_prefetch
- ecwid_store_pages
- ecwid_remove_emoji
- theysaidso_admin_options
- widget_theysaidso_widget
- ecwid_hide_canonical
- ecwid_static_home_page_enabled
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ecwid-help
- > Notice in wp-content/plugins/ecwid-shopping-cart/includes/class-ecwid-message-manager.php+80
Undefined index: primary_blank
- > GET request to /wp-admin/admin.php?page=ec-admin-mobile
- > Notice in wp-content/plugins/ecwid-shopping-cart/templates/admin-footer.php+4
Undefined variable: show_reconnect
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 take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ecwid-shopping-cart/lib/html-catalog-templates/category.php
- > /wp-content/plugins/ecwid-shopping-cart/templates/shortcode-pb-placeholder.php
- > /wp-content/plugins/ecwid-shopping-cart/templates/shortcode-stub-buynow.tpl.php
- 287× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ecwid-shopping-cart/templates/admin-params.php:11
- > PHP Warning
require_once(ECWID_THEMES_DIR/class-ecwid-theme-base.php): failed to open stream: No such file or directory in wp-content/plugins/ecwid-shopping-cart/includes/themes/class-ecwid-theme-enfold.php on line 2
- > PHP Warning
Use of undefined constant ECWID_PLUGIN_DIR - assumed 'ECWID_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecwid-shopping-cart/includes/widgets/class-ecwid-widget-products-base.php on line 3
- > PHP Warning
Use of undefined constant ECWID_PLUGIN_DIR - assumed 'ECWID_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecwid-shopping-cart/lib/ecwid_platform.php on line 4
- > PHP Warning
Use of undefined constant ECWID_PLUGIN_DIR - assumed 'ECWID_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecwid-shopping-cart/includes/widgets/class-ecwid-widget-minicart.php on line 3
- > PHP Warning
require_once(ECWID_THEMES_DIR/class-ecwid-theme-base.php): failed to open stream: No such file or directory in wp-content/plugins/ecwid-shopping-cart/includes/themes/class-ecwid-theme-bridge.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ECWID_PLUGIN_DIRincludes/integrations/class-ecwid-integration-cache-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/ecwid-shopping-cart/includes/integrations/class-ecwid-integration-wprocket.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ecwid_Importer_Task_Product_Base' not found in wp-content/plugins/ecwid-shopping-cart/includes/importer/task/class-ecwid-importer-task-import-woo-product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ecwid_wrap_shortcode_content() in wp-content/plugins/ecwid-shopping-cart/templates/product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/ecwid-shopping-cart/includes/class-ecwid-store-editor.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=ecwid-debug
- > Network (severe)
wp-admin/admin.php?page=ec-store-debug - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=ecwid-sync
- > Network (severe)
wp-admin/admin.php?page=ec-store-sync - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=ecwid-install-theme
- > Network (severe)
wp-admin/admin.php?page=ec-store-install-theme - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: shopping cart, online store, e-commerce, storefront, ecommerce
ecwid-shopping-cart/ecwid-shopping-cart.php Passed 13 tests
The principal PHP file in "Ecwid Ecommerce Shopping Cart" v. 6.12.5 is loaded by WordPress automatically on each request
137 characters long description:
Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin47,261 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 199 | 5,831 | 1,847 | 23,247 |
CSS | 60 | 2,005 | 288 | 10,685 |
PO File | 7 | 3,381 | 3,709 | 6,856 |
JavaScript | 41 | 1,174 | 606 | 4,150 |
JSX | 10 | 231 | 260 | 1,087 |
SVG | 58 | 4 | 34 | 873 |
Sass | 1 | 66 | 0 | 304 |
JSON | 1 | 0 | 0 | 59 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 151 | |
▷ Abstract classes | 14 | 9.27% |
▷ Concrete classes | 137 | 90.73% |
▷ Final classes | 0 | 0.00% |
Methods | 1,073 | |
▷ Static methods | 270 | 25.16% |
▷ Public methods | 864 | 80.52% |
▷ Protected methods | 206 | 19.20% |
▷ Private methods | 3 | 0.28% |
Functions | 149 | |
▷ Named functions | 148 | 99.33% |
▷ Anonymous functions | 1 | 0.67% |
Constants | 218 | |
▷ Global constants | 32 | 14.68% |
▷ Class constants | 186 | 85.32% |
▷ Public constants | 186 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
60 PNG files occupy 1.42MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gutenberg/categories-menu-preview.png | 0.76KB | 0.29KB | ▼ 62.66% |
images/gutenberg/categories5.png | 55.70KB | 12.24KB | ▼ 78.02% |
images/icon-sidebar-active.png | 20.31KB | 0.55KB | ▼ 97.29% |
images/icon-title.png | 20.54KB | 0.94KB | ▼ 95.41% |
images/gutenberg/categories1.png | 36.71KB | 6.89KB | ▼ 81.23% |