83% syspay-for-woocommerce

Code Review | Syspay

WordPress plugin Syspay scored83%from 54 tests.

About plugin

  • Plugin page: syspay-for-woocom...
  • Plugin version: 1.54
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2020
  • Latest release: Nov 4, 2022
  • Number of updates: 23
  • Update frequency: every 38.1 days
  • Top authors: syspay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 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.02MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by Syspay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.41 ▼0.05
Dashboard /wp-admin3.32 ▲0.0245.14 ▼2.27
Posts /wp-admin/edit.php3.37 ▲0.0247.89 ▼0.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.14 ▼17.33
Media Library /wp-admin/upload.php3.25 ▲0.0233.74 ▲0.73
Syspay payment form /wp-admin/options-general.php?page=syspay-payment-form-settings-page3.2131.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Syspay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.28 ▼1.284.64 ▲2.8044.53 ▲3.20
Dashboard /wp-admin2,210 ▲224.82 ▼0.07106.81 ▼0.9239.25 ▼5.57
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0139.39 ▲4.1035.55 ▼3.33
Add New Post /wp-admin/post-new.php6,366 ▲4,84422.36 ▼0.87880.20 ▲216.0157.88 ▲4.20
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0295.75 ▼8.5345.35 ▲0.96
Syspay payment form /wp-admin/options-general.php?page=syspay-payment-form-settings-page8232.0624.4427.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/syspay-for-woocommerce/includes/payment_form.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% 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: bezahlsystem, syspay, online payment, payment, checkout...

syspay-for-woocommerce/syspay.php 69% from 13 tests

The main file in "Syspay" v. 1.54 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("syspay-for-woocommerce.php" instead of "syspay.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 302 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("5.6.0" instead of "3.0.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin61,684 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON30059,460
PHP53143451,739
JavaScript897149291
PO File26464173
Sass22019
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods82
▷ Static methods22.44%
▷ Public methods7591.46%
▷ Protected methods00.00%
▷ Private methods78.54%
Functions29
▷ Named functions2379.31%
▷ Anonymous functions620.69%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/icon.png11.82KB4.62KB▼ 60.96%