Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.37ms] Passed 4 tests
A check of server-side resources used by Accept SagePay Payments Using Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 58.32 ▲10.56 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.07 ▼3.64 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.42 ▲0.96 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 99.30 ▼1,184.69 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 22.85 ▼2.09 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accept SagePay Payments Using Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.82 ▲0.18 | 7.16 ▲0.84 | 3.22 ▲0.69 |
Dashboard /wp-admin | 2,895 ▲41 | 6.22 ▲0.06 | 120.09 ▼11.91 | 158.25 ▼0.34 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 62.93 ▼4.43 | 137.73 ▼18.45 |
Add New Post /wp-admin/post-new.php | 1,711 ▲15 | 21.47 ▲0.50 | 435.53 ▲11.81 | 169.31 ▲9.88 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.49 ▼0.02 | 147.46 ▲10.90 | 188.57 ▲7.27 |
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/accept-sagepay-payments-using-contact-form-7/inc/front/template/cfspzw-info.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-sagepay-payments-using-contact-form-7/inc/admin/template/cfspzw.template.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: contact form 7, sagepay server, payment gateway, wordpress, ecommerce...
accept-sagepay-payments-using-contact-form-7/accept-sagepay-payments-using-contact-form-7.php Passed 13 tests
Analyzing the main PHP file in "Accept SagePay Payments Using Contact Form 7" version 1.2
99 characters long description:
This plugin will integrate Sagepay payment gateway for making your payments through Contact Form 7.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,766 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,432 | 383 | 5,589 |
PHP | 11 | 605 | 762 | 2,552 |
CSS | 8 | 87 | 6 | 625 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for 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.59 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 100.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 | 61 | |
▷ Static methods | 1 | 1.64% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin