Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼140.72ms] Passed 4 tests
Server-side resources used by Gravity Forms Constant Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 32.48 ▼2.59 |
Dashboard /wp-admin | 3.06 ▲0.01 | 48.08 ▲1.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 43.95 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.73 ▼554.58 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 33.16 ▼2.29 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Gravity Forms Constant Contact
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲121 | 16.34 ▲0.60 | 9.70 ▲1.33 | 48.49 ▼1.31 |
Dashboard /wp-admin | 2,967 ▲36 | 6.14 ▼0.03 | 159.28 ▼10.50 | 111.42 ▲5.76 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 67.36 ▲4.23 | 92.07 ▲4.29 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.84 ▲0.17 | 407.17 ▲12.58 | 105.52 ▼8.06 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.04 ▲0.02 | 169.00 ▲14.65 | 114.60 ▼3.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× 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/gravity-forms-constant-contact/class-gf-constant-contact.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-constant-contact/constantcontact.php:32
- > PHP Fatal error
Uncaught Error: Class 'CC_Utility' not found in wp-content/plugins/gravity-forms-constant-contact/api/class.cc_gf_superclass.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/gravity-forms-constant-contact/gravityview-info.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
7 plugin tags: gravity forms, mailing list, newsletter, gravity, forms...
gravity-forms-constant-contact/constantcontact.php 92% from 13 tests
This is the main PHP file of "Gravity Forms Constant Contact" version 3.1.1, 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:
- Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-constant-contact.php" instead of "constantcontact.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 plugin1,749 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 437 | 608 | 1,594 |
PO File | 1 | 52 | 54 | 155 |
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.31 |
Average class complexity | 34.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 70 | |
▷ Static methods | 3 | 4.29% |
▷ Public methods | 65 | 92.86% |
▷ Protected methods | 2 | 2.86% |
▷ Private methods | 3 | 4.29% |
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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.18MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 337.14KB | 89.41KB | ▼ 73.48% |
images/ctct_logo_600x90.png | 52.25KB | 13.56KB | ▼ 74.04% |
screenshot-2.png | 479.80KB | 136.15KB | ▼ 71.62% |
screenshot-4.png | 212.68KB | 53.87KB | ▼ 74.67% |
screenshot-3.png | 125.47KB | 34.82KB | ▼ 72.25% |