Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ViaGF\Loader::activatePlugin() should not be called statically
Server metrics [RAM: ▲0.11MB] [CPU: ▼11.96ms] Passed 4 tests
Analyzing server-side resources used by VIA Lead Integration for Gravity Forms and Salesforce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 42.74 ▼2.10 |
Dashboard /wp-admin | 3.47 ▲0.17 | 33.52 ▼15.90 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 39.22 ▼11.82 |
Add New Post /wp-admin/post-new.php | 5.73 ▼0.16 | 78.00 ▼18.01 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 33.07 ▼1.10 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 159 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gf_viagf_meta |
New WordPress options |
---|
viagf_name_field |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
viagf_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VIA Lead Integration for Gravity Forms and Salesforce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.63 ▼0.80 | 5.73 ▲3.87 | 35.62 ▼7.71 |
Dashboard /wp-admin | 2,225 ▲34 | 5.83 ▲0.96 | 108.62 ▲2.99 | 38.27 ▼6.54 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.02 ▲0.01 | 43.73 ▲3.91 | 36.49 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.18 ▼0.08 | 682.91 ▼4.61 | 54.18 ▼5.73 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.27 ▲0.08 | 98.68 ▼6.32 | 42.43 ▲0.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ViaGF\Loader::deactivatePlugin() should not be called statically
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_gf_viagf_meta
- The uninstall procedure has failed, leaving 8 options in the database
- viagf_name_field
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- viagf_version
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 everything seems fine, this is not 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
Please fix the following items
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Warning
require_once(wp-content/plugins/via-crm-forms/vendor/viastudio/via-php-license/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/via-crm-forms/vendor/viastudio/via-php-license/via-php-license.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/via-crm-forms/vendor/symfony/dotenv/Tests/DotenvTest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/via-crm-forms/vendor/symfony/dotenv/Exception/PathException.php:19
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/via-crm-forms/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Enter the Salesforce account and API information in the plugin settings to activate the plugin.) image not found
via-crm-forms/via-gravityforms-salesforce.php 85% from 13 tests
The main file in "VIA Lead Integration for Gravity Forms and Salesforce" v. 1.0.5 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:
- Git Repository: A Git repository was detected inside this plugin
- Main file name: The principal plugin file should be the same as the plugin slug ("via-crm-forms.php" instead of "via-gravityforms-salesforce.php")
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
Everything looks great! No dangerous files found in this plugin13,401 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 1,963 | 4,968 | 9,470 |
Markdown | 12 | 941 | 0 | 3,156 |
JSON | 11 | 0 | 0 | 638 |
CSS | 1 | 9 | 1 | 75 |
XML | 2 | 3 | 0 | 46 |
make | 1 | 4 | 0 | 9 |
JavaScript | 1 | 0 | 19 | 4 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 15 | |
Traits | 3 | |
Classes | 78 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 78 | 100.00% |
▷ Final classes | 11 | 14.10% |
Methods | 712 | |
▷ Static methods | 72 | 10.11% |
▷ Public methods | 581 | 81.60% |
▷ Protected methods | 8 | 1.12% |
▷ Private methods | 123 | 17.28% |
Functions | 161 | |
▷ Named functions | 63 | 39.13% |
▷ Anonymous functions | 98 | 60.87% |
Constants | 59 | |
▷ Global constants | 2 | 3.39% |
▷ Class constants | 57 | 96.61% |
▷ Public constants | 57 | 100.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
There are no PNG files in this plugin