89% digital-checkout-for-woocommerce

Code Review | WooCommerce Digital Checkout

WordPress plugin WooCommerce Digital Checkout scored89%from 54 tests.

About plugin

  • Plugin page: digital-checkout-...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Sep 29, 2018
  • Number of updates: 33
  • Update frequency: every 32.9 days
  • Top authors: kenanfallon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WooCommerce Digital Checkout
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.39 ▲3.41
Dashboard /wp-admin3.32 ▲0.0144.25 ▼2.54
Posts /wp-admin/edit.php3.37 ▲0.0146.68 ▼1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.40 ▼8.26
Media Library /wp-admin/upload.php3.24 ▲0.0133.25 ▼0.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WooCommerce Digital Checkout: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.231.72 ▼0.4343.17 ▼1.31
Dashboard /wp-admin2,209 ▲175.84 ▲0.8098.93 ▼12.0838.72 ▼1.05
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0238.98 ▲0.1534.49 ▼0.10
Add New Post /wp-admin/post-new.php1,534 ▼323.08 ▲4.85591.50 ▼68.9149.42 ▼29.92
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.03103.80 ▲1.6143.50 ▲1.32

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === digital-checkout-for-woocommerce === )
You can look at the official readme.txt

digital-checkout-for-woocommerce/woocommerce-digital-checkout.php 85% from 13 tests

The main PHP file in "WooCommerce Digital Checkout" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digital-checkout-for-woocommerce.php" instead of "woocommerce-digital-checkout.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1163557
Markdown214030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin