90% tuskcode-sendy-woo-checkout

Code Review | TuskCode's Checkout for Sendy on WooCommerce

WordPress plugin TuskCode's Checkout for Sendy on WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: tuskcode-sendy-wo...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 6, 2021
  • Latest release: Nov 23, 2023
  • Number of updates: 13
  • Update frequency: every 57.6 days
  • Top authors: dan009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by TuskCode's Checkout for Sendy on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.59 ▼7.63
Dashboard /wp-admin3.31 ▲0.0145.74 ▼3.25
Posts /wp-admin/edit.php3.37 ▲0.0149.26 ▲4.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.47 ▲0.65
Media Library /wp-admin/upload.php3.24 ▲0.0135.86 ▲0.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

TuskCode's Checkout for Sendy on WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.401.67 ▲0.0637.97 ▼5.33
Dashboard /wp-admin2,195 ▲245.62 ▲0.0191.30 ▼8.5937.58 ▼10.14
Posts /wp-admin/edit.php2,103 ▲62.02 ▲0.0239.30 ▲3.4236.08 ▲1.54
Add New Post /wp-admin/post-new.php1,526 ▼023.58 ▲0.49625.69 ▼23.5760.03 ▲7.93
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.1898.60 ▲2.6541.73 ▲1.25

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woo, sendy, checkout, woo checkout

tuskcode-sendy-woo-checkout/tuskcode-sendy-woo-checkout.php Passed 13 tests

The main PHP script in "TuskCode's Checkout for Sendy on WooCommerce" version 1.3.1 is automatically included on every request by WordPress
60 characters long description:
Subscribe users to Sendy list from Woocommerce Checkout page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,452 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File211,8692,3104,945
PHP412123498
CSS1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin