89% ibexpay-payment-gateway

Code Review | IBEXPay Woocommerce Payment Gateway

WordPress plugin IBEXPay Woocommerce Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: ibexpay-payment-g...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Jun 27, 2023
  • Number of updates: 19
  • Update frequency: every 20.2 days
  • Top authors: ibexmercado (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /918 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.10ms] Passed 4 tests

A check of server-side resources used by IBEXPay Woocommerce Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.00 ▼3.27
Dashboard /wp-admin3.31 ▲0.0052.73 ▼5.82
Posts /wp-admin/edit.php3.36 ▲0.0052.44 ▲3.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.18 ▼15.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▼4.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for IBEXPay Woocommerce Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.67 ▼0.711.82 ▼0.1440.89 ▼2.10
Dashboard /wp-admin2,224 ▲274.90 ▼0.9797.85 ▼21.8039.02 ▼7.11
Posts /wp-admin/edit.php2,103 ▲62.02 ▲0.0339.32 ▲2.3935.81 ▼2.54
Add New Post /wp-admin/post-new.php1,531 ▼723.24 ▲0.13634.19 ▼12.5153.61 ▼1.00
Media Library /wp-admin/upload.php1,403 ▲64.31 ▲0.0697.35 ▼12.3547.24 ▼5.76

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 | 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
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in ibexpay-payment-gateway/assets to your readme.txt
The official readme.txt might help

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

Analyzing the main PHP file in "IBEXPay Woocommerce Payment Gateway" version 1.1.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ibexpay-payment-gateway.php" instead of "ibexpay-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1408184
Markdown1203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 1.88MB with 1.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/ibex-logo.png90.16KB32.31KB▼ 64.17%
assets/banner-772x250-rtl.png19.76KB7.80KB▼ 60.53%
assets/screenshot-3.png77.78KB10.29KB▼ 86.77%
assets/bitcoin-logo.png90.16KB32.31KB▼ 64.17%
assets/banner-772x250.png19.78KB7.91KB▼ 60.02%