Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲8.17MB] [CPU: ▲72.31ms] 50% from 4 tests
An overview of server-side resources used by WordPress Ecommerce For Creating Fast Online Stores - By SureCart
It is recommended to improve the following
- RAM: Try to keep total memory usage under 10MB (currently 15.31MB on /wp-admin/site-editor.php?path=/wp_template_part/all)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 8.17MB on /wp-admin/site-editor.php?path=/wp_template_part/all)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.44 ▲7.98 | 90.04 ▲45.29 |
Dashboard /wp-admin | 11.49 ▲8.18 | 121.57 ▲66.80 |
Posts /wp-admin/edit.php | 11.62 ▲8.26 | 129.35 ▲82.34 |
Add New Post /wp-admin/post-new.php | 15.35 ▲9.46 | 201.34 ▲110.52 |
Media Library /wp-admin/upload.php | 11.49 ▲8.26 | 128.80 ▲94.80 |
Complete Signup /wp-admin/admin.php?page=sc-complete-signup | 11.64 | 114.66 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 11.72 | 123.98 |
Settings /wp-admin/admin.php?page=sc-settings | 11.71 | 115.00 |
Get Started /wp-admin/admin.php?page=sc-getting-started | 11.63 | 109.76 |
Template Parts /wp-admin/site-editor.php?path=/wp_template_part/all | 15.31 | 161.81 |
Server storage [IO: ▲63.85MB] [DB: ▲0.04MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- Filesystem usage must be lower than 25MB (currently using 63.85MB)
Filesystem: 5,859 new files
Database: 6 new tables, 18 new options
New tables |
---|
wp_actionscheduler_logs |
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_surecart_integrations |
wp_actionscheduler_claims |
wp_surecart_incoming_webhooks |
New WordPress options |
---|
widget_recent-comments |
surecart_integrations_database_version |
db_upgraded |
surecart_checkout_page_id |
surecart_shop_page_id |
widget_theysaidso_widget |
action_scheduler_hybrid_store_demarkation |
surecart_cart_sc_cart_id |
can_compress_scripts |
surecart_incoming_webhooks_database_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Ecommerce For Creating Fast Online Stores - By SureCart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,260 ▲473 | 15.15 ▲0.80 | 31.36 ▲29.56 | 40.37 ▼2.28 |
Dashboard /wp-admin | 2,260 ▲83 | 5.52 ▼0.03 | 83.14 ▼16.76 | 39.26 ▼14.48 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.02 ▼0.06 | 40.37 ▼3.96 | 38.06 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,656 ▲111 | 20.10 ▼4.82 | 742.02 ▲65.46 | 65.59 ▼1.42 |
Media Library /wp-admin/upload.php | 1,468 ▲68 | 4.27 ▲0.04 | 98.65 ▲3.28 | 43.93 ▲1.90 |
Complete Signup /wp-admin/admin.php?page=sc-complete-signup | 1,038 | 3.36 | 42.45 | 51.52 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,317 | 1.79 | 37.30 | 35.18 |
Settings /wp-admin/admin.php?page=sc-settings | 1,913 | 13.20 | 275.57 | 171.69 |
Get Started /wp-admin/admin.php?page=sc-getting-started | 1,396 | 12.04 | 135.77 | 41.41 |
Template Parts /wp-admin/site-editor.php?path=/wp_template_part/all | 1,059 | 18.81 | 404.16 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 6 tables in the database
- wp_actionscheduler_actions
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_surecart_integrations
- wp_surecart_incoming_webhooks
- wp_actionscheduler_claims
- Zombie WordPress options were found after uninstall: 19 options
- theysaidso_admin_options
- can_compress_scripts
- surecart_shop_page_id
- surecart_dashboard_page_id
- surecart_incoming_webhooks_database_version
- widget_theysaidso_widget
- surecart_checkout_page_id
- action_scheduler_hybrid_store_demarkation
- surecart_checkout_sc_form_id
- widget_recent-posts
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/site-editor.php?path=/wp_template_part/all
- > Notice in wp-content/plugins/surecart/app/src/WordPress/Assets/AssetsService.php+104
Trying to get property 'wordpress_plugin_tracking_enabled' of non-object
SRP 0% 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
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/surecart/views/admin/customers/edit.php
- > /wp-content/plugins/surecart/views/admin/products/edit.php
- > /wp-content/plugins/surecart/views/layouts/partials/admin-settings-styles.php
- > /wp-content/plugins/surecart/views/admin/abandoned-orders/edit.php
- > /wp-content/plugins/surecart/views/admin/licenses/edit.php
- > /wp-content/plugins/surecart/views/admin/upgrade-paths/edit.php
- > /wp-content/plugins/surecart/views/layouts/partials/admin-header.php
- > /wp-content/plugins/surecart/views/layouts/partials/customer-dashboard/dashboard-navigation.php
- > /wp-content/plugins/surecart/views/admin/invoices/edit.php
- > /wp-content/plugins/surecart/views/admin/subscriptions/edit.php
- 709× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SureCartBlocks\\Controllers\\BaseController' not found in wp-content/plugins/surecart/packages/blocks/Controllers/SubscriptionController.php:14
- > PHP Fatal error
Uncaught Error: Class 'SureCart\\Rest\\RestServiceProvider' not found in wp-content/plugins/surecart/app/src/Rest/OrderRestServiceProvider.php:12
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/surecart/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'SureCart\\Models\\Model' not found in wp-content/plugins/surecart/app/src/Models/Account.php:8
- > PHP Fatal error
Trait 'SureCartAppCore\\Concerns\\ReadsJsonTrait' not found in wp-content/plugins/surecart/core/app-core/src/Config/Config.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store_Deprecated' not found in wp-content/plugins/surecart/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SureCartCore\\Helpers\\HasAttributesInterface' not found in wp-content/plugins/surecart/core/core/src/Routing/RouteInterface.php:18
- > PHP Fatal error
Uncaught Error: Class 'SureCart\\Permissions\\Models\\ModelPermissionsController' not found in wp-content/plugins/surecart/app/src/Permissions/Models/CustomerPermissionsController.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SureCartCore\\ServiceProviders\\ServiceProviderInterface' not found in wp-content/plugins/surecart/packages/blocks/Blocks/BlockServiceProvider.php:20
- > PHP Fatal error
Uncaught Error: Class 'SureCart\\Models\\Model' not found in wp-content/plugins/surecart/app/src/Models/ShippingMethod.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/site-editor.php?path=/wp_template_part/all
- > Console-api (severe) in wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff+1:19276
Store \"core/interface\" is already registered.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: elementor, learndash, cart, beaver builder, stripe...
surecart/surecart.php Passed 13 tests
The main file in "WordPress Ecommerce For Creating Fast Online Stores - By SureCart" v. 2.11.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
A simple yet powerful headless e-commerce platform designed to grow your business with effortlessly selling online.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected469,294 lines of code in 3,782 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 73,117 | 115,874 | 187,860 |
JSON | 133 | 0 | 0 | 115,692 |
JavaScript | 1,484 | 3,813 | 9,775 | 74,204 |
PHP | 1,107 | 11,897 | 36,893 | 52,649 |
CSS | 172 | 1,735 | 755 | 18,441 |
TypeScript | 501 | 206 | 7,890 | 13,502 |
SVG | 331 | 3 | 1 | 4,706 |
Markdown | 16 | 853 | 0 | 1,848 |
YAML | 9 | 58 | 7 | 250 |
reStructuredText | 1 | 96 | 139 | 97 |
HTML | 4 | 29 | 67 | 29 |
XML | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 187 | |
Interfaces | 47 | |
Traits | 40 | |
Classes | 865 | |
▷ Abstract classes | 35 | 4.05% |
▷ Concrete classes | 830 | 95.95% |
▷ Final classes | 13 | 1.57% |
Methods | 4,159 | |
▷ Static methods | 384 | 9.23% |
▷ Public methods | 3,566 | 85.74% |
▷ Protected methods | 472 | 11.35% |
▷ Private methods | 121 | 2.91% |
Functions | 394 | |
▷ Named functions | 48 | 12.18% |
▷ Anonymous functions | 346 | 87.82% |
Constants | 99 | |
▷ Global constants | 37 | 37.37% |
▷ Class constants | 62 | 62.63% |
▷ Public constants | 61 | 98.39% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 2.49MB with 1.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/forms/default.png | 146.11KB | 55.20KB | ▼ 62.22% |
templates/forms/sections.png | 123.55KB | 47.93KB | ▼ 61.21% |
images/abandoned-hero.png | 35.32KB | 34.71KB | ▼ 1.73% |
images/starter-templates/scratch.png | 83.22KB | 33.88KB | ▼ 59.28% |
templates/forms/full-page.png | 150.14KB | 61.74KB | ▼ 58.88% |