99% woopoe-paid-order-email-for-woocommerce

Code Review | WooPoe - Paid Order Email for WooCommerce

WordPress plugin WooPoe - Paid Order Email for WooCommerce scored 99% from 53 tests.

About plugin

  • Plugin page: woopoe-paid-order...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 27, 2016
  • Latest release: Oct 27, 2016
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: ffdweb (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 562 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼268.60ms] Passed 4 tests

This is a short check of server-side resources used by WooPoe - Paid Order Email for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.52 ▲13.54
Dashboard /wp-admin3.06 ▲0.0143.76 ▲2.16
Posts /wp-admin/edit.php3.11 ▲0.0144.05 ▲1.11
Add New Post /wp-admin/post-new.php5.42 ▼0.0085.91 ▼1,071.86
Media Library /wp-admin/upload.php3.00 ▼0.0031.55 ▼5.79

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooPoe - Paid Order Email for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲4515.97 ▲0.507.64 ▼1.5049.66 ▲0.13
Dashboard /wp-admin2,931 ▲785.92 ▲0.11138.13 ▲8.00102.90 ▲0.76
Posts /wp-admin/edit.php2,703 ▼32.70 ▲0.0063.54 ▼3.4297.07 ▲4.00
Add New Post /wp-admin/post-new.php1,653 ▼018.74 ▲0.10361.09 ▲5.72107.29 ▼7.43
Media Library /wp-admin/upload.php1,775 ▲35.00 ▼0.01138.47 ▼7.47110.01 ▼13.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

woopoe-paid-order-email-for-woocommerce/woopoe-paid-order-email.php 92% from 13 tests

The entry point to "WooPoe - Paid Order Email for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woopoe-paid-order-email-for-woocommerce.php" instead of "woopoe-paid-order-email.php")

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
Everything looks great! No dangerous files found in this plugin98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2316898

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected