84% wc-notchpay

Code Review | Notch Pay for WooCommerce

WordPress plugin Notch Pay for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-notchpay
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2022
  • Latest release: Nov 20, 2022
  • Number of updates: 14
  • Update frequency: every 1.9 days
  • Top authors: notchpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,742 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.81ms] Passed 4 tests

Server-side resources used by Notch Pay for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.51 ▼1.80
Dashboard /wp-admin3.32 ▲0.0153.31 ▼1.63
Posts /wp-admin/edit.php3.37 ▲0.0149.78 ▼3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.80 ▼3.79
Media Library /wp-admin/upload.php3.24 ▲0.0133.99 ▼2.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Notch Pay for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.69 ▼0.301.76 ▼0.0846.44 ▲0.82
Dashboard /wp-admin2,208 ▲205.77 ▲0.89103.00 ▼8.5538.51 ▼5.50
Posts /wp-admin/edit.php2,096 ▲42.04 ▲0.0236.28 ▼1.1434.66 ▼2.29
Add New Post /wp-admin/post-new.php1,522 ▼2017.52 ▼0.73685.03 ▲18.5157.15 ▼4.09
Media Library /wp-admin/upload.php1,393 ▲54.23 ▼0.02101.72 ▼7.4242.24 ▼4.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-notchpay/includes/notchpay-order-statuses.php:6

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

wc-notchpay/wc-notchpay.php 92% from 13 tests

The main PHP file in "Notch Pay for WooCommerce" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "6.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected683 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3295226683

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods211.11%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/gtbank.png6.63KB2.75KB▼ 58.61%
assets/images/wema.png12.85KB4.56KB▼ 64.50%
assets/images/ekondo.png17.15KB17.18KB0.00%
assets/images/unity.png7.77KB3.17KB▼ 59.16%
assets/images/standard.png18.86KB6.70KB▼ 64.48%