Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.09ms] Passed 4 tests
Server-side resources used by Custom Cart Link for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.28 ▼9.23 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.71 ▼14.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.17 ▼4.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.35 ▼8.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.23 ▼0.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Cart Link for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.34 ▼0.37 | 1.60 ▼0.04 | 39.48 ▼3.96 |
Dashboard /wp-admin | 2,200 ▲22 | 5.48 ▼0.25 | 88.59 ▼21.93 | 39.91 ▼0.43 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.00 | 39.88 ▼0.70 | 36.47 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▲6 | 23.05 ▼0.14 | 670.67 ▼6.78 | 54.72 ▲1.50 |
Media Library /wp-admin/upload.php | 1,399 ▲5 | 4.19 ▲0.01 | 99.69 ▲0.71 | 42.59 ▲0.12 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'IC\\Plugin\\CartLinkWooCommerce\\Campaign\\CampaignActions\\AbstractAction' not found in wp-content/plugins/cart-link-for-woocommerce/src/Campaign/CampaignActions/AddProductsAction.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cart-link-for-woocommerce/views/html-metabox-actions.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cart-link-for-woocommerce/src/Campaign/Metabox/Products/ProductsTable.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/cart-link-for-woocommerce/views/html-notice-woocommerce-required.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cart-link-for-woocommerce/views/html-table-products.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/cart-link-for-woocommerce/views/html-notice-no-campaigns.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cart-link-for-woocommerce/views/html-filter-campaign-field.php:1
- > PHP Fatal error
Uncaught Error: Class 'IC\\Plugin\\CartLinkWooCommerce\\Campaign\\CampaignActions\\AbstractAction' not found in wp-content/plugins/cart-link-for-woocommerce/src/Campaign/CampaignActions/ClearCartAction.php:7
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in cart-link-for-woocommerce/assets to your readme.txt
cart-link-for-woocommerce/index.php 85% from 13 tests
The main PHP script in "Custom Cart Link for WooCommerce" version 1.5.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cart-link-for-woocommerce.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,774 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 491 | 955 | 1,767 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
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.30 |
Average class complexity | 5.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 1 | 3.12% |
▷ Concrete classes | 31 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 18 | 11.54% |
▷ Public methods | 139 | 89.10% |
▷ Protected methods | 2 | 1.28% |
▷ Private methods | 15 | 9.62% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 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