Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.67ms] Passed 4 tests
Server-side resources used by Accept Authorize.NET Payments Using Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.45 ▲1.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.19 ▼15.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.36 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.12 ▼17.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.15 ▲2.18 |
Authorize.Net Add-on /wp-admin/edit.php?post_type=cf7adn_data | 3.04 | 26.12 |
Import Authorize.net Data /wp-admin/admin.php?page=cfadn-import | 3.00 | 27.84 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 523 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Accept Authorize.NET Payments Using Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.43 | 1.79 ▼0.20 | 39.22 ▼0.66 |
Dashboard /wp-admin | 2,203 ▲14 | 5.80 ▼0.05 | 98.78 ▼9.39 | 38.22 ▼1.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.03 | 38.84 ▼2.20 | 35.91 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.37 ▲0.15 | 679.76 ▲22.11 | 63.52 ▲11.93 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.04 | 96.11 ▲1.24 | 41.38 ▼4.27 |
Authorize.Net Add-on /wp-admin/edit.php?post_type=cf7adn_data | 28 | 0.44 | 0.06 | 3.58 |
Import Authorize.net Data /wp-admin/admin.php?page=cfadn-import | 28 | 0.44 | 0.08 | 5.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/front/template/cf7adn-info.php
- 162× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileListRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/CreateCustomerProfileResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/controller/GetCustomerProfileController.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/CreateCustomerProfileTransactionRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\CustomerProfileExType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php:11
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/GetHostedProfilePageRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/DeleteCustomerShippingAddressResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/DeleteCustomerPaymentProfileResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\CreditCardSimpleType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/CreditCardType.php:11
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/accept-authorize-net-payments-using-contact-form-7/inc/lib/net/authorize/api/contract/v1/GetSettledBatchListRequest.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=cf7adn_data
- > Network (severe)
wp-admin/edit.php?post_type=cf7adn_data - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=cfadn-import
- > Network (severe)
wp-admin/admin.php?page=cfadn-import - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (39 tag instead of maximum 10)
accept-authorize-net-payments-using-contact-form-7/accept-authorize.net-payments-using-contact-form-7.php 85% from 13 tests
The entry point to "Accept Authorize.NET Payments Using Contact Form 7" version 1.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("accept-authorize-net-payments-using-contact-form-7.php" instead of "accept-authorize.net-payments-using-contact-form-7.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected40,276 lines of code in 518 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 288 | 5,061 | 14,752 | 25,947 |
YAML | 216 | 0 | 0 | 8,728 |
JavaScript | 6 | 1,305 | 353 | 5,030 |
CSS | 6 | 71 | 0 | 522 |
JSON | 2 | 1 | 0 | 49 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 281 | |
▷ Abstract classes | 1 | 0.36% |
▷ Concrete classes | 280 | 99.64% |
▷ Final classes | 0 | 0.00% |
Methods | 2,283 | |
▷ Static methods | 7 | 0.31% |
▷ Public methods | 2,220 | 97.24% |
▷ Protected methods | 50 | 2.19% |
▷ Private methods | 13 | 0.57% |
Functions | 175 | |
▷ Named functions | 2 | 1.14% |
▷ Anonymous functions | 173 | 98.86% |
Constants | 27 | |
▷ Global constants | 22 | 81.48% |
▷ Class constants | 5 | 18.52% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin