84% syw-woocommerce-simple-checkout-steps

Code Review | SYW Woocommerce Simple Checkout Steps

WordPress plugin SYW Woocommerce Simple Checkout Steps scored84%from 54 tests.

About plugin

  • Plugin page: syw-woocommerce-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Jan 13, 2016
  • Number of updates: 10
  • Update frequency: every 9.0 days
  • Top authors: macarthurval (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by SYW Woocommerce Simple Checkout Steps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0629.46 ▼11.87
Dashboard /wp-admin3.35 ▲0.0147.41 ▼4.55
Posts /wp-admin/edit.php3.40 ▲0.0050.66 ▼2.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0093.00 ▼6.81
Media Library /wp-admin/upload.php3.27 ▲0.0037.24 ▼6.87

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SYW Woocommerce Simple Checkout Steps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼29614.21 ▲0.000.79 ▼2.0613.25 ▼32.42
Dashboard /wp-admin2,195 ▲215.61 ▼0.0389.56 ▼4.7438.53 ▼0.70
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0141.43 ▲2.4337.07 ▼1.00
Add New Post /wp-admin/post-new.php1,526 ▼623.68 ▲0.76680.82 ▼17.0363.78 ▲5.39
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.0994.25 ▼18.0446.71 ▼1.47

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WC() in wp-content/plugins/syw-woocommerce-simple-checkout-steps/templates/steps-template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syw-woocommerce-simple-checkout-steps/syw-woocommerce-simple-checkout-steps.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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 to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === syw-woocommerce-simple-checkout-steps === )
You can take inspiration from this readme.txt

syw-woocommerce-simple-checkout-steps/syw-woocommerce-simple-checkout-steps.php Passed 13 tests

Analyzing the main PHP file in "SYW Woocommerce Simple Checkout Steps" version 1.0
76 characters long description:
Add checkout steps at your Woocommerce shop for a better shopping experience

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,824 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS38152,032
Sass1328241,520
LESS1328341,510
SVG100640
PHP2231072
PO File28850

PHP code Passed 2 tests

Analyzing 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.50
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin