83% payid19-com-payment-gateway

Code Review | Crypto Payment Gateway - Payid19.Com

WordPress plugin Crypto Payment Gateway - Payid19.Com scored83%from 54 tests.

About plugin

  • Plugin page: payid19-com-payme...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Oct 10, 2023
  • Number of updates: 17
  • Update frequency: every 44.1 days
  • Top authors: payid19com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.15ms] Passed 4 tests

A check of server-side resources used by Crypto Payment Gateway - Payid19.Com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.08 ▼6.38
Dashboard /wp-admin3.39 ▲0.0950.00 ▼2.20
Posts /wp-admin/edit.php3.50 ▲0.1551.15 ▲3.94
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.35 ▼22.41
Media Library /wp-admin/upload.php3.31 ▲0.0838.01 ▼1.60

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Crypto Payment Gateway - Payid19.Com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.081.73 ▼0.3341.82 ▼4.67
Dashboard /wp-admin2,198 ▲215.62 ▼0.0394.40 ▲2.6737.41 ▼2.98
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0439.54 ▲2.6736.12 ▼2.14
Add New Post /wp-admin/post-new.php1,546 ▲922.84 ▲4.66680.33 ▲9.1459.31 ▼4.72
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0998.01 ▼12.5448.16 ▲2.17

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payid19-com-payment-gateway/class_kriptopos_payment.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/payid19-com-payment-gateway/class_kriptopos_core.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payid19-com-payment-gateway/class_kriptopos_callback.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payid19-com-payment-gateway/class_kriptopos_receipt.php:53

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #3 (Basket Page), #6 (Order List Page), #7 (Order Management)
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

payid19-com-payment-gateway/payid19pos.php 85% from 13 tests

"Crypto Payment Gateway - Payid19.Com" version 1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
  • Main file name: The principal plugin file should be the same as the plugin slug ("payid19-com-payment-gateway.php" instead of "payid19pos.php")

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
Everything looks great! No dangerous files found in this plugin329 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57659326
CSS1002
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.30MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png39.16KB11.89KB▼ 69.65%
assets/Screenshot3.png38.25KB12.11KB▼ 68.35%
assets/screenshot-2.png20.93KB7.00KB▼ 66.55%
assets/banner-1544x500.png62.95KB20.15KB▼ 67.99%
assets/screenshot-5.png28.33KB9.78KB▼ 65.49%