90% tezropay-checkout-for-woocommerce

Code Review | TezroPay Checkout for WooCommerce

WordPress plugin TezroPay Checkout for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: tezropay-checkout...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 31, 2021
  • Latest release: Jan 5, 2022
  • Number of updates: 27
  • Update frequency: every 3.6 days
  • Top authors: tezro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.57ms] Passed 4 tests

Analyzing server-side resources used by TezroPay Checkout for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.94 ▼5.56
Dashboard /wp-admin3.31 ▲0.0045.13 ▼3.38
Posts /wp-admin/edit.php3.36 ▲0.0046.78 ▼4.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.91 ▼21.22
Media Library /wp-admin/upload.php3.23 ▲0.0031.55 ▼0.87

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TezroPay Checkout for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.332.13 ▲0.3540.70 ▼3.16
Dashboard /wp-admin2,195 ▲185.63 ▼0.0482.52 ▼6.4738.28 ▼8.71
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0536.02 ▼5.8131.55 ▼9.14
Add New Post /wp-admin/post-new.php1,528 ▼923.32 ▲5.29670.95 ▲63.0457.26 ▼8.23
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0092.82 ▼4.6240.20 ▼6.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: payment gateway, tezro, crypto, bitcoin, tether...

tezropay-checkout-for-woocommerce/index.php 92% from 13 tests

The main PHP file in "TezroPay Checkout for WooCommerce" ver. 1.1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tezropay-checkout-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,301 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP5227971,252
JavaScript48429808
SVG200157
CSS10084

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions37
▷ Named functions3697.30%
▷ Anonymous functions12.70%
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
5 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png18.76KB8.22KB▼ 56.18%
images/pay.tezro.png1.83KB1.88KB0.00%
assets/icon-256x256.png13.18KB5.36KB▼ 59.34%
assets/1b.png49.47KB11.32KB▼ 77.12%
assets/2b.png49.45KB13.22KB▼ 73.26%