83% wp-e-commerce-free-checkout

Code Review | Name: WP e-Commerce Free Checkout

WordPress plugin Name: WP e-Commerce Free Checkoutscored 83% from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-fre...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2013
  • Latest release: May 11, 2013
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: ChrisHurst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.18ms] Passed 4 tests

Analyzing server-side resources used by Name: WP e-Commerce Free Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.25 ▼1.17
Dashboard /wp-admin3.32 ▲0.0247.69 ▼8.02
Posts /wp-admin/edit.php3.37 ▲0.0245.84 ▲0.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.14 ▼12.10
Media Library /wp-admin/upload.php3.24 ▲0.0235.20 ▲0.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Name: WP e-Commerce Free Checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.201.78 ▼0.6047.15 ▼0.31
Dashboard /wp-admin2,206 ▲154.80 ▼1.10113.38 ▼7.5244.84 ▼1.97
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0233.48 ▼2.0735.49 ▲0.09
Add New Post /wp-admin/post-new.php1,529 ▲823.32 ▲0.06605.97 ▼93.8452.42 ▼3.40
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.02103.24 ▲2.9544.93 ▲2.87

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-free-checkout/wp-e-commerce-free-checkout.php:24

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Name: WP e-Commerce Free Checkout=== )
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Example Free Checkout Shopping Cart using $0.00 price item.), #2 (Example Free Checkout Confirmation page using $0.00 price item.), #3 (Example Free Checkout Shopping Cart using 100% discount coupon.), #4 (Example Free Checkout Confirmation page using 100% discount coupon.)
The official readme.txt is a good inspiration

wp-e-commerce-free-checkout/wp-e-commerce-free-checkout.php Passed 13 tests

The main PHP script in "Name: WP e-Commerce Free Checkout" version 1.0.3 is automatically included on every request by WordPress
82 characters long description:
Allows purchase of products when the total price is $0.00 for WordPress e-Commerce

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
No dangerous file extensions were detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1562146

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin