83% woo-checkbook-io

Code Review | Checkbook: Digital Checking for WooCommerce

WordPress plugin Checkbook: Digital Checking for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-checkbook-io
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Mar 15, 2023
  • Number of updates: 24
  • Update frequency: every 69.8 days
  • Top authors: checkbook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.87ms] Passed 4 tests

Server-side resources used by Checkbook: Digital Checking for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.20 ▼1.64
Dashboard /wp-admin3.35 ▲0.0444.51 ▼4.83
Posts /wp-admin/edit.php3.40 ▲0.0447.52 ▲3.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.98 ▼18.47
Media Library /wp-admin/upload.php3.27 ▲0.0435.43 ▲1.45

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Checkbook: Digital Checking for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.011.74 ▼0.2541.00 ▼2.74
Dashboard /wp-admin2,206 ▲214.88 ▼0.99110.03 ▲0.9340.10 ▼7.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0541.20 ▲2.3735.49 ▼4.76
Add New Post /wp-admin/post-new.php1,538 ▲2423.40 ▲5.85675.04 ▲1.5758.33 ▲4.21
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.07100.89 ▼2.3447.02 ▼3.30

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/woo-checkbook-io/callback.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: checkbook, woocommerce, checkbookio

woo-checkbook-io/wc_checkbook.php 77% from 13 tests

The primary PHP file in "Checkbook: Digital Checking for WooCommerce" version 2.0.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-checkbook-io.php" instead of "wc_checkbook.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin944 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript210065332
PHP35572288
CSS24213225
SVG10166
Markdown120033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/main-logo.png4.81KB2.36KB▼ 50.90%