90% remitano-payment-gateway-for-woocommerce

Code Review | Remitano Payment Gateway for WooCommerce

WordPress plugin Remitano Payment Gateway for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: remitano-payment-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 2, 2021
  • Latest release: Aug 12, 2021
  • Number of updates: 22
  • Update frequency: every 1.9 days
  • Top authors: remitanoofficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.53ms] Passed 4 tests

Analyzing server-side resources used by Remitano Payment Gateway for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼8.81
Dashboard /wp-admin3.31 ▲0.0149.98 ▼2.36
Posts /wp-admin/edit.php3.36 ▲0.0151.20 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.97 ▲9.35
Media Library /wp-admin/upload.php3.23 ▲0.0137.17 ▲2.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Remitano Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.72 ▼0.634.11 ▲2.1042.65 ▼2.28
Dashboard /wp-admin2,209 ▲185.91 ▲0.05111.21 ▲0.5837.43 ▼4.02
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0141.27 ▲1.4834.36 ▲1.74
Add New Post /wp-admin/post-new.php1,514 ▼017.62 ▲0.07624.90 ▼43.5962.57 ▲8.41
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.00104.03 ▼1.6644.64 ▲0.06

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

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

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, payment gateway, remitano

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

"Remitano Payment Gateway for WooCommerce" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("remitano-payment-gateway-for-woocommerce.php" instead of "remitano-payment-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin360 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25919360

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 files were detected