84% getfinancing-payment-gateway-for-woocommerce

Code Review | GetFinancing Finance Payment Gateway for WooCommerce

WordPress plugin GetFinancing Finance Payment Gateway for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: getfinancing-paym...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1.3-4.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Feb 26, 2018
  • Number of updates: 9
  • Update frequency: every 89.3 days
  • Top authors: afatsini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by GetFinancing Finance Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.68 ▼5.88
Dashboard /wp-admin3.31 ▲0.0145.19 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0144.58 ▼3.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.89 ▼6.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.55 ▲2.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for GetFinancing Finance Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.33 ▼1.041.95 ▲0.1744.56 ▲3.17
Dashboard /wp-admin2,210 ▲364.85 ▼0.02115.54 ▲6.3544.81 ▲4.19
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0035.29 ▼3.4233.14 ▲0.52
Add New Post /wp-admin/post-new.php1,540 ▲2123.28 ▼0.00674.37 ▼11.7560.73 ▲7.65
Media Library /wp-admin/upload.php1,398 ▲134.19 ▼0.0497.16 ▼11.8044.78 ▼4.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getfinancing-payment-gateway-for-woocommerce/getfinancing.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: woocommerce financing, woocommerce, getfinancing, get finance, consumer finance gateway for woocommerce...

getfinancing-payment-gateway-for-woocommerce/getfinancing.php 92% from 13 tests

The principal PHP file in "GetFinancing Finance Payment Gateway for WooCommerce" v. 1.5 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("getfinancing-payment-gateway-for-woocommerce.php" instead of "getfinancing.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin413 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28796413

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/checkout-button.png8.29KB3.78KB▼ 54.42%
assets/images/getfinancing-logo.png7.46KB3.96KB▼ 46.92%