84% add-sku-to-email-notifications-in-wp-e-commerce

Code Review | WP e-Commerce SKU in notification emails

WordPress plugin WP e-Commerce SKU in notification emails scored 84% from 54 tests.

About plugin

  • Plugin page: add-sku-to-email-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: May 12, 2013
  • Latest release: May 12, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: leewillis77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,426 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: ▼3.70ms] Passed 4 tests

A check of server-side resources used by WP e-Commerce SKU in notification emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.59 ▼3.43
Dashboard /wp-admin3.31 ▲0.0144.53 ▼4.36
Posts /wp-admin/edit.php3.36 ▲0.0147.91 ▼1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.74 ▼5.61
Media Library /wp-admin/upload.php3.23 ▲0.0137.39 ▲3.54

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP e-Commerce SKU in notification emails
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼0.734.61 ▲2.3141.44 ▼5.43
Dashboard /wp-admin2,206 ▲215.91 ▲0.07108.99 ▼8.2242.96 ▼1.69
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0236.75 ▼3.5633.59 ▼3.41
Add New Post /wp-admin/post-new.php1,533 ▼023.08 ▼0.00659.58 ▼20.8465.68 ▲10.64
Media Library /wp-admin/upload.php1,382 ▼94.24 ▲0.0798.81 ▼5.8342.17 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Please 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/add-sku-to-email-notifications-in-wp-e-commerce/wpec-sku-notification-emails.php:49

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === add-sku-to-email-notifications-in-wp-e-commerce === )
The official readme.txt might help

add-sku-to-email-notifications-in-wp-e-commerce/wpec-sku-notification-emails.php 92% from 13 tests

The principal PHP file in "WP e-Commerce SKU in notification emails" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-sku-to-email-notifications-in-wp-e-commerce.php" instead of "wpec-sku-notification-emails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin27 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown16015
PHP182912

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions1
▷ Named functions1100.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