Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.82ms] Passed 4 tests
A check of server-side resources used by FB GoCardless Hosted for Gravity Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 40.33 ▼2.62 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.05 ▲3.72 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 49.42 ▲0.29 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 97.55 ▼5.08 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.68 ▲0.14 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 229 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FB GoCardless Hosted for Gravity Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.00 | 1.75 ▼0.03 | 41.00 ▼3.30 |
Dashboard /wp-admin | 2,203 ▲11 | 5.89 ▲0.98 | 105.13 ▼8.00 | 40.76 ▲0.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.05 | 39.23 ▼1.23 | 35.74 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.15 ▲4.91 | 593.22 ▼74.63 | 52.19 ▼0.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.06 | 99.98 ▼17.81 | 40.42 ▼7.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/classes/class-fb-gf-gocardless-hosted.php
- > /wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/fb-gforms-gocardless-hosted.php
- 111× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/tests/Core/Exceptions/ExceptionMessagesTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Resources\\Base' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/tests/Core/Mocks/MockResource.php:5
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Resources\\BaseResource' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/lib/Resources/MandatePdf.php:17
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Services\\BaseService' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/lib/Services/CustomersService.php:21
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Resources\\BaseResource' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/lib/Resources/Mandate.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Services\\BaseService' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/lib/Services/SubscriptionsService.php:21
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Integration\\IntegrationTestBase' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/tests/Integration/MandatesIntegrationTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Resources\\BaseResource' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/lib/Resources/Event.php:22
- > PHP Fatal error
Uncaught Error: Class 'GoCardlessPro\\Integration\\IntegrationTestBase' not found in wp-content/plugins/fb-gocardless-hosted-for-gravity-forms/vendor/gocardless/gocardless-pro/tests/Integration/SubscriptionsIntegrationTest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: A description for screenshot #1 is required in fb-gocardless-hosted-for-gravity-forms/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== fb-gocardless-hosted-for-gravity-forms ===
)
fb-gocardless-hosted-for-gravity-forms/fb-gforms-gocardless-hosted.php 92% from 13 tests
The primary PHP file in "FB GoCardless Hosted for Gravity Forms" version 1.1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("fb-gocardless-hosted-for-gravity-forms.php" instead of "fb-gforms-gocardless-hosted.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 plugin17,150 lines of code in 218 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 173 | 3,352 | 7,176 | 12,797 |
Markdown | 10 | 993 | 0 | 3,324 |
JSON | 29 | 16 | 0 | 928 |
JavaScript | 1 | 7 | 9 | 47 |
make | 2 | 11 | 0 | 28 |
XML | 2 | 2 | 0 | 17 |
YAML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 14 | |
Traits | 3 | |
Classes | 145 | |
▷ Abstract classes | 4 | 2.76% |
▷ Concrete classes | 141 | 97.24% |
▷ Final classes | 7 | 4.96% |
Methods | 934 | |
▷ Static methods | 72 | 7.71% |
▷ Public methods | 782 | 83.73% |
▷ Protected methods | 29 | 3.10% |
▷ Private methods | 123 | 13.17% |
Functions | 147 | |
▷ Named functions | 54 | 36.73% |
▷ Anonymous functions | 93 | 63.27% |
Constants | 55 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 55 | 100.00% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin