89% webmicro-merchantone-woo-addon

Code Review | MerchantOne Payment Gateway WooCommerce Addon

WordPress plugin MerchantOne Payment Gateway WooCommerce Addon scored89%from 54 tests.

About plugin

  • Plugin page: webmicro-merchant...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Oct 8, 2016
  • Number of updates: 19
  • Update frequency: every 22.2 days
  • Top authors: nazrulhassanmca (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,212 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.14MB] [CPU: ▼10.36ms] Passed 4 tests

A check of server-side resources used by MerchantOne Payment Gateway WooCommerce Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1537.55 ▼3.55
Dashboard /wp-admin3.46 ▲0.1145.40 ▼11.38
Posts /wp-admin/edit.php3.58 ▲0.2143.98 ▼4.63
Add New Post /wp-admin/post-new.php6.04 ▲0.1579.48 ▼21.89
Media Library /wp-admin/upload.php3.39 ▲0.1535.43 ▼2.98

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

Browser metrics Passed 4 tests

MerchantOne Payment Gateway WooCommerce Addon: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.17 ▼0.381.90 ▲0.2443.67 ▲3.17
Dashboard /wp-admin2,198 ▲245.63 ▲0.0481.72 ▼5.1740.77 ▼3.64
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.46 ▼1.3334.53 ▼2.06
Add New Post /wp-admin/post-new.php1,526 ▼223.40 ▲0.32612.59 ▼77.2349.67 ▼3.36
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.14106.35 ▲0.1146.56 ▲1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Version not formatted correctly
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

webmicro-merchantone-woo-addon/webmicro-merchantone-woo-addon.php Passed 13 tests

The main PHP file in "MerchantOne Payment Gateway WooCommerce Addon" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
111 characters long description:
This plugin adds a payment option in WooCommerce for customers to pay with their Credit Cards Via Merchant One.

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
Success! There were no dangerous files found in this plugin613 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28845613

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity16.50
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/visaelectron.png8.44KB3.69KB▼ 56.33%
images/visa.png6.19KB3.09KB▼ 50.13%
images/merchantone.png6.63KB2.96KB▼ 55.30%
images/dinersclub.png6.35KB3.25KB▼ 48.74%
images/maestro.png9.75KB3.88KB▼ 60.26%