Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼289.91ms] Passed 4 tests
An overview of server-side resources used by Accept Worldpay Payments Using Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.40 | 57.84 ▲19.50 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.06 ▼2.07 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.31 ▼8.40 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.75 ▼1,152.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 27.44 ▲3.17 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accept Worldpay Payments Using Contact Form 7: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.20 ▼0.58 | 6.05 ▼0.40 | 2.38 ▼0.23 |
Dashboard /wp-admin | 2,888 ▲27 | 6.11 ▼0.04 | 148.29 ▲11.22 | 162.14 ▼83.11 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 67.85 ▲2.24 | 187.13 ▲33.99 |
Add New Post /wp-admin/post-new.php | 1,687 ▲26 | 19.71 ▲3.59 | 447.20 ▲18.91 | 153.53 ▼30.95 |
Media Library /wp-admin/upload.php | 1,692 ▼0 | 5.56 ▲0.10 | 164.13 ▼8.93 | 198.77 ▼20.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/accept-worldpay-payments-using-contact-form-7/wpcallback.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPCF7_ContactForm' not found in wp-content/plugins/accept-worldpay-payments-using-contact-form-7/inc/admin/template/cf7wpa.template.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
accept-worldpay-payments-using-contact-form-7/accept-worldpay-payments-using-contact-form-7.php Passed 13 tests
"Accept Worldpay Payments Using Contact Form 7" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
This plugin will integrate Worldpay payment gateway for making your payments through Contact Form 7.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,455 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,298 | 353 | 5,006 |
PHP | 11 | 619 | 639 | 1,970 |
CSS | 4 | 66 | 0 | 479 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 39.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 6.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 57 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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