Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.72ms] Passed 4 tests
A check of server-side resources used by Opayo Form Payment Gateway for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.23 ▼4.62 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.50 ▼1.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.26 ▲0.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.27 ▲9.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.00 ▲3.00 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Opayo Form Payment Gateway for Gravity Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.27 ▼1.03 | 5.39 ▲3.66 | 40.99 ▼2.26 |
Dashboard /wp-admin | 2,209 ▲24 | 5.84 ▲0.02 | 109.02 ▲8.93 | 42.05 ▲0.56 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.01 | 38.85 ▲0.37 | 36.14 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.29 ▲5.81 | 589.46 ▼80.47 | 58.97 ▲7.12 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.27 ▲0.14 | 100.94 ▼9.84 | 47.28 ▲3.30 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sagepay-form-payment-gateway-for-gravity-forms/class-gf-sagepay-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sagepay-form-payment-gateway-for-gravity-forms/sagepay-form.php:22
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: opayo go, wordpress, ecommerce, gravity forms, opayo server...
sagepay-form-payment-gateway-for-gravity-forms/sagepay-form.php 69% from 13 tests
The entry point to "Opayo Form Payment Gateway for Gravity Forms" version 1.1.9 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "4.5")
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sagepay-form-payment-gateway-for-gravity-forms.php" instead of "sagepay-form.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
Good job! No executable or dangerous file extensions detected1,776 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 486 | 307 | 1,688 |
JavaScript | 1 | 23 | 12 | 88 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 107.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 5 | 7.25% |
▷ Public methods | 63 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.70% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/active0.png | 0.65KB | 0.61KB | ▼ 5.56% |
images/tick.png | 0.52KB | 0.52KB | 0.00% |
images/add.png | 3.37KB | 0.66KB | ▼ 80.54% |
images/sagepay_form_wordpress_icon_32.png | 19.58KB | 1.53KB | ▼ 92.18% |
images/tooltip_tip.png | 0.24KB | 0.28KB | 0.00% |