77% fizen-pay-woocommerce

Code Review | Fizen Pay For WooCommerce

WordPress plugin Fizen Pay For WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: fizen-pay-woocomm...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.9-6.0
  • WordPress version: 6.3.1
  • First release: Jun 13, 2022
  • Latest release: Apr 18, 2023
  • Number of updates: 15
  • Update frequency: every 20.8 days
  • Top authors: fizenio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /701 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.33ms] Passed 4 tests

A check of server-side resources used by Fizen Pay For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.78 ▼3.06
Dashboard /wp-admin3.32 ▲0.0246.36 ▲0.36
Posts /wp-admin/edit.php3.37 ▲0.0245.85 ▼0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.08 ▲3.60
Media Library /wp-admin/upload.php3.25 ▲0.0233.48 ▼6.57

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Fizen Pay For WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.111.91 ▲0.1741.83 ▲0.00
Dashboard /wp-admin2,209 ▲184.87 ▼0.17108.23 ▲2.9539.52 ▼3.19
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.87 ▲4.9936.08 ▼4.81
Add New Post /wp-admin/post-new.php1,533 ▲1923.10 ▲5.41670.92 ▼12.2952.17 ▼6.33
Media Library /wp-admin/upload.php1,382 ▼94.28 ▲0.1894.17 ▼9.8241.61 ▼5.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fizen-pay-woocommerce/uninstall.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fizen-pay-woocommerce/fizen-pay-woocommerce.php:51

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: payment gateway, fizen pay, woocommerce, crypto

fizen-pay-woocommerce/fizen-pay-woocommerce.php 77% from 13 tests

This is the main PHP file of "Fizen Pay For WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "3.0.9")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin475 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4120206475

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.50
▷ Minimum class complexity18.00
▷ Maximum class complexity33.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods531.25%
▷ Public methods1593.75%
▷ Protected methods16.25%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/usdc.png2.46KB0.00KB▼ 100.00%
(invalid) assets/images/bnb.png2.06KB0.00KB▼ 100.00%
assets/images/bitcoin.png16.21KB1.34KB▼ 91.71%
assets/images/doge.png4.15KB2.62KB▼ 37.00%
assets/images/usdt.png5.21KB2.43KB▼ 53.34%