Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲10.64MB] [CPU: ▲64.41ms] 75% from 4 tests
A check of server-side resources used by BigCommerce For WordPress
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 10.64MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.24 ▲9.77 | 95.94 ▲56.00 |
Dashboard /wp-admin | 14.65 ▲11.34 | 109.44 ▲57.67 |
Posts /wp-admin/edit.php | 13.90 ▲10.54 | 122.29 ▲76.80 |
Add New Post /wp-admin/post-new.php | 16.81 ▲10.91 | 164.35 ▲67.16 |
Media Library /wp-admin/upload.php | 14.65 ▲11.42 | 139.67 ▲105.60 |
Server storage [IO: ▲17.60MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,885 new files
Database: 1 new table, 23 new options
New tables |
---|
wp_bc_queue |
New WordPress options |
---|
bigcommerce_orders_page_id |
db_upgraded |
bigcommerce_gift_balance_page_id |
schema-BigCommerce\Schema\Queue_Table |
bigcommerce_checkout_complete_page_id |
bigcommerce_account_page_id |
widget_recent-comments |
bigcommerce_address_page_id |
bigcommerce_flushed_rewrites |
schema-BigCommerce\Schema\User_Roles |
... |
Browser metrics Passed 4 tests
Checking browser requirements for BigCommerce For WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,546 ▼241 | 14.88 ▲0.64 | 0.56 ▼1.50 | 16.47 ▼29.26 |
Dashboard /wp-admin | 2,290 ▲113 | 6.66 ▲1.05 | 132.32 ▲41.05 | 46.02 ▲4.14 |
Posts /wp-admin/edit.php | 2,206 ▲106 | 3.95 ▲1.96 | 62.77 ▲26.18 | 36.48 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,712 ▲186 | 27.03 ▲3.91 | 734.37 ▲51.60 | 47.32 ▼29.87 |
Media Library /wp-admin/upload.php | 1,533 ▲136 | 5.04 ▲0.86 | 100.35 ▲1.92 | 48.14 ▲3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_bc_queue
- Zombie WordPress options detected upon uninstall: 11 options
- bigcommerce_checkout_complete_page_id
- widget_theysaidso_widget
- widget_bigcommerce_product_categories
- schema-BigCommerce\Schema\Queue_Table
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_bigcommerce_mini_cart
- widget_bigcommerce_currency_switcher
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 28× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/bigcommerce/templates/public/archive-bigcommerce_product.php
- > /wp-content/plugins/bigcommerce/templates/public/components/reviews/review-list-pagination.php
- > /wp-content/plugins/bigcommerce/templates/public/amp/components/cart/cart.php
- > /wp-content/plugins/bigcommerce/templates/public/components/wishlist/detail.php
- > /wp-content/plugins/bigcommerce/templates/public/components/gift-certificates/purchase-shortcode.php
- > /wp-content/plugins/bigcommerce/templates/public/components/products/product-shortcode-pagination.php
- > /wp-content/plugins/bigcommerce/templates/public/amp/archive-bigcommerce_product.php
- > /wp-content/plugins/bigcommerce/templates/public/components/products/related-product-card.php
- > /wp-content/plugins/bigcommerce/templates/public/components/gift-certificates/balance-shortcode.php
- > /wp-content/plugins/bigcommerce/templates/public/components/orders/orders-shortcode-pagination.php
- 938× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bigcommerce/templates/public/components/option-types/option-product-list-with-images.php:17
- > PHP Fatal error
Uncaught Error: Class 'BigCommerce\\Api\\v3\\Model\\VariantBase' not found in wp-content/plugins/bigcommerce/vendor/moderntribe/bigcommerce-api-php-v3/src/Model/VariantPut.php:29
- > PHP Fatal error
Uncaught Error: Class 'BigCommerce\\Api\\v3\\Model\\OptionBase' not found in wp-content/plugins/bigcommerce/vendor/moderntribe/bigcommerce-api-php-v3/src/Model/Option.php:29
- > PHP Fatal error
Uncaught Error: Class 'BigCommerce\\Templates\\Controller' not found in wp-content/plugins/bigcommerce/src/BigCommerce/Templates/Option_Types/Option_Type.php:8
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/bigcommerce/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bigcommerce/templates/public/components/orders/order-details.php:35
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/bigcommerce/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php:21
- > PHP Notice
Undefined variable: tracking_number in wp-content/plugins/bigcommerce/templates/public/components/orders/order-shipment.php on line 30
- > PHP Fatal error
Uncaught Error: Interface 'BigCommerce\\Shortcodes\\Shortcode' not found in wp-content/plugins/bigcommerce/src/BigCommerce/Shortcodes/Login_Form.php:8
- > PHP Fatal error
Uncaught Error: Class 'BigCommerce\\Settings\\Sections\\Settings_Section' not found in wp-content/plugins/bigcommerce/src/BigCommerce/Settings/Sections/Gift_Certificates.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
bigcommerce/bigcommerce.php 92% from 13 tests
The main PHP file in "BigCommerce For WordPress" ver. 5.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)
Code Analysis 97% from 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 plugin188,995 lines of code in 1,672 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,371 | 33,742 | 71,468 | 135,564 |
CSS | 13 | 128 | 852 | 18,093 |
YAML | 12 | 68 | 13 | 12,521 |
JavaScript | 191 | 3,988 | 3,675 | 12,517 |
Markdown | 30 | 1,101 | 0 | 3,654 |
HTML | 12 | 12 | 2 | 2,685 |
Mustache | 5 | 109 | 0 | 1,133 |
JSON | 17 | 0 | 0 | 1,065 |
C | 1 | 188 | 47 | 879 |
Sass | 2 | 7 | 0 | 273 |
SVG | 6 | 0 | 4 | 142 |
C/C++ Header | 2 | 40 | 46 | 132 |
reStructuredText | 1 | 94 | 135 | 97 |
XML | 4 | 5 | 0 | 79 |
Bourne Shell | 2 | 25 | 8 | 65 |
GraphQL | 2 | 1 | 0 | 55 |
m4 | 1 | 11 | 11 | 41 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,155.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 112 | |
Interfaces | 20 | |
Traits | 13 | |
Classes | 1,162 | |
▷ Abstract classes | 34 | 2.93% |
▷ Concrete classes | 1,128 | 97.07% |
▷ Final classes | 2 | 0.18% |
Methods | 12,142 | |
▷ Static methods | 1,417 | 11.67% |
▷ Public methods | 10,541 | 86.81% |
▷ Protected methods | 779 | 6.42% |
▷ Private methods | 822 | 6.77% |
Functions | 1,081 | |
▷ Named functions | 61 | 5.64% |
▷ Anonymous functions | 1,020 | 94.36% |
Constants | 2,254 | |
▷ Global constants | 10 | 0.44% |
▷ Class constants | 2,244 | 99.56% |
▷ Public constants | 2,244 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/test/__coverage__/lcov-report/sort-arrow-sprite.png | 0.20KB | 0.14KB | ▼ 29.67% |
assets/img/admin/Gutenberg-Block_Wishlist.png | 46.61KB | 17.13KB | ▼ 63.26% |
assets/img/admin/Gutenberg-Block_Gift-Cert-Form.png | 16.69KB | 8.03KB | ▼ 51.91% |
assets/img/admin/bigcommerce-resource-thumbnail-2x.png | 7.02KB | 3.53KB | ▼ 49.64% |
assets/img/admin/Gutenberg-Block_Cart.png | 27.36KB | 12.12KB | ▼ 55.69% |