83% woo-omnifund-gateway

Code Review | OmniFund Payment Gateway for WooCommerce

WordPress plugin OmniFund Payment Gateway for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-omnifund-gateway
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Aug 25, 2022
  • Number of updates: 16
  • Update frequency: every 97.2 days
  • Top authors: omnifunddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.25ms] Passed 4 tests

This is a short check of server-side resources used by OmniFund Payment Gateway for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.41 ▲2.47
Dashboard /wp-admin3.40 ▲0.0547.21 ▼9.27
Posts /wp-admin/edit.php3.45 ▲0.0945.85 ▼2.65
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.40 ▼13.96
Media Library /wp-admin/upload.php3.32 ▲0.0933.66 ▲0.90

Server storage [IO: ▲0.05MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by OmniFund Payment Gateway for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.76 ▲0.1343.70 ▲4.46
Dashboard /wp-admin2,192 ▲155.56 ▼0.1283.79 ▼2.8139.38 ▼2.85
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0132.63 ▼2.1834.68 ▼2.24
Add New Post /wp-admin/post-new.php1,526 ▼723.58 ▲0.45659.91 ▲5.7453.90 ▼4.75
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.09106.81 ▲6.3745.50 ▲0.45

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-omnifund-gateway/woocommerce-gateway-omnifund.php:16

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #2, #3 in woo-omnifund-gateway/assets to your readme.txt
  • Requires php: Invalid plugin version format
The official readme.txt is a good inspiration

woo-omnifund-gateway/woocommerce-gateway-omnifund.php 85% from 13 tests

The entry point to "OmniFund Payment Gateway for WooCommerce" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-omnifund-gateway.php" instead of "woocommerce-gateway-omnifund.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0.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
Everything looks great! No dangerous files found in this plugin793 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2153118780
JSON10013

PHP code Passed 2 tests

An overview 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.39
Average class complexity50.50
▷ Minimum class complexity31.00
▷ Maximum class complexity70.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin