90% direct-to-checkout-for-woocommerce

Code Review | Direct To Checkout For WooCommerce

WordPress plugin Direct To Checkout For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: direct-to-checkou...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Mar 30, 2023
  • Number of updates: 9
  • Update frequency: every 36.7 days
  • Top authors: scott.deluzio (66.67%)ampmode (44.44%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /260 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.03MB] [CPU: ▼5.67ms] Passed 4 tests

An overview of server-side resources used by Direct To Checkout For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.75 ▼7.44
Dashboard /wp-admin3.33 ▲0.0345.33 ▼3.94
Posts /wp-admin/edit.php3.38 ▲0.0350.16 ▲0.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.49 ▼9.05
Media Library /wp-admin/upload.php3.25 ▲0.0336.83 ▼2.25

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Direct To Checkout For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.191.95 ▲0.1637.50 ▼8.01
Dashboard /wp-admin2,206 ▲184.84 ▼1.01112.24 ▲3.8142.12 ▼5.64
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0240.31 ▲1.6834.62 ▲0.39
Add New Post /wp-admin/post-new.php1,533 ▲423.18 ▲4.78668.92 ▲2.4065.21 ▲15.25
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0394.82 ▼9.9243.55 ▲1.46

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, e-commerce, checkout

direct-to-checkout-for-woocommerce/direct-to-checkout-for-woocommerce.php 92% from 13 tests

The main file in "Direct To Checkout For WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("2.6" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin130 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32349130

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin