Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.01ms] Passed 4 tests
Server-side resources used by Gravity Forms ConvertKit Add-On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 35.76 ▼6.94 |
Dashboard /wp-admin | 3.59 ▲0.28 | 46.50 ▼4.39 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.00 ▼0.55 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 95.95 ▼4.14 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.42 ▲3.31 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms ConvertKit Add-On
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.20 ▲0.06 | 1.81 ▼0.00 | 41.39 ▼1.78 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▲0.01 | 91.87 ▼10.37 | 38.83 ▼4.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.08 | 41.17 ▲2.81 | 34.84 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.33 | 658.24 ▼12.89 | 58.70 ▼0.40 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.17 ▼0.05 | 95.58 ▼1.95 | 39.80 ▼2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/convertkit-gravity-forms/vendor/convertkit/convertkit-wordpress-libraries/src/views/review-request.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/convertkit-gravity-forms/convertkit.php:19
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/convertkit-gravity-forms/includes/class-gfconvertkit.php:9
- > PHP Fatal error
Uncaught Error: Class 'ConvertKit_API' not found in wp-content/plugins/convertkit-gravity-forms/includes/class-ckgf-api.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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: embed form, marketing, convertkit, email, capture
convertkit-gravity-forms/convertkit.php 85% from 13 tests
"Gravity Forms ConvertKit Add-On" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("convertkit-gravity-forms.php" instead of "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
Everything looks great! No dangerous files found in this plugin2,172 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 851 | 1,969 | 2,164 |
CSS | 1 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 35.29 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 2 | 1.60% |
▷ Public methods | 93 | 74.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 25.60% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/backend/images/block-icon-form.png | 3.08KB | 3.08KB | 0.00% |