99% bstcm-findio-gateway

Code Review | Findio WooCommerce plugin

WordPress plugin Findio WooCommerce plugin scored 99% from 54 tests.

About plugin

  • Plugin page: bstcm-findio-gateway
  • Plugin version: 0.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.9.7
  • WordPress version: 5.8.1
  • First release: Jun 26, 2018
  • Latest release: Jul 24, 2018
  • Number of updates: 5
  • Update frequency: every 6.8 days
  • Top authors: basticom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 412 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Findio WooCommerce plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0133.19 ▲1.70
Dashboard /wp-admin3.07 ▲0.0147.45 ▲5.19
Posts /wp-admin/edit.php3.12 ▲0.0144.02 ▼2.28
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.17 ▼550.75
Media Library /wp-admin/upload.php3.01 ▲0.0137.34 ▲3.00

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Findio WooCommerce plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.21 ▲0.518.86 ▼0.3947.84 ▼2.21
Dashboard /wp-admin2,970 ▲395.85 ▼0.13137.80 ▼5.53111.49 ▲0.83
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0164.57 ▲2.2389.41 ▼2.79
Add New Post /wp-admin/post-new.php2,057 ▲18519.43 ▲0.28382.03 ▲3.03108.49 ▼2.71
Media Library /wp-admin/upload.php1,810 ▼05.02 ▼0.04148.15 ▼0.24121.39 ▼5.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Findio Payment Gateway – Back-end configuration page), #2 (Findio Payment Gateway – Single product loan offer), #3 (Findio Payment Gateway – Cart total loan offer), #4 (Findio Payment Gateway – Checkout total loan offer (detailed)), #5 (Findio Payment Gateway – Loan offer calculation table)
You can take inspiration from this readme.txt

bstcm-findio-gateway/bstcm-findio-gateway.php 92% from 13 tests

This is the main PHP file of "Findio WooCommerce plugin" version 0.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7.0" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,799 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP43583481,030
CSS14927321
HTML1112322202
PO File16166147
JavaScript1502097
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
assets/img/geldlenenkostgeld-banner.png8.24KB3.89KB▼ 52.81%