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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.45ms] Passed 4 tests
Server-side resources used by Accept 2Checkout Payments Using Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.07 ▼9.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.41 ▼5.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.39 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.08 ▲6.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.60 ▼1.09 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Accept 2Checkout Payments Using Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.22 ▼0.09 | 1.82 ▼2.43 | 37.80 ▼6.04 |
Dashboard /wp-admin | 2,206 ▲18 | 4.90 ▼1.00 | 101.36 ▼12.13 | 39.04 ▼5.06 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.05 | 38.33 ▲3.14 | 33.60 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.09 ▼5.00 | 620.02 ▼36.92 | 59.92 ▲12.40 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.26 ▲0.04 | 97.64 ▼2.42 | 43.83 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 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 a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: payment gateway, contact form 7, e-commerce, 2checkout, two checkout server...
accept-2checkout-payments-using-contact-form-7/accept-2checkout-payments-using-contact-form-7.php Passed 13 tests
The principal PHP file in "Accept 2Checkout Payments Using Contact Form 7" v. 1.3 is loaded by WordPress automatically on each request
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |