Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.96ms] Passed 4 tests
A check of server-side resources used by Gravity Forms PAAY Standard Add-On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.05 ▼2.85 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.73 ▼0.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.92 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.08 ▼5.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.36 ▲1.75 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Gravity Forms PAAY Standard Add-On: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.78 ▲0.10 | 1.73 ▲0.10 | 41.03 ▲2.67 |
Dashboard /wp-admin | 2,200 ▲15 | 5.91 ▲0.05 | 109.14 ▲10.95 | 39.33 ▼2.89 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.03 ▲0.06 | 37.27 ▲0.15 | 33.12 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,522 ▼20 | 23.50 ▲5.26 | 657.66 ▲59.18 | 44.00 ▼32.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.04 | 94.29 ▼1.31 | 40.89 ▼2.40 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 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 items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/paay-for-gravity-form/templates/dashboard_css.php
- > /wp-content/plugins/paay-for-gravity-form/templates/paay_gf_scripts.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PAAY\\Plugin\\Validation\\Components\\ValidatorInterface' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Validation/Components/Text.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/vendor/symfony/yaml/Exception/DumpException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'PAAY\\Plugin\\Validation\\Components\\ValidatorInterface' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Validation/Components/Details.php:5
- > PHP Fatal error
Uncaught Error: Class 'PAAY\\Plugin\\Storage\\Component\\StorageComponent' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Storage/Component/BillingAddress.php:7
- > PHP Fatal error
Uncaught Error: Class 'PAAY\\Plugin\\Storage\\Component\\StorageComponent' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Storage/Component/Basic.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/vendor/symfony/yaml/Exception/RuntimeException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'PAAY\\Plugin\\Validation\\Components\\ValidatorInterface' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Validation/Components/Email.php:5
- > PHP Fatal error
Uncaught Error: Class 'PAAY\\Plugin\\Storage\\Component\\StorageComponent' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/src/PAAY/Plugin/Storage/Component/ShippingAddress.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\ClassLoader\\UniversalClassLoader' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/vendor/symfony/class-loader/ApcUniversalClassLoader.php:66
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\ClassLoader\\UniversalClassLoader' not found in wp-content/plugins/paay-for-gravity-form/paay_lib/vendor/symfony/class-loader/DebugUniversalClassLoader.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
8 plugin tags: form, gateway, plugin, gravity, credit card...
paay-for-gravity-form/paay.php 77% from 13 tests
Analyzing the main PHP file in "Gravity Forms PAAY Standard Add-On" version 2.4.9
It is important to fix the following:
- Git Repository: A Git repository was detected inside this plugin
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paay-for-gravity-form.php" instead of "paay.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 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,485 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,028 | 1,891 | 4,752 |
JSON | 5 | 0 | 0 | 290 |
CSS | 2 | 3 | 2 | 200 |
YAML | 1 | 0 | 0 | 97 |
JavaScript | 1 | 14 | 1 | 59 |
XML | 2 | 6 | 0 | 51 |
Markdown | 3 | 12 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 3 | 4.62% |
▷ Concrete classes | 62 | 95.38% |
▷ Final classes | 0 | 0.00% |
Methods | 319 | |
▷ Static methods | 53 | 16.61% |
▷ Public methods | 255 | 79.94% |
▷ Protected methods | 5 | 1.57% |
▷ Private methods | 59 | 18.50% |
Functions | 17 | |
▷ Named functions | 13 | 76.47% |
▷ Anonymous functions | 4 | 23.53% |
Constants | 54 | |
▷ Global constants | 3 | 5.56% |
▷ Class constants | 51 | 94.44% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin