90% wc-wise-gateway

Code Review | Gateway for Wise on WooCommerce

WordPress plugin Gateway for Wise on WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-wise-gateway
  • Plugin version: 2.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2021
  • Latest release: Aug 13, 2022
  • Number of updates: 53
  • Update frequency: every 9.4 days
  • Top authors: alx359 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /10,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼3.71MB] [CPU: ▼726,911.76ms] Passed 4 tests

An overview of server-side resources used by Gateway for Wise on WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /18.23 ▲14.722,915,129.30 ▲2,915,084.85
Dashboard /wp-admin3.36 ▼14.8650.92 ▼2,907,631.08
Posts /wp-admin/edit.php3.41 ▲0.0153.05 ▼1.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0187.49 ▼16.76
Media Library /wp-admin/upload.php3.28 ▲0.0137.47 ▲1.96

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gateway for Wise on WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.70 ▲0.351.90 ▲0.1642.83 ▲2.26
Dashboard /wp-admin2,203 ▲325.60 ▲0.0188.09 ▼3.0742.76 ▼0.58
Posts /wp-admin/edit.php2,109 ▲122.03 ▲0.0436.72 ▼3.5636.48 ▼1.45
Add New Post /wp-admin/post-new.php1,538 ▲1223.25 ▼0.29653.33 ▼29.2252.69 ▼10.60
Media Library /wp-admin/upload.php1,408 ▲54.24 ▲0.10101.30 ▲2.1143.62 ▼4.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
9 plugin tags: wire, checkout, bank transfer, wise, woocommerce...

wc-wise-gateway/wc-wise-gateway.php Passed 13 tests

"Gateway for Wise on WooCommerce" version 2.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
WooCommerce payment gateway for Wise

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
No dangerous file extensions were detected739 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP372155534
PO File16271204
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected