89% oganro-payment-gateway-for-seylan-bank

Code Review | Seylan Bank Payment Gateway by Oganro

WordPress plugin Seylan Bank Payment Gateway by Oganro scored 89% from 54 tests.

About plugin

  • Plugin page: oganro-payment-ga...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Jan 19, 2017
  • Number of updates: 5
  • Update frequency: every 71.2 days
  • Top authors: Oganro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 629 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.00MB] [CPU: ▼4.19ms] Passed 4 tests

Server-side resources used by Seylan Bank Payment Gateway by Oganro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.24 ▼3.30
Dashboard /wp-admin3.31 ▲0.0044.11 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0045.87 ▼5.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▼7.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.81 ▲0.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
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

This is an overview of browser requirements for Seylan Bank Payment Gateway by Oganro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.44 ▲0.061.58 ▼0.2739.87 ▼5.51
Dashboard /wp-admin2,206 ▲154.87 ▼0.01108.24 ▲6.3441.66 ▼3.75
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0239.52 ▼2.7636.03 ▲0.12
Add New Post /wp-admin/post-new.php1,542 ▲922.69 ▼0.37618.61 ▼35.1663.49 ▲8.51
Media Library /wp-admin/upload.php1,382 ▼34.20 ▲0.0197.84 ▼1.8743.86 ▲0.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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check that no browser errors were triggered
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
Attributes that require attention: Please take inspiration from this readme.txt

oganro-payment-gateway-for-seylan-bank/seylan-payment-gateway-woocommerce.php 92% from 13 tests

The main PHP script in "Seylan Bank Payment Gateway by Oganro" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oganro-payment-gateway-for-seylan-bank.php" instead of "seylan-payment-gateway-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin349 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110027349

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin