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.27MB] [CPU: ▼7.32ms] Passed 4 tests
Analyzing server-side resources used by Klaviyo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 44.98 ▲4.64 |
Dashboard /wp-admin | 3.62 ▲0.27 | 47.51 ▼15.32 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.06 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.60 ▼21.77 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.20 ▲4.15 |
Help /wp-admin/admin.php?page=klaviyo_help | 3.44 | 33.66 |
Settings /wp-admin/admin.php?page=klaviyo_settings | 3.44 | 33.72 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_klaviyo_embedemailsignup_widget |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_klaviyo_emailsignup_widget |
woocommerce_klaviyo_version |
Browser metrics Passed 4 tests
Checking browser requirements for Klaviyo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲29 | 14.14 ▼0.57 | 1.63 ▼0.46 | 43.75 ▼1.56 |
Dashboard /wp-admin | 2,221 ▲41 | 5.54 ▼0.11 | 92.53 ▼6.88 | 69.56 ▲31.12 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.97 ▲0.03 | 39.96 ▼0.28 | 33.87 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.32 ▼0.92 | 768.46 ▲114.20 | 54.98 ▼9.89 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.18 ▼0.01 | 102.01 ▲2.44 | 78.69 ▲35.30 |
Help /wp-admin/admin.php?page=klaviyo_help | 899 | 2.00 | 25.99 | 29.98 |
Settings /wp-admin/admin.php?page=klaviyo_settings | 993 | 2.00 | 31.45 | 35.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_klaviyo_emailsignup_widget
- db_upgraded
- widget_klaviyo_embedemailsignup_widget
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klaviyo/includes/admin/class-kl-plugins-screen-updates.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Automattic\\WooCommerce\\Blocks\\Integrations\\IntegrationInterface' not found in wp-content/plugins/klaviyo/includes/blocks/CheckoutIntegration.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/klaviyo/inc/kla-widgets.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/klaviyo/includes/admin/partials/wc-v1-auth-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klaviyo/includes/wck-checkout-block.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klaviyo/includes/wck-added-to-cart.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klaviyo/includes/wck-viewed-product.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce, marketing, analytics, email, klaviyo
klaviyo/klaviyo.php 77% from 13 tests
The principal PHP file in "Klaviyo" v. 3.3.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 200 characters long)
- 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
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,373 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 398 | 1,314 | 1,978 |
JavaScript | 6 | 30 | 70 | 219 |
CSS | 1 | 17 | 3 | 86 |
SVG | 1 | 0 | 0 | 56 |
JSON | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.79 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 90 | |
▷ Static methods | 7 | 7.78% |
▷ Public methods | 77 | 85.56% |
▷ Protected methods | 4 | 4.44% |
▷ Private methods | 9 | 10.00% |
Functions | 47 | |
▷ Named functions | 38 | 80.85% |
▷ Anonymous functions | 9 | 19.15% |
Constants | 47 | |
▷ Global constants | 7 | 14.89% |
▷ Class constants | 40 | 85.11% |
▷ Public constants | 40 | 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
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
signup_screenshot.png | 44.28KB | 12.75KB | ▼ 71.20% |
screenshot.png | 74.17KB | 21.92KB | ▼ 70.45% |
img/klaviyo-logo.png | 0.20KB | 0.16KB | ▼ 18.93% |