94% digital-mandate-for-woocommerce

Code Review | PayIBAN – Plugin machtigen via Incassomachtigen voor Woocommerce

WordPress plugin PayIBAN – Plugin machtigen via Incassomachtigen voor Woocommerce scored 94% from 54 tests.

About plugin

  • Plugin page: digital-mandate-f...
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.7.0
  • WordPress version: 5.8.1
  • First release: Feb 16, 2017
  • Latest release: Oct 13, 2017
  • Number of updates: 12
  • Update frequency: every 20.6 days
  • Top authors: PayIBAN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 508 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼142.31ms] Passed 4 tests

Analyzing server-side resources used by PayIBAN – Plugin machtigen via Incassomachtigen voor Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.1133.16 ▼6.27
Dashboard /wp-admin3.17 ▲0.1247.80 ▼15.26
Posts /wp-admin/edit.php3.22 ▲0.1250.63 ▲10.31
Add New Post /wp-admin/post-new.php5.53 ▲0.1086.45 ▼554.26
Media Library /wp-admin/upload.php3.12 ▲0.1135.82 ▲6.56
Welcome /wp-admin/index.php?page=machtiging-free-plugin-welcome3.0829.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for PayIBAN – Plugin machtigen via Incassomachtigen voor Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11215.92 ▲0.2410.86 ▲1.5746.08 ▼4.57
Dashboard /wp-admin2,972 ▲385.93 ▼0.07144.59 ▼46.74114.11 ▼18.26
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0167.97 ▼2.5584.77 ▼5.56
Add New Post /wp-admin/post-new.php1,503 ▼17518.59 ▼0.20373.10 ▼22.07107.12 ▼2.04
Media Library /wp-admin/upload.php1,815 ▲55.04 ▲0.01145.13 ▼4.64120.63 ▲6.25
Welcome /wp-admin/index.php?page=machtiging-free-plugin-welcome1,0022.3575.9154.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/index.php?page=machtiging-free-plugin-welcome
    • > Network (severe)
    chrome-error://chromewebdata/ - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/index.php?page=machtiging-free-plugin-welcome
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://www.payiban.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 96% 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
8 plugin tags: woocommerce, ideal, sepa incasso, sepa direct debit, payment provider...

digital-mandate-for-woocommerce/digital-mandate-payIBAN.php 92% from 13 tests

"PayIBAN – Plugin machtigen via Incassomachtigen voor Woocommerce" version 1.3.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("digital-mandate-for-woocommerce.php" instead of "digital-mandate-payIBAN.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected632 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP113493499
PO File168125133

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
payibanlogo.png3.46KB2.18KB▼ 37.00%