84% paiement-par-carte-dahabia-et-cib-for-woocommerce

Code Review | Paiement par Carte DAHABIA et Carte CIB for WooCommerce

WordPress plugin Paiement par Carte DAHABIA et Carte CIB for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: paiement-par-cart...
  • Plugin version: 2.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2022
  • Latest release: Apr 21, 2023
  • Number of updates: 11
  • Update frequency: every 31.2 days
  • Top authors: webrocketdz (72.73%)antondrob2 (36.36%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼15.93ms] Passed 4 tests

Server-side resources used by Paiement par Carte DAHABIA et Carte CIB for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0427.34 ▼17.77
Dashboard /wp-admin3.34 ▼0.0050.12 ▼13.99
Posts /wp-admin/edit.php3.39 ▲0.0453.23 ▼10.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.38 ▼20.97
Media Library /wp-admin/upload.php3.26 ▲0.0437.95 ▲1.91

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Paiement par Carte DAHABIA et Carte CIB for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,466 ▼32014.64 ▲0.270.51 ▼1.2718.88 ▼20.29
Dashboard /wp-admin2,204 ▲375.51 ▼0.1085.92 ▼12.0538.83 ▼0.80
Posts /wp-admin/edit.php2,113 ▲101.95 ▼0.0035.31 ▼6.3831.48 ▼8.14
Add New Post /wp-admin/post-new.php1,538 ▲1223.91 ▲0.43705.64 ▲0.9075.25 ▲22.12
Media Library /wp-admin/upload.php1,406 ▲64.18 ▲0.0097.79 ▼5.1344.97 ▲0.21

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page-header.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PPCD_Satimipay' not found in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page.php:2
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/paiement-par-carte-dahabia-et-cib-for-woocommerce/template-parts/checkout/thankyou-page-header.php on line 5

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: dahabia, algerie, paiement, satim, carte...

paiement-par-carte-dahabia-et-cib-for-woocommerce/paiement-par-carte-dahabia-et-cib-for-woocommerce.php Passed 13 tests

The main file in "Paiement par Carte DAHABIA et Carte CIB for WooCommerce" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Extension officielle certifiée par la SATIM pour le e-paiement en Algérie (DZ).

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
Success! There were no dangerous files found in this plugin740 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP415166712
CSS14027
SVG1001

PHP code Passed 2 tests

Analyzing 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.38
Average class complexity49.00
▷ Minimum class complexity21.00
▷ Maximum class complexity77.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2170.00%
▷ Protected methods00.00%
▷ Private methods930.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/satimipay_icon.png96.66KB36.48KB▼ 62.26%
assets/images/satimipay_error.png6.10KB3.26KB▼ 46.44%