88% accept-worldpay-payments-using-contact-form-7

Code Review | Accept Worldpay Payments Using Contact Form 7

WordPress plugin Accept Worldpay Payments Using Contact Form 7 scored 88% from 54 tests.

About plugin

  • Plugin page: accept-worldpay-p...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 8, 2020
  • Latest release: Dec 10, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: zealopensource (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 337 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4057.84 ▲19.50
Dashboard /wp-admin3.41 ▲0.0033.06 ▼2.07
Posts /wp-admin/edit.php3.64 ▲0.0036.31 ▼8.40
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.75 ▼1,152.34
Media Library /wp-admin/upload.php3.29 ▲0.0027.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.20 ▼0.586.05 ▼0.402.38 ▼0.23
Dashboard /wp-admin2,888 ▲276.11 ▼0.04148.29 ▲11.22162.14 ▼83.11
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0167.85 ▲2.24187.13 ▲33.99
Add New Post /wp-admin/post-new.php1,687 ▲2619.71 ▲3.59447.20 ▲18.91153.53 ▼30.95
Media Library /wp-admin/upload.php1,692 ▼05.56 ▲0.10164.13 ▼8.93198.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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.56
Average class complexity39.75
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity6.58
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods11.75%
▷ Public methods57100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions215.38%
▷ Anonymous functions1184.62%
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.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