Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼317.73ms] Passed 4 tests
An overview of server-side resources used by Gravity Forms Klaviyo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 41.86 ▲21.27 |
Dashboard /wp-admin | 3.07 ▲0.02 | 40.64 ▼2.39 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.61 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.01 | 88.88 ▼1,255.97 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.51 ▼9.97 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Gravity Forms Klaviyo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲120 | 15.85 ▲0.04 | 9.25 ▲1.29 | 49.55 ▲3.66 |
Dashboard /wp-admin | 2,998 ▲148 | 6.18 ▲0.20 | 137.81 ▲8.46 | 103.16 ▼3.41 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 65.59 ▼5.08 | 90.81 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,653 ▼198 | 18.82 ▲1.07 | 361.45 ▼8.77 | 110.04 ▼2.97 |
Media Library /wp-admin/upload.php | 1,769 ▼6 | 4.99 ▼0.02 | 143.12 ▲5.09 | 113.04 ▼9.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-klaviyo-add-on/class-gfklaviyofeedaddon.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-klaviyo-add-on/klaviyoaddon.php:15
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (You can easily configure the field mapping for export to Klaviyo using Feeds.), #2 (View of the Gravity Forms Klaviyo Settings screen.), #3 (View of Form Feeds. You can have multiple feeds for each form.)
gf-klaviyo-add-on/klaviyoaddon.php 92% from 13 tests
Analyzing the main PHP file in "Gravity Forms Klaviyo" version 1.1
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gf-klaviyo-add-on.php" instead of "klaviyoaddon.php")
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
Everything looks great! No dangerous files found in this plugin255 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 80 | 255 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 2 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 21.80KB | 12.16KB | ▼ 44.25% |
screenshot-2.png | 39.49KB | 20.40KB | ▼ 48.33% |
screenshot-1.png | 38.63KB | 16.20KB | ▼ 58.06% |