84% weepay-payment-gateway-sanal-pos-modulu

Code Review | weepay Payment Gateway | weepay Sanal POS Modülü

WordPress plugin weepay Payment Gateway | weepay Sanal POS Modülü scored84%from 54 tests.

About plugin

  • Plugin page: weepay-payment-ga...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 10
  • Update frequency: every 87.5 days
  • Top authors: weepayco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by weepay Payment Gateway | weepay Sanal POS Modülü
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.50 ▼1.91
Dashboard /wp-admin3.43 ▲0.1345.08 ▼10.62
Posts /wp-admin/edit.php3.55 ▲0.1948.96 ▲3.05
Add New Post /wp-admin/post-new.php6.01 ▲0.1386.56 ▼9.96
Media Library /wp-admin/upload.php3.35 ▲0.1336.55 ▲2.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for weepay Payment Gateway | weepay Sanal POS Modülü
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.32 ▼0.021.65 ▼0.1339.77 ▼1.87
Dashboard /wp-admin2,192 ▲115.63 ▼0.0595.79 ▼5.2041.61 ▼0.64
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0438.99 ▲1.7437.61 ▲4.43
Add New Post /wp-admin/post-new.php1,529 ▲123.08 ▲0.02613.75 ▼41.7951.59 ▼3.98
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0797.04 ▼16.1843.05 ▼5.42

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: error_message in wp-content/plugins/weepay-payment-gateway-sanal-pos-modulu/weepay.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/weepay-payment-gateway-sanal-pos-modulu/weepay.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
10 plugin tags: woocommerce kredi kart, kredi kart ile deme, ecommerce, checkout woocommerce, sanal pos...

weepay-payment-gateway-sanal-pos-modulu/class-wc-weepay-payment.php 85% from 13 tests

Analyzing the main PHP file in "weepay Payment Gateway | weepay Sanal POS Modülü" version 1.0.3
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("weepay-payment-gateway-sanal-pos-modulu.php" instead of "class-wc-weepay-payment.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0.0")

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
Good job! No executable or dangerous file extensions detected827 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP28313488
PO File2742174
SVG606165

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.24
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cards.png33.72KB5.48KB▼ 83.74%
img/logo.png3.62KB3.44KB▼ 5.01%