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.06MB] [CPU: ▼8.31ms] Passed 4 tests
An overview of server-side resources used by ShopMagic for Contact Form 7 and WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.33 ▼3.65 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.33 ▼8.89 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.41 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.35 ▼17.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.78 ▲1.29 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 159 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
plugin_activation_shopmagic-for-contact-form-7/shopmagic-for-contact-form-7.php |
wpdesk_requirements_plugins_data |
Browser metrics Passed 4 tests
ShopMagic for Contact Form 7 and WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.35 ▼0.00 | 1.61 ▼0.07 | 36.42 ▼7.62 |
Dashboard /wp-admin | 2,201 ▲27 | 5.58 ▼0.01 | 92.46 ▼11.94 | 38.84 ▼5.06 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.10 ▲0.09 | 40.05 ▲1.93 | 37.56 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 23.21 ▼1.71 | 691.90 ▲34.63 | 51.62 ▼19.21 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.15 ▼0.04 | 102.34 ▼6.19 | 45.49 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- plugin_activation_shopmagic-for-contact-form-7/shopmagic-for-contact-form-7.php
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 34× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShopMagicCF7Vendor\\WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php:15
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCF7Vendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/OptInPage.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCF7Vendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/Simple/SimpleFactory.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagic\\Workflow\\Placeholder\\Placeholder' not found in wp-content/plugins/shopmagic-for-contact-form-7/src/FormBasedPlaceholder.php:12
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCF7Vendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/Assets.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDesk\\ShopMagicCF7\\FormBasedPlaceholder' not found in wp-content/plugins/shopmagic-for-contact-form-7/src/Placeholder/FormId.php:8
- > PHP Warning
require_once(wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-notice/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-notice/init.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'ShopMagicCF7Vendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php:11
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/shopmagic-for-contact-form-7/vendor/psr/log/Psr/Log/NullLogger.php:13
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: contact form 7 woocommerce, form submission, cf7, contact form, marketing automation
shopmagic-for-contact-form-7/shopmagic-for-contact-form-7.php Passed 13 tests
The principal PHP file in "ShopMagic for Contact Form 7 and WooCommerce" v. 1.3.5 is loaded by WordPress automatically on each request
76 characters long description:
Allows creating WooCommerce automations based on Contact Form 7 submissions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,736 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 522 | 3,111 | 5,098 |
JSON | 10 | 0 | 0 | 477 |
CSS | 2 | 19 | 2 | 83 |
JavaScript | 2 | 1 | 0 | 53 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 4.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 27 | |
Traits | 7 | |
Classes | 80 | |
▷ Abstract classes | 6 | 7.50% |
▷ Concrete classes | 74 | 92.50% |
▷ Final classes | 7 | 9.46% |
Methods | 425 | |
▷ Static methods | 34 | 8.00% |
▷ Public methods | 372 | 87.53% |
▷ Protected methods | 9 | 2.12% |
▷ Private methods | 44 | 10.35% |
Functions | 30 | |
▷ Named functions | 14 | 46.67% |
▷ Anonymous functions | 16 | 53.33% |
Constants | 49 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 49 | 100.00% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png | 5.63KB | 3.68KB | ▼ 34.58% |