84% keks-pay-for-woocommerce

Code Review | KEKS Pay for WooCommerce

WordPress plugin KEKS Pay for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: keks-pay-for-wooc...
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 31, 2020
  • Latest release: Nov 6, 2023
  • Number of updates: 24
  • Update frequency: every 48.5 days
  • Top authors: erstebank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,219 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.04MB] [CPU: ▼2.64ms] Passed 4 tests

An overview of server-side resources used by KEKS Pay for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.51 ▼8.36
Dashboard /wp-admin3.35 ▲0.0545.30 ▼4.13
Posts /wp-admin/edit.php3.46 ▲0.1146.24 ▲0.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.79 ▲4.19
Media Library /wp-admin/upload.php3.27 ▲0.0436.80 ▲1.46

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

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

Browser metrics Passed 4 tests

KEKS Pay for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.67 ▲0.311.82 ▼0.1142.30 ▼2.24
Dashboard /wp-admin2,202 ▲225.61 ▼0.0595.83 ▲5.5941.71 ▲0.83
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0243.21 ▲6.6739.99 ▲5.40
Add New Post /wp-admin/post-new.php1,533 ▲523.21 ▼0.07607.59 ▼43.4847.95 ▼0.61
Media Library /wp-admin/upload.php1,410 ▲74.18 ▲0.0898.35 ▲2.4443.99 ▲1.50

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 62× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require_once(wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-settings-container/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-settings-container/examples/simple.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php:30
    • > PHP Warning
      require_once(wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/imageWithText.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/image.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/svg.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/examples/imageWithText.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCodeTest\\Output\\QROutputTestAbstract' not found in wp-content/plugins/keks-pay-for-woocommerce/vendor/chillerlan/php-qrcode/tests/Output/QRStringTest.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, gateway, payment, kekspay

keks-pay-for-woocommerce/woocommerce-gateway-kekspay.php 85% from 13 tests

Analyzing the main PHP file in "KEKS Pay for WooCommerce" version 1.0.14
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("keks-pay-for-woocommerce.php" instead of "woocommerce-gateway-kekspay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin5,025 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
PHP781,4632,7234,426
HTML1260137
XML500129
JSON100117
SVG20070
CSS114569
JavaScript28543
YAML38034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.06
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces14
Interfaces3
Traits4
Classes57
▷ Abstract classes610.53%
▷ Concrete classes5189.47%
▷ Final classes00.00%
Methods315
▷ Static methods3210.16%
▷ Public methods24076.19%
▷ Protected methods6821.59%
▷ Private methods72.22%
Functions18
▷ Named functions527.78%
▷ Anonymous functions1372.22%
Constants55
▷ Global constants712.73%
▷ Class constants4887.27%
▷ Public constants4389.58%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/chillerlan/php-qrcode/examples/example_image.png2.23KB1.09KB▼ 50.94%
vendor/chillerlan/php-qrcode/examples/octocat.png2.41KB2.46KB0.00%
vendor/chillerlan/php-qrcode/examples/example_svg.png15.55KB6.70KB▼ 56.90%