89% bizfirst-pay

Code Review | BizFirst: Accept Crypto USDC payments on your WooCommerce Store (Solana)

WordPress plugin BizFirst: Accept Crypto USDC payments on your WooCommerce Store (Solana) scored89%from 54 tests.

About plugin

  • Plugin page: bizfirst-pay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2022
  • Latest release: Oct 3, 2022
  • Number of updates: 7
  • Update frequency: every 3.9 days
  • Top authors: bizfirst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 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.02MB] [CPU: ▼3.23ms] Passed 4 tests

An overview of server-side resources used by BizFirst: Accept Crypto USDC payments on your WooCommerce Store (Solana)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.73 ▼6.84
Dashboard /wp-admin3.33 ▲0.0250.26 ▼2.65
Posts /wp-admin/edit.php3.38 ▲0.0253.61 ▲1.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.12 ▼5.14
Media Library /wp-admin/upload.php3.25 ▲0.0239.21 ▲2.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for BizFirst: Accept Crypto USDC payments on your WooCommerce Store (Solana)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.071.94 ▲0.2240.98 ▼7.05
Dashboard /wp-admin2,198 ▲185.57 ▼0.0384.97 ▼29.6640.76 ▼21.36
Posts /wp-admin/edit.php2,103 ▲62.01 ▲0.0440.94 ▲3.0439.07 ▲3.55
Add New Post /wp-admin/post-new.php1,526 ▼023.84 ▲0.79638.26 ▲21.7949.45 ▼21.91
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.01100.19 ▼4.7740.99 ▼3.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in bizfirst-pay/assets to your readme.txt
  • Requires php: Version not formatted correctly
Please take inspiration from this readme.txt

bizfirst-pay/WC_Bizfirst_Pay.php 85% from 13 tests

The entry point to "BizFirst: Accept Crypto USDC payments on your WooCommerce Store (Solana)" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bizfirst-pay.php" instead of "WC_Bizfirst_Pay.php")
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12813126

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png127.41KB58.14KB▼ 54.37%