10% wp-e-commerce-store-toolkit

Code Review | WP e-Commerce - Store Toolkit

WordPress plugin WP e-Commerce - Store Toolkit scored10%from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-sto...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-5.0
  • WordPress version: 6.3.1
  • First release: Jan 20, 2012
  • Latest release: Dec 10, 2018
  • Number of updates: 47
  • Update frequency: every 53.6 days
  • Top authors: visser (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /69,348 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/wp-e-commerce-store-toolkit/includes/functions.php+690
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.32ms] Passed 4 tests

Server-side resources used by WP e-Commerce - Store Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.3245.40 ▲1.52
Dashboard /wp-admin4.37 ▲0.8163.30 ▲12.37
Posts /wp-admin/edit.php3.92 ▲0.2453.02 ▼3.82
Add New Post /wp-admin/post-new.php6.39 ▲0.2493.77 ▼9.87
Media Library /wp-admin/upload.php3.73 ▲0.2452.79 ▲10.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
_demo_store_text
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
_demo_store
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP e-Commerce - Store Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲12014.25 ▼0.141.75 ▼0.1542.25 ▼5.80
Dashboard /wp-admin2,312 ▲1355.64 ▼0.0388.69 ▼9.7341.25 ▲0.57
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0038.56 ▼4.9333.41 ▼0.82
Add New Post /wp-admin/post-new.php1,527 ▼1817.68 ▼5.64668.71 ▼66.1154.40 ▼6.05
Media Library /wp-admin/upload.php1,405 ▲84.15 ▼0.09109.54 ▲3.6051.33 ▲4.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • can_compress_scripts
    • _demo_store_text
    • widget_recent-comments
    • widget_recent-posts
    • _demo_store
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/wpsc-admin_st_costprice_38.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-e-commerce-store-toolkit/includes/common.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/wpsc-admin_st-store_status.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-e-commerce-store-toolkit/includes/common-dashboard_widgets.php:19
    • > PHP Notice
      Undefined variable: wp_plugins in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/wpsc-admin_dashboard_vm-plugins.php on line 3
    • > PHP Notice
      Undefined variable: post_meta in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/wpsc-admin_st-products_data.php on line 1
    • > PHP Notice
      Undefined variable: mime_types in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/wpsc-admin_st-file_downloads.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/tabs-demo.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-e-commerce-store-toolkit/includes/template.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-e-commerce-store-toolkit/templates/admin/tabs-nuke.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
7 plugin tags: nuke, delete store, store toolkit, e-commerce, mod...

wp-e-commerce-store-toolkit/store-toolkit.php 85% from 13 tests

The primary PHP file in "WP e-Commerce - Store Toolkit" version 2.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-store-toolkit.php" instead of "store-toolkit.php")

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
Everything looks great! No dangerous files found in this plugin4,177 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP257441573,253
JavaScript3722493
CSS6149431

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions107
▷ Named functions107100.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
23 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/images/custom_rgb_g.png1.04KB0.80KB▼ 23.67%
templates/admin/images/custom_hsb_h.png0.95KB0.73KB▼ 23.40%
templates/admin/images/colorpicker_hsb_b.png0.95KB0.76KB▼ 19.48%
templates/admin/images/custom_submit.png0.97KB0.99KB0.00%
templates/admin/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%