Benchmarks
Plugin footprint 48% 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.63MB] [CPU: ▼298.94ms] Passed 4 tests
An overview of server-side resources used by CT Commerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.01 ▲3.49 | 66.10 ▲7.00 |
Dashboard /wp-admin | 6.99 ▲3.58 | 53.44 ▲16.90 |
Posts /wp-admin/edit.php | 7.25 ▲3.60 | 65.04 ▲27.35 |
Add New Post /wp-admin/post-new.php | 6.81 ▼0.16 | 42.69 ▼1,230.89 |
Media Library /wp-admin/upload.php | 6.88 ▲3.58 | 37.36 ▲11.23 |
Server storage [IO: ▲5.82MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 317 new files
Database: 10 new tables, 5 new options
New tables |
---|
wp_ctCommerceCustomerInfo |
wp_ctCommerceProducts |
wp_ctCommerceCompleteOrders |
wp_ctCommerceRefund |
wp_ctCommerceProductRating |
wp_ctCommercePendingOrders |
wp_ctCommercePurgedProducts |
wp_ctCommerceCustomerHistory |
wp_ctCommerceProductCategory |
wp_ctCommerceDiscount |
New WordPress options |
---|
widget_ctcommerce_cart_widget |
category_children |
widget_ctcommerce_user_login_registration_widget |
widget_ctcommerce_category_widget |
widget_ctcommerce_coupon_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CT Commerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,181 ▲427 | 18.26 ▲2.29 | 18.55 ▲12.62 | 2.84 ▲0.64 |
Dashboard /wp-admin | 3,117 ▲266 | 8.32 ▲2.11 | 142.12 ▼5.21 | 172.85 ▼54.25 |
Posts /wp-admin/edit.php | 2,963 ▲278 | 5.19 ▲1.97 | 147.39 ▲76.81 | 185.46 ▼7.93 |
Add New Post /wp-admin/post-new.php | 1,688 ▲28 | 21.17 ▼1.28 | 430.58 ▼16.17 | 174.79 ▲12.66 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.63 ▲0.14 | 113.54 ▼28.11 | 215.18 ▲20.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ct-commerce/classes/ctCommerceAdminPanelProcessing.php+303
Trying to access array offset on value of type null
- Zombie tables were found after uninstall: 10 tables
- wp_ctCommerceCustomerHistory
- wp_ctCommerceCompleteOrders
- wp_ctCommerceProductCategory
- wp_ctCommerceProducts
- wp_ctCommercePendingOrders
- wp_ctCommerceRefund
- wp_ctCommerceDiscount
- wp_ctCommerceCustomerInfo
- wp_ctCommercePurgedProducts
- wp_ctCommerceProductRating
- This plugin does not fully uninstall, leaving 5 options in the database
- widget_ctcommerce_category_widget
- widget_ctcommerce_user_login_registration_widget
- category_children
- widget_ctcommerce_cart_widget
- widget_ctcommerce_coupon_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/update_certs.php
- > /wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/build.php
- 205× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Exception/OAuth/InvalidScopeException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Service/Reporting/ReportTypeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Service/Checkout/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/OrderReturn.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/InvoiceItem.php:41
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Reporting/ReportRun.php:30
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/File.php:30
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Issuing/Card.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/lib/Error/ApiConnection.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Featured product page), #2 (Product page with built-in social sharing), #3 (Cart preview widget), #4 (Product category widget), #5 (User login widget), #6 (Built in CTC overlay), #7 (Sales activities snapshot), #8 (Product category bar-chart), #9 (Admin panel product list), #10 (Admin panel discount list), #11 (Pending orders list), #12 (Complete orders list), #13 (CT commerce auto generated menu), #14 (Tooltip cart preview), #15 (Check out page), #16 (Built in user registration for in modal window)
- Requires php: Version not formatted correctly
ct-commerce/ctCommerce.php 92% from 13 tests
"CT Commerce" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ct-commerce.php" instead of "ctCommerce.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/data/ca-certificates 2.crt
- ☣ wp-content/plugins/ct-commerce/classes/otherContent/payment/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 267 | 5,036 | 9,878 | 14,013 |
CSS | 3 | 1,431 | 105 | 3,641 |
JavaScript | 4 | 670 | 477 | 3,042 |
Markdown | 6 | 812 | 0 | 1,378 |
XML | 3 | 0 | 0 | 61 |
JSON | 1 | 0 | 0 | 48 |
YAML | 3 | 7 | 1 | 39 |
make | 1 | 9 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 7 | |
Traits | 14 | |
Classes | 240 | |
▷ Abstract classes | 11 | 4.58% |
▷ Concrete classes | 229 | 95.42% |
▷ Final classes | 0 | 0.00% |
Methods | 964 | |
▷ Static methods | 174 | 18.05% |
▷ Public methods | 866 | 89.83% |
▷ Protected methods | 38 | 3.94% |
▷ Private methods | 60 | 6.22% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 690 | |
▷ Global constants | 5 | 0.72% |
▷ Class constants | 685 | 99.28% |
▷ Public constants | 685 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 3.87MB with 2.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-9.png | 276.49KB | 70.23KB | ▼ 74.60% |
screenshot-12.png | 227.15KB | 71.58KB | ▼ 68.49% |
screenshot-11.png | 129.92KB | 39.39KB | ▼ 69.69% |
screenshot-16.png | 249.13KB | 75.07KB | ▼ 69.87% |
screenshot-4.png | 123.74KB | 30.54KB | ▼ 75.32% |