Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/beyond-pay-for-gravity-forms/beyond-pay-gravity-forms.php+17
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/beyond-pay-for-gravity-forms/beyond-pay-gravity-forms.php:17
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.37ms] Passed 4 tests
This is a short check of server-side resources used by Beyond Pay for Gravity Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.57 ▼3.70 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.51 ▼14.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.74 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.95 ▼6.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.68 ▲3.33 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beyond Pay for Gravity Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.10 ▼0.15 | 1.84 ▲0.01 | 36.84 ▼5.33 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▲0.01 | 92.39 ▼8.45 | 38.84 ▼10.36 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.01 | 38.90 ▼2.08 | 36.48 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.10 | 595.62 ▼2.33 | 45.60 ▼6.17 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.11 | 94.69 ▼5.40 | 42.81 ▲0.55 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/beyond-pay-for-gravity-forms/beyond-pay-gravity-forms.php:17
- > PHP Fatal error
Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/beyond-pay-for-gravity-forms/includes/gf-field-beyond-pay.php:2
- > PHP Fatal error
Uncaught Error: Class 'GFPaymentAddOn' not found in wp-content/plugins/beyond-pay-for-gravity-forms/includes/gf-beyond-pay.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
5 plugin tags: gravity forms, credit card, donation, payment, payment gateway
beyond-pay-for-gravity-forms/beyond-pay-gravity-forms.php 85% from 13 tests
This is the main PHP file of "Beyond Pay for Gravity Forms" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("beyond-pay-for-gravity-forms.php" instead of "beyond-pay-gravity-forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,546 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 497 | 82 | 1,157 |
JavaScript | 4 | 17 | 9 | 216 |
Markdown | 1 | 44 | 0 | 107 |
CSS | 1 | 0 | 0 | 66 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 16 | 34.78% |
▷ Public methods | 40 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.04% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 75.51KB | 25.66KB | ▼ 66.02% |
assets/screenshot-5.png | 80.59KB | 27.07KB | ▼ 66.41% |
assets/screenshot-3.png | 61.25KB | 21.07KB | ▼ 65.61% |
assets/screenshot-1.png | 46.51KB | 16.88KB | ▼ 63.70% |
assets/screenshot-2.png | 93.02KB | 30.78KB | ▼ 66.91% |