83% bridge-instant-bank-transfer

Code Review | Bridge - Payer par Virement Immédiat

WordPress plugin Bridge - Payer par Virement Immédiat scored83%from 54 tests.

About plugin

  • Plugin page: bridge-instant-ba...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 25, 2022
  • Latest release: Oct 6, 2023
  • Number of updates: 21
  • Update frequency: every 25.3 days
  • Top authors: bridgeapiofficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,850 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests

A check of server-side resources used by Bridge - Payer par Virement Immédiat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.45 ▼0.78
Dashboard /wp-admin3.31 ▲0.0048.70 ▼4.30
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▼8.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.99 ▼9.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.67 ▼4.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bridge - Payer par Virement Immédiat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.031.62 ▼0.4443.74 ▲2.83
Dashboard /wp-admin2,192 ▲155.57 ▲0.0487.47 ▼5.1441.56 ▲2.14
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0234.73 ▼3.5634.52 ▼3.81
Add New Post /wp-admin/post-new.php1,533 ▲723.25 ▲0.13637.97 ▼73.6047.96 ▼2.22
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.06107.10 ▼2.0042.09 ▼6.37

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • bridge_key
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/OpenSSL.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/ItExists.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/ConnectionError.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/BridgeApi.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/IO.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/NotExists.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/BridgeGateway.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'BridgeApi\\Exceptions\\Exception' not found in wp-content/plugins/bridge-instant-bank-transfer/includes/Exceptions/DecodeError.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: payment, paiement, virement bancaire, wire transfer

bridge-instant-bank-transfer/bridgeapi-io.php 69% from 13 tests

The principal PHP file in "Bridge - Payer par Virement Immédiat" v. 1.0.12 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.1")
  • Main file name: Name the main plugin file the same as the plugin slug ("bridge-instant-bank-transfer.php" instead of "bridgeapi-io.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "7.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,789 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP304268032,066
PO File1105116263
CSS1302232
JavaScript3260200
JSON20028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.17
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods123
▷ Static methods4738.21%
▷ Public methods10887.80%
▷ Protected methods00.00%
▷ Private methods1512.20%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants17
▷ Global constants1482.35%
▷ Class constants317.65%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.20MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/telephone.png7.93KB5.35KB▼ 32.57%
assets/images/down-arrow.png0.39KB0.38KB▼ 3.27%
assets/images/arrow-down-sign-to-navigate.png0.46KB0.39KB▼ 14.23%
assets/images/magnifying-glass.png1.44KB1.53KB0.00%
assets/images/checked.png1.48KB0.60KB▼ 59.30%