84% woo-order-pending-to-cancelled-email

Code Review | WooCommerce Order Pending To Cancelled Email

WordPress plugin WooCommerce Order Pending To Cancelled Email scored84%from 54 tests.

About plugin

  • Plugin page: woo-order-pending...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Oct 3, 2017
  • Latest release: Oct 3, 2017
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: Jan-Paul Kleemans (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼17.53ms] Passed 4 tests

A check of server-side resources used by WooCommerce Order Pending To Cancelled Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0435.73 ▼13.06
Dashboard /wp-admin3.31 ▲0.0043.46 ▼9.65
Posts /wp-admin/edit.php3.36 ▼0.4945.92 ▼16.21
Add New Post /wp-admin/post-new.php5.89 ▼0.0080.38 ▼31.21
Media Library /wp-admin/upload.php3.23 ▼0.0036.26 ▲1.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WooCommerce Order Pending To Cancelled Email: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼0.591.86 ▲0.1241.30 ▼1.35
Dashboard /wp-admin2,203 ▲155.85 ▼0.07103.10 ▼0.0339.38 ▼4.98
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0339.14 ▼1.3635.14 ▼2.39
Add New Post /wp-admin/post-new.php1,542 ▲2318.71 ▼4.08593.43 ▼68.6462.72 ▲10.48
Media Library /wp-admin/upload.php1,382 ▼04.24 ▼0.0397.63 ▼3.8544.68 ▲0.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • 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 no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-order-pending-to-cancelled-email/woocommerce-order-pending-to-cancelled-email.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% 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: notification, email, cancelled, status, order...

woo-order-pending-to-cancelled-email/woocommerce-order-pending-to-cancelled-email.php 92% from 13 tests

This is the main PHP file of "WooCommerce Order Pending To Cancelled Email" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-order-pending-to-cancelled-email.php" instead of "woocommerce-order-pending-to-cancelled-email.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
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13910

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected