84% e-payeye-payments

Code Review | e-payeye payments

WordPress plugin e-payeye payments scored84%from 54 tests.

About plugin

  • Plugin page: e-payeye-payments
  • Plugin version: 0.8.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 24, 2023
  • Latest release: Aug 25, 2023
  • Number of updates: 20
  • Update frequency: every 7.2 days
  • Top authors: payeye (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.14ms] Passed 4 tests

This is a short check of server-side resources used by e-payeye payments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1444.32 ▲4.29
Dashboard /wp-admin3.44 ▲0.1450.89 ▼2.77
Posts /wp-admin/edit.php3.55 ▲0.2054.69 ▲0.65
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.69 ▼8.54
Media Library /wp-admin/upload.php3.36 ▲0.1342.97 ▲2.10

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

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

Browser metrics Passed 4 tests

e-payeye payments: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.34 ▲0.121.91 ▲0.2643.12 ▼1.19
Dashboard /wp-admin2,201 ▲245.57 ▼0.0783.11 ▼7.5143.07 ▲1.77
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0236.15 ▼2.1138.99 ▲2.04
Add New Post /wp-admin/post-new.php1,537 ▲1123.06 ▼0.10634.53 ▼73.6956.31 ▲4.39
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0399.14 ▼9.6644.57 ▼1.44

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 95× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'PayEye\\Lib\\Tool\\Builder' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/Order/OrderResponseModel.php on line 10
    • > PHP Fatal error
      Trait 'PayEye\\Lib\\Tool\\Builder' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/Model/Shop.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'PayEye\\Lib\\Exception\\PayEyePaymentException' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/Exception/OrderPriceNotMatchedException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php:24
    • > PHP Fatal error
      Trait 'PayEye\\Lib\\Tool\\Builder' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/Returns/ReturnUpdateStatusResponseModel.php on line 10
    • > PHP Fatal error
      Trait 'PayEye\\Lib\\Tool\\Builder' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/PromoCode/PromoCodeResponseModel.php on line 9
    • > PHP Warning
      require_once(wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-qrcode/examples/custom_output.php on line 15
    • > PHP Fatal error
      Trait 'PayEye\\Lib\\Tool\\Builder' not found in wp-content/plugins/e-payeye-payments/vendor/payeye/lib/src/Model/Product.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-settings-container/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-settings-container/examples/advanced.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/e-payeye-payments/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: e-payeye payments, payeye, biometria, e-payeye, payment gateway...

e-payeye-payments/e-payeye-payments.php Passed 13 tests

The primary PHP file in "e-payeye payments" version 0.8.0 is used by WordPress to initiate all plugin functionality
33 characters long description:
e-payeye payments for WooCommerce

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
Everything looks great! No dangerous files found in this plugin10,026 lines of code in 217 files:
LanguageFilesBlank linesComment linesLines of code
PHP2022,7392,5509,381
JSON200183
PO File15058139
HTML1260137
YAML527395
XML30084
JavaScript2006
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces61
Interfaces5
Traits5
Classes175
▷ Abstract classes2212.57%
▷ Concrete classes15387.43%
▷ Final classes21.31%
Methods654
▷ Static methods8613.15%
▷ Public methods55384.56%
▷ Protected methods659.94%
▷ Private methods365.50%
Functions30
▷ Named functions13.33%
▷ Anonymous functions2996.67%
Constants165
▷ Global constants00.00%
▷ Class constants165100.00%
▷ Public constants13481.21%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%