Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php+18
Undefined variable: post_information
Server metrics [RAM: ▼1.24MB] [CPU: ▼48.16ms] Passed 4 tests
Server-side resources used by WCF Save & Share Cart for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 12.66 ▼49.41 |
Dashboard /wp-admin | 2.77 ▼0.53 | 14.76 ▼33.21 |
Posts /wp-admin/edit.php | 2.77 ▼0.58 | 16.78 ▼32.39 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 15.27 ▼77.64 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 16.34 ▼17.60 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wcf_custom_cart |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WCF Save & Share Cart for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.20 ▼1.17 | 1.86 ▼0.34 | 35.85 ▼20.67 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼1.03 | 107.49 ▲4.84 | 42.16 ▲0.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.06 ▲1.17 | 36.49 ▲5.02 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.12 ▼0.16 | 634.36 ▼26.70 | 57.72 ▲0.57 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.26 ▲0.05 | 95.15 ▼2.17 | 41.02 ▼3.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php+169
Undefined index: wcf-cart
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wcf_custom_cart
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/modal.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: share cart, cart sharing, save cart, woocommerce
wcf-save-and-share-cart-for-woocommerce/wcf_save_share_cart.php 92% from 13 tests
The main file in "WCF Save & Share Cart for WooCommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wcf-save-and-share-cart-for-woocommerce.php" instead of "wcf_save_share_cart.php")
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 plugin217 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 105 | 24 | 214 |
CSS | 2 | 0 | 9 | 2 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin