Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲0.08ms] Passed 4 tests
Analyzing server-side resources used by ConvertKit for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 44.87 ▲2.15 |
Dashboard /wp-admin | 3.78 ▲0.48 | 50.07 ▲0.02 |
Posts /wp-admin/edit.php | 3.84 ▲0.47 | 48.07 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 96.52 ▼1.54 |
Media Library /wp-admin/upload.php | 3.71 ▲0.47 | 38.70 ▲6.17 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for ConvertKit for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.37 ▲0.02 | 1.84 ▼0.16 | 41.62 ▼2.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.06 | 86.73 ▼15.13 | 39.31 ▼6.26 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 39.27 ▼0.89 | 36.12 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▲0.08 | 684.85 ▼2.34 | 45.46 ▼12.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.13 | 96.29 ▼2.95 | 40.81 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/convertkit-for-woocommerce/views/backend/custom-field-dropdown-field.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/convertkit-for-woocommerce/includes/class-ckwc-integration.php:16
- > PHP Warning
Use of undefined constant CKWC_PLUGIN_PATH - assumed 'CKWC_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/convertkit-for-woocommerce/views/backend/post-type/meta-box.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/convertkit-for-woocommerce/vendor/convertkit/convertkit-wordpress-libraries/src/views/review-request.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/convertkit-for-woocommerce/views/backend/settings/link-button.php:12
- > PHP Fatal error
Uncaught Error: Class 'CKWC_Resource' not found in wp-content/plugins/convertkit-for-woocommerce/includes/class-ckwc-resource-forms.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/convertkit-for-woocommerce/views/backend/post-type/disabled.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/convertkit-for-woocommerce/views/backend/settings/sync-past-orders.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/convertkit-for-woocommerce/views/backend/settings/subscription.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/convertkit-for-woocommerce/views/backend/settings/settings.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: woocommerce, email, convertkit, marketing, embed form...
convertkit-for-woocommerce/woocommerce-convertkit.php 77% from 13 tests
This is the main PHP file of "ConvertKit for WooCommerce" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("convertkit-for-woocommerce.php" instead of "woocommerce-convertkit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,798 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,268 | 3,037 | 3,286 |
JavaScript | 7 | 137 | 243 | 353 |
CSS | 4 | 10 | 23 | 159 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 1 | 0.62% |
▷ Public methods | 125 | 77.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 22.36% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 5 | |
▷ Global constants | 5 | 100.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 are no PNG files in this plugin