90% tachcard-payments-gateway-for-woocommerce

Code Review | Tachcard payments gateway for Woocommerce

WordPress plugin Tachcard payments gateway for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: tachcard-payments...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: Apr 2, 2018
  • Number of updates: 8
  • Update frequency: every 4.1 days
  • Top authors: tachcard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /528 total downloads

Benchmarks

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.06MB] [CPU: ▼1.92ms] Passed 4 tests

This is a short check of server-side resources used by Tachcard payments gateway for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.64 ▼2.69
Dashboard /wp-admin3.36 ▲0.0647.45 ▼3.28
Posts /wp-admin/edit.php3.49 ▲0.1383.09 ▲37.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.60 ▼6.12
Media Library /wp-admin/upload.php3.28 ▲0.0635.00 ▲4.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Tachcard payments gateway for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.171.65 ▼0.6838.22 ▼12.42
Dashboard /wp-admin2,206 ▲154.85 ▼1.05109.24 ▲7.8938.22 ▼5.30
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0137.46 ▲1.1835.25 ▲1.76
Add New Post /wp-admin/post-new.php1,532 ▲323.41 ▲0.19591.20 ▼64.1752.30 ▼2.04
Media Library /wp-admin/upload.php1,382 ▼34.22 ▼0.1893.95 ▼4.6643.34 ▲0.77

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP 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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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: gateway, checkout, accept money, payments, payment...

tachcard-payments-gateway-for-woocommerce/tachcard-payments-gateway-for-woocommerce.php Passed 13 tests

The primary PHP file in "Tachcard payments gateway for Woocommerce" version 1.1 is used by WordPress to initiate all plugin functionality
108 characters long description:
This plugin adds to e-shop with Woocommerce the Tachcard module to accept payments. Easy set-up. Easy usage.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP164107260
SVG10132

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inner_assets/images/icons/tachcard-icon.png8.38KB4.31KB▼ 48.53%