Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼11.07ms] Passed 4 tests
Server-side resources used by Business to Customer Rest API for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.10 ▼1.11 |
Dashboard /wp-admin | 3.39 ▲0.04 | 49.35 ▼16.42 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.28 ▼6.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 96.02 ▼20.58 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.79 ▲0.23 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 284 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Business to Customer Rest API for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.67 ▲0.32 | 1.69 ▼0.03 | 43.64 ▼3.27 |
Dashboard /wp-admin | 2,204 ▲30 | 5.56 ▼0.02 | 82.98 ▼19.71 | 42.21 ▼7.25 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.13 ▲0.14 | 41.12 ▼3.63 | 38.09 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.36 ▲0.28 | 613.00 ▼61.30 | 70.06 ▲15.15 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.23 ▼0.15 | 105.49 ▼13.28 | 45.75 ▼2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/update_certs.php
- 186× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/OrderService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/CustomerBalanceTransaction.php:34
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Service/ChargeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Recipient.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/business-to-customer-rest-apis-for-woocommerce/vendor/stripe/stripe-php/lib/Source.php:55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 73% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Business to Customer Rest API for Woocommerce===
) - Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in business-to-customer-rest-apis-for-woocommerce/assets to your readme.txt
business-to-customer-rest-apis-for-woocommerce/lets-woo-api.php 54% from 13 tests
The main PHP script in "Business to Customer Rest API for Woocommerce" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "6.1")
- Main file name: Name the main plugin file the same as the plugin slug ("business-to-customer-rest-apis-for-woocommerce.php" instead of "lets-woo-api.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.4")
- Domain Path: The domain path folder does not exist ("/i18n/languages/")
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
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/business-to-customer-rest-apis-for-woocommerce/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 | 253 | 2,381 | 9,247 | 9,417 |
CSS | 1 | 1,992 | 8 | 9,037 |
Markdown | 4 | 761 | 0 | 1,214 |
JSON | 4 | 1 | 0 | 202 |
XML | 2 | 0 | 0 | 38 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 227 | |
▷ Abstract classes | 10 | 4.41% |
▷ Concrete classes | 217 | 95.59% |
▷ Final classes | 0 | 0.00% |
Methods | 819 | |
▷ Static methods | 185 | 22.59% |
▷ Public methods | 750 | 91.58% |
▷ Protected methods | 29 | 3.54% |
▷ Private methods | 40 | 4.88% |
Functions | 12 | |
▷ Named functions | 2 | 16.67% |
▷ Anonymous functions | 10 | 83.33% |
Constants | 696 | |
▷ Global constants | 8 | 1.15% |
▷ Class constants | 688 | 98.85% |
▷ Public constants | 688 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin