89% simple-checkout-digital-goods

Code Review | WooCommerce Simple Checkout for Digital Goods

WordPress plugin WooCommerce Simple Checkout for Digital Goods scored89%from 54 tests.

About plugin

  • Plugin page: simple-checkout-d...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Jul 10, 2021
  • Number of updates: 8
  • Update frequency: every 153.9 days
  • Top authors: nilovelez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.14ms] Passed 4 tests

A check of server-side resources used by WooCommerce Simple Checkout for Digital Goods
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.28 ▼7.94
Dashboard /wp-admin3.31 ▲0.0151.40 ▼4.58
Posts /wp-admin/edit.php3.36 ▲0.0056.73 ▲5.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0092.14 ▼15.14
Media Library /wp-admin/upload.php3.24 ▲0.0041.39 ▲3.10

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Simple Checkout for Digital Goods
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.141.93 ▼0.3540.26 ▼3.53
Dashboard /wp-admin2,195 ▲185.62 ▲0.0195.53 ▲2.0147.36 ▲2.33
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0140.47 ▼0.2235.98 ▼3.80
Add New Post /wp-admin/post-new.php1,526 ▼123.31 ▲0.11681.67 ▲0.3656.50 ▲1.83
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.10102.91 ▼4.1843.19 ▼4.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: payment, checkout, woocommerce

simple-checkout-digital-goods/simple-checkout-digital-goods.php 85% from 13 tests

The main PHP file in "WooCommerce Simple Checkout for Digital Goods" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.0")

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
No dangerous file extensions were detected351 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47495350
Markdown1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods654.55%
▷ Protected methods545.45%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.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