Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/composer/autoload_real.php+25
require(wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/composer/platform_check.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.33ms] Passed 4 tests
This is a short check of server-side resources used by Swipe for Gravity Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.06 ▼0.81 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.13 ▼7.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.22 ▼7.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.96 ▼21.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.65 ▼0.44 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Swipe for Gravity Forms: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.23 ▼1.06 | 1.84 ▲0.11 | 43.20 ▼1.79 |
Dashboard /wp-admin | 2,221 ▲21 | 5.88 ▲0.07 | 99.07 ▼6.59 | 42.07 ▲0.83 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▼0.04 | 34.56 ▼8.30 | 32.93 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.42 ▼5.67 | 687.44 ▲69.83 | 67.31 ▲14.93 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.01 | 97.19 ▼5.38 | 47.45 ▲6.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 53× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/composer/platform_check.php): failed to open stream: No such file or directory in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/composer/autoload_real.php on line 25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/payje-for-gravity-forms/libraries/payje/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: payment, gravity forms, payje
payje-for-gravity-forms/payje-gf.php 92% from 13 tests
The main PHP file in "Swipe for Gravity Forms" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("payje-for-gravity-forms.php" instead of "payje-gf.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
There were no executable files found in this plugin18,371 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 2,483 | 5,934 | 11,254 |
Markdown | 17 | 1,290 | 0 | 3,701 |
JavaScript | 5 | 568 | 164 | 2,195 |
JSON | 13 | 0 | 0 | 1,073 |
CSS | 4 | 0 | 0 | 73 |
SVG | 6 | 0 | 1 | 59 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
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.45 |
Average class complexity | 13.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 34 | 39.53% |
Methods | 820 | |
▷ Static methods | 143 | 17.44% |
▷ Public methods | 688 | 83.90% |
▷ Protected methods | 10 | 1.22% |
▷ Private methods | 122 | 14.88% |
Functions | 135 | |
▷ Named functions | 44 | 32.59% |
▷ Anonymous functions | 91 | 67.41% |
Constants | 74 | |
▷ Global constants | 9 | 12.16% |
▷ Class constants | 65 | 87.84% |
▷ Public constants | 54 | 83.08% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected