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.02MB] [CPU: ▼295.20ms] Passed 4 tests
A check of server-side resources used by Integration for Salsa and Gravity Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.75 ▲1.41 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.97 ▼1.15 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.80 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 90.05 ▼1,178.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.98 ▼0.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Integration for Salsa and Gravity Forms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲13 | 16.25 ▲0.48 | 6.32 ▲0.62 | 3.23 ▲0.68 |
Dashboard /wp-admin | 2,895 ▲34 | 6.11 ▼0.12 | 113.99 ▼27.09 | 154.13 ▼8.63 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 63.24 ▼1.24 | 138.90 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,668 ▼42 | 17.98 ▼3.75 | 397.92 ▼61.90 | 156.52 ▼2.90 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▼0.03 | 146.55 ▲8.46 | 185.12 ▼3.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/integration-for-salsa-and-gravity-forms/class-gf-salsa.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/integration-for-salsa-and-gravity-forms/gravityforms-salsa.php:14
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: forms, integration, crm
integration-for-salsa-and-gravity-forms/gravityforms-salsa.php 85% from 13 tests
"Integration for Salsa and Gravity Forms" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("integration-for-salsa-and-gravity-forms.php" instead of "gravityforms-salsa.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,326 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 249 | 378 | 1,271 |
JavaScript | 1 | 8 | 1 | 44 |
JSON | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 7 | 14.29% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 1 | 2.04% |
▷ Private methods | 4 | 8.16% |
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 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin