84% tabby-checkout

Code Review | Tabby Checkout

WordPress plugin Tabby Checkout scored84%from 54 tests.

About plugin

  • Plugin page: tabby-checkout
  • Plugin version: 4.8.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Dec 5, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 9
  • Update frequency: every 37.0 days
  • Top authors: tabbyai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼11.70ms] Passed 4 tests

Server-side resources used by Tabby Checkout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1325.41 ▼15.40
Dashboard /wp-admin3.46 ▲0.1148.23 ▼14.89
Posts /wp-admin/edit.php3.57 ▲0.2151.13 ▲3.13
Add New Post /wp-admin/post-new.php6.04 ▲0.1587.28 ▼8.56
Media Library /wp-admin/upload.php3.38 ▲0.1534.32 ▼7.96

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

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

Browser metrics Passed 4 tests

Tabby Checkout: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,454 ▼29214.68 ▲0.170.49 ▼1.4718.40 ▼24.36
Dashboard /wp-admin2,192 ▲145.65 ▼0.0492.81 ▼22.0539.91 ▼6.59
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0835.96 ▲0.8833.49 ▼1.65
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.21697.50 ▲1.4269.85 ▲18.64
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.09101.77 ▼3.7948.45 ▲3.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/tabby-checkout/includes/class-wc-gateway-tabby-checkout-base.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Gateway_Tabby_Checkout_Base' not found in wp-content/plugins/tabby-checkout/includes/class-wc-gateway-tabby-installments.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tabby-checkout/includes/functions.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/tabby-checkout/includes/class-wc-gateway-tabby-checkout-base.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Gateway_Tabby_Checkout_Base' not found in wp-content/plugins/tabby-checkout/includes/class-wc-gateway-tabby-paylater.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: tabby plugin, bnpl, tabby bnpl, tabby, tabby checkout

tabby-checkout/tabby-checkout.php Passed 13 tests

Analyzing the main PHP file in "Tabby Checkout" version 4.8.3
14 characters long description:
Tabby Checkout

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,270 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP162181181,609
PO File2151166333
JavaScript11620314
CSS10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.64
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods120
▷ Static methods7360.83%
▷ Public methods10990.83%
▷ Protected methods119.17%
▷ Private methods00.00%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants32
▷ Global constants39.38%
▷ Class constants2990.62%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/info.png0.23KB0.35KB0.00%
images/logo_green.png23.30KB11.08KB▼ 52.44%