Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼293.96ms] Passed 4 tests
A check of server-side resources used by Accept 2Checkout Payments Using Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.13 ▲4.86 |
Dashboard /wp-admin | 3.41 ▲0.00 | 36.32 ▲3.19 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 38.38 ▲0.26 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.77 ▼1,172.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 22.77 ▼6.29 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accept 2Checkout Payments Using Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲58 | 15.67 ▲0.07 | 7.63 ▲2.05 | 3.09 ▲0.73 |
Dashboard /wp-admin | 2,874 ▲20 | 6.06 ▼0.12 | 119.04 ▼16.09 | 161.10 ▲6.44 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 62.79 ▼2.14 | 140.55 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 17.21 ▼3.81 | 398.03 ▼68.74 | 159.15 ▲3.11 |
Media Library /wp-admin/upload.php | 1,695 ▲4 | 5.55 ▲0.00 | 144.17 ▼17.48 | 188.03 ▼76.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/accept-2checkout-payments-using-contact-form-7/inc/front/template/cf72ch-info.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPCF7_ContactForm' not found in wp-content/plugins/accept-2checkout-payments-using-contact-form-7/inc/admin/template/cf72ch.template.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
7 plugin tags: payment gateway, two checkout server, wordpress, checkout, e-commerce...
accept-2checkout-payments-using-contact-form-7/accept-2checkout-payments-using-contact-form-7.php Passed 13 tests
The primary PHP file in "Accept 2Checkout Payments Using Contact Form 7" version 1.2 is used by WordPress to initiate all plugin functionality
101 characters long description:
This plugin will integrate 2checkout 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
Success! There were no dangerous files found in this plugin8,665 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,393 | 391 | 5,653 |
PHP | 11 | 594 | 725 | 2,398 |
CSS | 6 | 80 | 5 | 614 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cardimage.png | 31.66KB | 9.51KB | ▼ 69.94% |