Benchmarks
Plugin footprint 65% 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: ▲5.11MB] [CPU: ▲28.63ms] 75% from 4 tests
Analyzing server-side resources used by Authorize.Net Payment Gateway For WooCommerce
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.01 ▲5.55 | 61.05 ▲19.77 |
Dashboard /wp-admin | 9.03 ▲5.73 | 84.40 ▲35.29 |
Posts /wp-admin/edit.php | 9.03 ▲5.68 | 81.75 ▲33.75 |
Add New Post /wp-admin/post-new.php | 9.38 ▲3.49 | 122.76 ▲29.04 |
Media Library /wp-admin/upload.php | 9.03 ▲5.80 | 64.84 ▲31.97 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.03 | 62.01 |
Server storage [IO: ▲4.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 260 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
fs_accounts |
widget_theysaidso_widget |
can_compress_scripts |
wc_authnet_version |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Authorize.Net Payment Gateway For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲24 | 14.37 ▼0.24 | 1.53 ▼0.42 | 29.74 ▼15.42 |
Dashboard /wp-admin | 2,213 ▲33 | 5.58 ▼0.04 | 97.86 ▼1.28 | 50.00 ▲5.84 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.10 ▲0.07 | 40.69 ▼2.86 | 38.85 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.64 ▼0.24 | 603.45 ▲9.57 | 49.95 ▼0.69 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.21 ▲0.01 | 99.59 ▲2.45 | 46.87 ▲3.53 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,072 | 1.65 | 28.94 | 31.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/woo-authorize-net-gateway-aim/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- wc_authnet_version
- widget_theysaidso_widget
- fs_active_plugins
- fs_debug_mode
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 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
8 plugin tags: payment gateway, woocommerce payment gateway, recurring payments, woocommerce, authorizenet...
woo-authorize-net-gateway-aim/gateway.php 69% from 13 tests
The primary PHP file in "Authorize.Net Payment Gateway For WooCommerce" version 6.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 208 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.3")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-authorize-net-gateway-aim.php" instead of "gateway.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 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
Good job! No executable or dangerous file extensions detected59,708 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,555 | 17,804 | 35,266 |
PO File | 14 | 9,444 | 10,352 | 20,581 |
Sass | 38 | 542 | 92 | 3,205 |
JavaScript | 4 | 76 | 75 | 385 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 81.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,361 | |
▷ Static methods | 222 | 16.31% |
▷ Public methods | 954 | 70.10% |
▷ Protected methods | 23 | 1.69% |
▷ Private methods | 384 | 28.21% |
Functions | 103 | |
▷ Named functions | 102 | 99.03% |
▷ Anonymous functions | 1 | 0.97% |
Constants | 157 | |
▷ Global constants | 104 | 66.24% |
▷ Class constants | 53 | 33.76% |
▷ Public constants | 53 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/woo-authorize-net-gateway-aim.png | 18.91KB | 6.96KB | ▼ 63.21% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |