74% cb-order-save-wc

Code Review | Save ClickBank Order Details for WooCommerce

WordPress plugin Save ClickBank Order Details for WooCommerce scored 74% from 54 tests.

About plugin

  • Plugin page: cb-order-save-wc
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Mar 8, 2023
  • Number of updates: 2
  • Update frequency: every 11.5 days
  • Top authors: rarthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 308 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.71ms] Passed 4 tests

Analyzing server-side resources used by Save ClickBank Order Details for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.39 ▼6.61
Dashboard /wp-admin3.33 ▲0.0241.27 ▼10.64
Posts /wp-admin/edit.php3.38 ▲0.0243.80 ▼2.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.36 ▼7.29
Media Library /wp-admin/upload.php3.25 ▲0.0238.99 ▲5.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_clickbank
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Save ClickBank Order Details for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5914.48 ▲0.081.59 ▼0.4035.82 ▼14.87
Dashboard /wp-admin2,219 ▲315.76 ▼0.1297.05 ▼9.9235.42 ▼15.39
Posts /wp-admin/edit.php2,108 ▲192.02 ▲0.0239.40 ▲3.8036.77 ▲1.00
Add New Post /wp-admin/post-new.php1,527 ▼617.67 ▼5.28626.64 ▼34.8752.44 ▲0.96
Media Library /wp-admin/upload.php1,407 ▲224.22 ▼0.0194.44 ▼16.9739.68 ▼7.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_clickbank
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cb-order-save-wc/admin/partials/cb-order-save-wc-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

cb-order-save-wc/cb-order-save-wc.php Passed 13 tests

"Save ClickBank Order Details for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
This plugin allows you to synchronize ClickBank orders and customers information with WooCommerce orders and customers information.

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
Everything looks great! No dangerous files found in this plugin378 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11137538375
JavaScript12273
CSS1040

PHP code Passed 2 tests

An short overview of 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.13
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected