Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.76ms] Passed 4 tests
Analyzing server-side resources used by Recover Abandoned Carts for WooCommerce by ShopMagic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.93 ▲7.04 |
Dashboard /wp-admin | 3.70 ▲0.40 | 46.64 ▼1.54 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.95 ▲5.89 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 93.25 ▼11.29 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 35.46 ▲3.90 |
Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 186 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
plugin_activation_shopmagic-abandoned-carts/shopmagic-abandoned-carts.php |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
wpdesk_requirements_plugins_data |
Browser metrics Passed 4 tests
Recover Abandoned Carts for WooCommerce by ShopMagic: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.07 ▼0.21 | 1.60 ▼0.04 | 44.35 ▲3.05 |
Dashboard /wp-admin | 2,201 ▲23 | 5.61 ▼0.11 | 91.60 ▼21.41 | 38.02 ▼6.13 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.13 ▲0.12 | 39.31 ▼1.09 | 36.30 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.21 ▲2.14 | 660.17 ▲74.91 | 57.39 ▲12.11 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.06 | 100.76 ▲0.88 | 42.21 ▲1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- plugin_activation_shopmagic-abandoned-carts/shopmagic-abandoned-carts.php
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 62× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCart\\Filter\\CartBasedFilter' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Filter/CartItems.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagic\\HookEmitter\\RecurringCleaner' not found in wp-content/plugins/shopmagic-abandoned-carts/src/HookEmitter/CartExpiration.php:15
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCartVendor\\WPDesk_Translatable' not found in wp-content/plugins/shopmagic-abandoned-carts/vendor_prefixed/wp-builder/src/Plugin/SlimPlugin.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCart\\Cart\\BaseCart' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Cart/NullCart.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCartVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/shopmagic-abandoned-carts/vendor_prefixed/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/Assets.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCart\\Placeholder\\CartBasedPlaceholder' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Placeholder/CartItems.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCart\\Placeholder\\CartBasedPlaceholder' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Placeholder/CartLink.php:10
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicCartVendor\\WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Plugin.php:30
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCart\\Cart\\BaseCart' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Cart/AbandonedCart.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagic\\Workflow\\Event\\Event' not found in wp-content/plugins/shopmagic-abandoned-carts/src/Event/AbandonedCartEvent.php:19
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: abandoned carts, abandoned cart, cart recovery, cart abandonment, abandoned cart email
shopmagic-abandoned-carts/shopmagic-abandoned-carts.php Passed 13 tests
Analyzing the main PHP file in "Recover Abandoned Carts for WooCommerce by ShopMagic" version 2.2.10
96 characters long description:
Allows saving customer details on a partial WooCommerce purchase and send abandoned cart emails.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7,508 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 159 | 867 | 2,932 | 6,947 |
JSON | 9 | 0 | 0 | 367 |
CSS | 4 | 19 | 2 | 90 |
JavaScript | 3 | 1 | 1 | 55 |
TypeScript | 1 | 13 | 0 | 49 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 22 | |
Traits | 5 | |
Classes | 110 | |
▷ Abstract classes | 6 | 5.45% |
▷ Concrete classes | 104 | 94.55% |
▷ Final classes | 25 | 24.04% |
Methods | 543 | |
▷ Static methods | 44 | 8.10% |
▷ Public methods | 456 | 83.98% |
▷ Protected methods | 21 | 3.87% |
▷ Private methods | 66 | 12.15% |
Functions | 34 | |
▷ Named functions | 14 | 41.18% |
▷ Anonymous functions | 20 | 58.82% |
Constants | 64 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 64 | 100.00% |
▷ Public constants | 64 | 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
6 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png | 5.63KB | 3.68KB | ▼ 34.58% |
vendor_prefixed/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |