89% authnet-cim-for-woo

Code Review | Payment Gateway Authorize.Net CIM for WooCommerce

WordPress plugin Payment Gateway Authorize.Net CIM for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: authnet-cim-for-woo
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Sep 24, 2023
  • Number of updates: 48
  • Update frequency: every 59.8 days
  • Top authors: cardpaysolutions (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /53,838 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.93ms] Passed 4 tests

Analyzing server-side resources used by Payment Gateway Authorize.Net CIM for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.42 ▼2.05
Dashboard /wp-admin3.33 ▲0.0244.17 ▼4.58
Posts /wp-admin/edit.php3.38 ▲0.0251.49 ▲1.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.23 ▲1.05
Media Library /wp-admin/upload.php3.25 ▲0.0238.65 ▲4.08

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Payment Gateway Authorize.Net CIM for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.20 ▼1.431.65 ▼0.0541.97 ▲2.14
Dashboard /wp-admin2,209 ▲184.85 ▼0.03112.60 ▲10.7142.94 ▲0.22
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0540.13 ▼0.7634.76 ▲0.36
Add New Post /wp-admin/post-new.php1,528 ▼523.39 ▲0.20627.53 ▲37.8752.40 ▲1.30
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0896.57 ▲1.5242.69 ▼1.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


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
10 plugin tags: woocommerce authorizenet, customer information manager, payment gateway, woocommerce payment, authorizenet...

authnet-cim-for-woo/woocommerce-cardpay-authnet.php 69% from 13 tests

The main file in "Payment Gateway Authorize.Net CIM for WooCommerce" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "2.2.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("authnet-cim-for-woo.php" instead of "woocommerce-cardpay-authnet.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,693 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity38.00
▷ Minimum class complexity18.00
▷ Maximum class complexity59.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods11.06%
▷ Public methods8287.23%
▷ Protected methods1010.64%
▷ Private methods22.13%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin