89% invoice-gateway-for-woocommerce

Code Review | Invoice Gateway for WooCommerce - Invoice Payment Gateway

WordPress plugin Invoice Gateway for WooCommerce - Invoice Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: invoice-gateway-f...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Sep 20, 2023
  • Number of updates: 21
  • Update frequency: every 117.2 days
  • Top authors: jkohlbach (90.48%)paulgrymera (14.29%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /21,015 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.88ms] Passed 4 tests

Server-side resources used by Invoice Gateway for WooCommerce - Invoice Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.78 ▼7.70
Dashboard /wp-admin3.34 ▲0.0347.54 ▲3.34
Posts /wp-admin/edit.php3.39 ▲0.0347.76 ▲1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.18 ▼13.87
Media Library /wp-admin/upload.php3.26 ▲0.0334.85 ▼2.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Invoice Gateway for WooCommerce - Invoice Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6413.57 ▼1.011.63 ▼0.7342.76 ▼5.87
Dashboard /wp-admin2,227 ▲364.82 ▼0.19107.63 ▼1.2542.47 ▼0.46
Posts /wp-admin/edit.php2,113 ▲242.02 ▼0.0439.15 ▼0.2740.17 ▲4.28
Add New Post /wp-admin/post-new.php1,535 ▼717.72 ▼0.57603.95 ▼102.3349.80 ▼9.17
Media Library /wp-admin/upload.php1,409 ▲244.28 ▲0.0395.18 ▼21.2142.71 ▼5.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

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

The principal PHP file in "Invoice Gateway for WooCommerce - Invoice Payment Gateway" v. 1.1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,021 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP165221,0131,015
CSS1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.15
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces6
Interfaces3
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods84
▷ Static methods78.33%
▷ Public methods7488.10%
▷ Protected methods00.00%
▷ Private methods1011.90%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin