Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼298.42ms] Passed 4 tests
An overview of server-side resources used by Customer.io Gravity Forms Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 56.35 ▲4.48 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.23 ▼0.67 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 36.38 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.03 ▼1,192.77 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.59 ▼1.14 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, no new options
New tables |
---|
wp_cio_events |
Browser metrics Passed 4 tests
Customer.io Gravity Forms Add-on: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲40 | 15.77 ▲0.13 | 6.07 ▼2.28 | 2.06 ▼0.22 |
Dashboard /wp-admin | 2,909 ▲55 | 6.15 ▼0.04 | 117.35 ▼22.89 | 155.37 ▼5.84 |
Posts /wp-admin/edit.php | 2,715 ▲27 | 3.37 ▲0.00 | 64.28 ▲1.28 | 140.06 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,771 ▲60 | 16.92 ▼4.40 | 417.32 ▼24.81 | 163.41 ▲1.34 |
Media Library /wp-admin/upload.php | 1,719 ▲18 | 5.52 ▲0.00 | 137.29 ▼10.23 | 188.42 ▲1.09 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function cio\\add_action() in wp-content/plugins/cio-gravity-forms-add-on/includes/gravity-forms.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function cio\\add_action() in wp-content/plugins/cio-gravity-forms-add-on/includes/manage-events.php:13
- > PHP Fatal error
Uncaught Error: Class 'cio\\ListTable' not found in wp-content/plugins/cio-gravity-forms-add-on/includes/EventsTable.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function cio\\add_action() in wp-content/plugins/cio-gravity-forms-add-on/includes/admin-settings.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Mapping fields from Gravity Form to Customer.io)
cio-gravity-forms-add-on/customer-io.php 92% from 13 tests
The main file in "Customer.io Gravity Forms Add-on" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cio-gravity-forms-add-on.php" instead of "customer-io.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,624 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 726 | 580 | 1,577 |
CSS | 1 | 11 | 0 | 37 |
JavaScript | 1 | 6 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 58.93% |
▷ Protected methods | 21 | 37.50% |
▷ Private methods | 2 | 3.57% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin