90% wc-paybox-payment-gateway

Code Review | Payment Gateway for Paybox on Woocommerce

WordPress plugin Payment Gateway for Paybox on Woocommerce scored 90% from 54 tests.

About plugin

  • Plugin page: wc-paybox-payment...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Mar 3, 2021
  • Number of updates: 9
  • Update frequency: every 15.7 days
  • Top authors: adiel987654554 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 1,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Payment Gateway for Paybox on Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0346.86 ▼5.28
Dashboard /wp-admin3.31 ▲0.0050.35 ▼12.50
Posts /wp-admin/edit.php3.36 ▼0.4949.02 ▼12.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.39 ▼9.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.23 ▼3.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Payment Gateway for Paybox on Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼1.012.08 ▲0.2443.90 ▼0.20
Dashboard /wp-admin2,203 ▲155.76 ▼0.14108.14 ▼11.9648.18 ▼5.34
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0539.01 ▼1.4136.04 ▼0.79
Add New Post /wp-admin/post-new.php1,537 ▲922.95 ▲0.12663.18 ▲3.6561.18 ▲1.87
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.10113.42 ▼4.9752.57 ▲2.47

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
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: manual payment, gateway, payment gateway, paybox, woocommerce

wc-paybox-payment-gateway/wc-paybox-payment-gateway.php 92% from 13 tests

"Payment Gateway for Paybox on Woocommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin203 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15662122
PO File1222281

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.28
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/paybox-logo.png1.43KB0.93KB▼ 35.13%