73% wp-e-commerce-store-sales-pack-sheet

Code Review | WP e-Commerce Store Sales Pack Sheet

WordPress plugin WP e-Commerce Store Sales Pack Sheet scored 73% from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-sto...
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 20, 2012
  • Latest release: Dec 20, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: adamsilverstein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,089 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.78ms] Passed 4 tests

Analyzing server-side resources used by WP e-Commerce Store Sales Pack Sheet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.45 ▲2.79
Dashboard /wp-admin3.35 ▲0.0547.70 ▼1.93
Posts /wp-admin/edit.php3.40 ▲0.0546.07 ▼1.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.25 ▼14.16
Media Library /wp-admin/upload.php3.27 ▲0.0436.35 ▲3.08
Sales Pack Sheet /wp-admin/index.php?page=packsheet_menu3.2443.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_packsheet_deliveryzones
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP e-Commerce Store Sales Pack Sheet
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.63 ▼1.121.58 ▲0.0140.98 ▼0.21
Dashboard /wp-admin2,221 ▲335.93 ▲1.07106.90 ▼9.1041.88 ▼2.56
Posts /wp-admin/edit.php2,104 ▲152.20 ▲0.2238.67 ▼1.8133.94 ▼0.17
Add New Post /wp-admin/post-new.php1,526 ▼1623.24 ▲4.73655.15 ▲44.8150.30 ▼7.34
Media Library /wp-admin/upload.php1,397 ▲94.29 ▲0.1197.92 ▲2.5040.96 ▼0.54
Sales Pack Sheet /wp-admin/index.php?page=packsheet_menu8521.8430.7228.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-e-commerce-store-sales-pack-sheet/wp-ecommerce-store-sales-pack-sheet.php:23

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

wp-e-commerce-store-sales-pack-sheet/wp-ecommerce-store-sales-pack-sheet.php 85% from 13 tests

The main PHP script in "WP e-Commerce Store Sales Pack Sheet" version 0.6.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 221 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-e-commerce-store-sales-pack-sheet.php" instead of "wp-ecommerce-store-sales-pack-sheet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin280 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22635273
JavaScript10226
CSS1041

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-icons_ffd27a_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-icons_228ef1_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png0.25KB0.15KB▼ 39.62%
css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png0.10KB0.11KB0.00%