Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.97ms] Passed 4 tests
An overview of server-side resources used by BS Authorize.net
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.70 ▼6.87 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.18 ▼0.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.98 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.58 ▼8.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.55 ▲0.04 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 630 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
BS Authorize.net: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.64 ▼0.94 | 4.44 ▲2.82 | 38.58 ▼5.14 |
Dashboard /wp-admin | 2,214 ▲26 | 5.94 ▲0.92 | 96.01 ▼25.15 | 41.07 ▼1.57 |
Posts /wp-admin/edit.php | 2,099 ▲13 | 2.05 ▼0.00 | 39.26 ▲2.16 | 36.92 ▲3.73 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.41 ▼4.82 | 597.86 ▼78.63 | 52.13 ▼0.15 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.31 ▲0.16 | 98.10 ▼2.51 | 45.65 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bs-authorize-net/views/credits.php
- > /wp-content/plugins/bs-authorize-net/includes/class-bs-anet-wc-form-validator.php
- > /wp-content/plugins/bs-authorize-net/bs-authorizenet.php
- 188× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/GetHostedPaymentPageController.php:7
- > PHP Warning
Use of undefined constant BS_ANET_WC_BASEURL - assumed 'BS_ANET_WC_BASEURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bs-authorize-net/includes/constants.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/CreateCustomerPaymentProfileController.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/GetCustomerProfileIdsRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/SecurePaymentContainerRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ProfileTransOrderType' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ProfileTransCaptureOnlyType.php:11
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/GetSettledBatchListController.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\controller\\base\\ApiOperationBase' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/GetBatchStatisticsController.php:7
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiResponseType' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/CreateCustomerProfileResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'net\\authorize\\api\\contract\\v1\\ANetApiRequestType' not found in wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/AuthenticateTestRequest.php:8
- > 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 80% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots require images: #8 (Unsettled transactions), #9 (Transaction management), #10 (Void transaction), #11 (FDS transaction), #12 (FDS Transaction management), #13 (Merchant info), #14 (Advanced settings), #15 (Order management), #16 (Order transaction)
bs-authorize-net/bs-authorizenet.php 62% from 13 tests
"BS Authorize.net" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: Please keep the plugin description shorter than 140 characters (currently 321 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bs-authorize-net.php" instead of "bs-authorizenet.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/bs-authorize-net/library/vendor/authorizenet/authorizenet/tests/domain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 326 | 5,333 | 15,286 | 30,363 |
YAML | 219 | 9 | 9 | 8,689 |
XSD | 1 | 42 | 864 | 3,848 |
JavaScript | 13 | 612 | 199 | 2,521 |
CSS | 12 | 389 | 46 | 1,878 |
Markdown | 12 | 232 | 0 | 828 |
Bourne Shell | 8 | 52 | 51 | 208 |
JSON | 5 | 1 | 0 | 125 |
SVG | 13 | 0 | 0 | 93 |
Perl | 3 | 12 | 35 | 44 |
XML | 1 | 9 | 3 | 37 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 302 | |
▷ Abstract classes | 1 | 0.33% |
▷ Concrete classes | 301 | 99.67% |
▷ Final classes | 0 | 0.00% |
Methods | 2,441 | |
▷ Static methods | 48 | 1.97% |
▷ Public methods | 2,353 | 96.39% |
▷ Protected methods | 63 | 2.58% |
▷ Private methods | 25 | 1.02% |
Functions | 195 | |
▷ Named functions | 19 | 9.74% |
▷ Anonymous functions | 176 | 90.26% |
Constants | 28 | |
▷ Global constants | 23 | 82.14% |
▷ Class constants | 5 | 17.86% |
▷ Public constants | 5 | 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
There are no PNG files in this plugin