83% easytransac

Code Review | EasyTransac pour WooCommerce

WordPress plugin EasyTransac pour WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: easytransac
  • Plugin version: 2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Jun 7, 2023
  • Number of updates: 122
  • Update frequency: every 21.8 days
  • Top authors: easytransac (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /6,785 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.24MB] [CPU: ▼7.50ms] Passed 4 tests

This is a short check of server-side resources used by EasyTransac pour WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2543.47 ▼1.17
Dashboard /wp-admin3.55 ▲0.2149.29 ▼15.64
Posts /wp-admin/edit.php3.66 ▲0.3149.91 ▲0.15
Add New Post /wp-admin/post-new.php6.13 ▲0.2589.33 ▼13.20
Media Library /wp-admin/upload.php3.47 ▲0.2539.16 ▼0.00

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for EasyTransac pour WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▲0.441.83 ▲0.3144.20 ▼2.45
Dashboard /wp-admin2,195 ▲155.48 ▼0.1485.97 ▼7.8239.28 ▲1.27
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0136.95 ▼5.3731.66 ▼5.92
Add New Post /wp-admin/post-new.php1,531 ▼623.14 ▲4.61693.77 ▲79.9463.60 ▼3.22
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0296.59 ▼2.8443.25 ▲1.10

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/PaymentPage.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Entities\\Entity' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Entities/DirectTransaction.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'EasyTransac\\Core\\ICaller' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Core/FgcCaller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/CreditCardInfo.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/AddCreditCard.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/MakeP2PTransfer.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/OperationsList.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/FindUser.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Entities\\Entity' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Entities/CancellationInfos.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'EasyTransac\\Requests\\Request' not found in wp-content/plugins/easytransac/vendor/easytransac/easytransac-sdk-php/sdk/EasyTransac/Requests/PaymentPageCancellation.php:12

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

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: moyen de paiement, checkout, encaissement, payment pro, bezahlsystem...

easytransac/easytransac_woocommerce.php 69% from 13 tests

The primary PHP file in "EasyTransac pour WooCommerce" version 2.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easytransac.php" instead of "easytransac_woocommerce.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "5.6.0")
  • Description: The description should be shorter than 140 characters (currently 362 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,173 lines of code in 109 files:
LanguageFilesBlank linesComment linesLines of code
PHP971,6691,9255,697
PO File13550124
Markdown1370110
JSON30090
YAML522784
JavaScript1191959
XML1009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.74
▷ Minimum class complexity1.00
▷ Maximum class complexity138.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces7
Interfaces3
Traits0
Classes88
▷ Abstract classes22.27%
▷ Concrete classes8697.73%
▷ Final classes00.00%
Methods681
▷ Static methods243.52%
▷ Public methods66797.94%
▷ Protected methods81.17%
▷ Private methods60.88%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
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
includes/icon.png8.42KB3.77KB▼ 55.21%