84% wp-ecommerce-redirect-to-checkout

Code Review | WP eCommerce Checkout Redirect

WordPress plugin WP eCommerce Checkout Redirect scored84%from 54 tests.

About plugin

  • Plugin page: wp-ecommerce-redi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Dec 15, 2016
  • Number of updates: 10
  • Update frequency: every 91.7 days
  • Top authors: misulicus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,795 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.00MB] [CPU: ▼12.99ms] Passed 4 tests

This is a short check of server-side resources used by WP eCommerce Checkout Redirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.62 ▼10.63
Dashboard /wp-admin3.31 ▼0.0351.23 ▼18.59
Posts /wp-admin/edit.php3.36 ▲0.0153.25 ▼4.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.55 ▼18.23
Media Library /wp-admin/upload.php3.23 ▲0.0139.03 ▼0.00

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP eCommerce Checkout Redirect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.372.00 ▲0.2044.59 ▲2.01
Dashboard /wp-admin2,195 ▲185.60 ▼0.0785.39 ▼13.5541.68 ▼0.31
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0134.11 ▼4.0537.33 ▲1.99
Add New Post /wp-admin/post-new.php1,550 ▲1723.17 ▼0.02725.12 ▲27.0856.21 ▼3.88
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.06104.55 ▼12.8143.88 ▼7.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ecommerce-redirect-to-checkout/wpec-redirect-checkout-cart.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ecommerce, checkout, wp-e-commerce

wp-ecommerce-redirect-to-checkout/wpec-redirect-checkout-cart.php 92% from 13 tests

The entry point to "WP eCommerce Checkout Redirect" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-ecommerce-redirect-to-checkout.php" instead of "wpec-redirect-checkout-cart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161415

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin