Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲15.27ms] Passed 4 tests
Server-side resources used by eCommerce Shopping Cart and Funnel Builder - Studiocart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.20 ▲2.74 | 57.34 ▲14.73 |
Dashboard /wp-admin | 4.72 ▲1.42 | 62.49 ▲14.96 |
Posts /wp-admin/edit.php | 4.80 ▲1.44 | 61.76 ▲13.95 |
Add New Post /wp-admin/post-new.php | 7.38 ▲1.49 | 113.13 ▲17.42 |
Media Library /wp-admin/upload.php | 4.66 ▲1.44 | 60.68 ▲26.66 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 5.02 | 52.22 |
Server storage [IO: ▲8.79MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 633 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_ncs_tax_rate |
New WordPress options |
---|
theysaidso_admin_options |
_sc_api_key |
fs_active_plugins |
_sc_log_file |
can_compress_scripts |
widget_theysaidso_widget |
fs_accounts |
db_upgraded |
widget_recent-comments |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
A check of browser resources used by eCommerce Shopping Cart and Funnel Builder - Studiocart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲240 | 14.06 ▼0.35 | 12.27 ▲10.13 | 33.57 ▼11.38 |
Dashboard /wp-admin | 2,253 ▲65 | 5.86 ▲0.98 | 97.13 ▼4.80 | 43.14 ▼2.75 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.02 ▲0.03 | 35.94 ▼0.45 | 38.43 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.40 ▲0.26 | 611.97 ▼63.40 | 46.66 ▼7.05 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.23 ▲0.03 | 105.60 ▲6.65 | 53.51 ▲4.30 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,098 | 1.71 | 27.49 | 30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/studiocart/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 1 table
- wp_ncs_tax_rate
- This plugin did not uninstall successfully, leaving 12 options in the database
- _sc_log_file
- fs_debug_mode
- _sc_decimal_number
- db_upgraded
- _sc_api_key
- fs_active_plugins
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- fs_accounts
- ...
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/studiocart/includes/vendor/activecampaign/api-php/examples.php
- > /wp-content/plugins/studiocart/models/ScrtSubscription.php
- > /wp-content/plugins/studiocart/models/ScrtOrder.php
- > /wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/studiocart/public/partials/ncs-cart-public-display.php
- > /wp-content/plugins/studiocart/admin/partials/ncs-cart-admin-section-messages.php
- > /wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/build.php
- 317× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/studiocart/public/templates/my-account/forms/change-card.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php:7
- > PHP Notice
Undefined variable: count in wp-content/plugins/studiocart/admin/partials/ncs-cart-admin-field-repeater.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/lib/Service/MandateService.php:7
- > PHP Notice
Undefined index: mc_currency in wp-content/plugins/studiocart/public/webhooks/paypal.php on line 78
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/studiocart/public/templates/checkout-shortcode-2-step.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/lib/SetupAttempt.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/lib/Service/PriceService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/studiocart/public/templates/order-confirmation.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/lib/Service/AccountService.php:7
- > 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sales funnel, ecommerce, shopping cart, elementor
studiocart/studiocart.php 85% from 13 tests
The main file in "eCommerce Shopping Cart and Funnel Builder - Studiocart" v. 2.5.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/studiocart/includes/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 472 | 14,710 | 30,907 | 75,389 |
JSON | 12 | 2 | 0 | 34,354 |
JavaScript | 24 | 1,094 | 1,282 | 6,102 |
CSS | 27 | 54 | 68 | 3,197 |
Sass | 2 | 545 | 0 | 3,025 |
Markdown | 7 | 1,033 | 0 | 1,828 |
JSX | 2 | 12 | 9 | 70 |
XML | 1 | 0 | 0 | 31 |
SVG | 7 | 0 | 0 | 23 |
make | 1 | 8 | 0 | 23 |
Bourne Shell | 1 | 3 | 0 | 8 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 9 | |
Traits | 7 | |
Classes | 324 | |
▷ Abstract classes | 12 | 3.70% |
▷ Concrete classes | 312 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 2,689 | |
▷ Static methods | 433 | 16.10% |
▷ Public methods | 2,113 | 78.58% |
▷ Protected methods | 57 | 2.12% |
▷ Private methods | 519 | 19.30% |
Functions | 273 | |
▷ Named functions | 245 | 89.74% |
▷ Anonymous functions | 28 | 10.26% |
Constants | 924 | |
▷ Global constants | 108 | 11.69% |
▷ Class constants | 816 | 88.31% |
▷ Public constants | 816 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/checkmark.png | 150.34KB | 13.27KB | ▼ 91.18% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |