90% bestrate-checkout-for-woocommerce

Code Review | BestRate Payment Gateway for WooCommerce

WordPress plugin BestRate Payment Gateway for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: bestrate-checkout...
  • Plugin version: 0.5.29
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2019
  • Latest release: Aug 25, 2020
  • Number of updates: 38
  • Update frequency: every 13.0 days
  • Top authors: bestrateorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by BestRate Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.61 ▼11.33
Dashboard /wp-admin3.31 ▲0.0049.57 ▼0.47
Posts /wp-admin/edit.php3.36 ▲0.0047.94 ▼1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.68 ▲9.99
Media Library /wp-admin/upload.php3.23 ▲0.0038.47 ▲1.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BestRate Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▼0.101.73 ▼0.3842.17 ▲2.17
Dashboard /wp-admin2,206 ▲215.81 ▼0.04100.98 ▼5.2843.37 ▼1.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0534.21 ▼6.4636.86 ▼0.04
Add New Post /wp-admin/post-new.php1,533 ▼923.27 ▲5.21700.24 ▲91.8656.88 ▲2.55
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0694.69 ▼4.0243.05 ▼0.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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (BestRate Payment Gateway setup - cryptocurrency and wallet selection window), #2 (Some of the 120 cryptocurrencies supported by BestRate), #3 (BestRate Bitcoin Payment Page - Invoice)
The official readme.txt might help

bestrate-checkout-for-woocommerce/bestrate-checkout-for-woocommerce.php Passed 13 tests

The entry point to "BestRate Payment Gateway for WooCommerce" version 0.5.29 is a PHP file that has certain tags in its header comment area
61 characters long description:
Accept crypto payments via BestRate in your WooCommerce store

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin496 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP510156419
SVG30043
Markdown118034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin