10% acquired-payments-gateway-for-woocommerce

Code Review | Acquired Payments Gateway for WooCommerce

WordPress plugin Acquired Payments Gateway for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: acquired-payments...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 5.9.2
  • First release: Jan 17, 2022
  • Latest release: Mar 24, 2022
  • Number of updates: 5
  • Update frequency: every 14.4 days
  • Top authors: acquired2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 125 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/acquired-payments-gateway-for-woocommerce/acquired-payment.php+62
    include_once(wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php): failed to open stream: No such file or directory

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

A check of server-side resources used by Acquired Payments Gateway for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.63 ▲1.66
Dashboard /wp-admin3.41 ▲0.0032.33 ▼0.95
Posts /wp-admin/edit.php3.64 ▲0.0036.71 ▼5.73
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.79 ▼1,189.71
Media Library /wp-admin/upload.php3.29 ▲0.0023.80 ▼1.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Acquired Payments Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.89 ▲0.256.41 ▼0.292.77 ▼0.15
Dashboard /wp-admin2,895 ▲346.19 ▲0.04118.64 ▼18.78153.47 ▼10.70
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0161.94 ▼0.04140.86 ▲0.03
Add New Post /wp-admin/post-new.php1,689 ▲2819.31 ▲3.31389.86 ▼34.31152.99 ▼5.57
Media Library /wp-admin/upload.php1,695 ▼35.51 ▼0.01142.39 ▲7.01184.84 ▲2.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 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
7 plugin tags: gateway, payments, acquired payment, acquired, payment gateway...

acquired-payments-gateway-for-woocommerce/acquired-payment.php 69% from 13 tests

Analyzing the main PHP file in "Acquired Payments Gateway for WooCommerce" version 1.0.1
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.7.2" instead of "5.4")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acquired-payments-gateway-for-woocommerce.php" instead of "acquired-payment.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 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
There were no executable files found in this plugin7,516 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP145941,5935,519
JavaScript62985131,854
SVG571104
CSS16039

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity78.12
▷ Minimum class complexity27.00
▷ Maximum class complexity177.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods145
▷ Static methods00.00%
▷ Public methods14297.93%
▷ Protected methods32.07%
▷ Private methods00.00%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected