90% woo-remove-customer-details-from-new-order-email

Code Review | Woocommerce Remove Customer Details From New Order Email

WordPress plugin Woocommerce Remove Customer Details From New Order Email scored90%from 54 tests.

About plugin

  • Plugin page: woo-remove-custom...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2019
  • Latest release: Jul 16, 2019
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: sunnjohnson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 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.00MB] [CPU: ▼6.24ms] Passed 4 tests

An overview of server-side resources used by Woocommerce Remove Customer Details From New Order Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.48 ▲4.15
Dashboard /wp-admin3.32 ▼0.0346.22 ▼10.93
Posts /wp-admin/edit.php3.37 ▲0.0145.48 ▼1.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.64 ▼13.70
Media Library /wp-admin/upload.php3.24 ▲0.0136.31 ▲1.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Remove Customer Details From New Order Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.111.68 ▼0.0240.59 ▼3.48
Dashboard /wp-admin2,198 ▲205.56 ▼0.0985.26 ▼19.2135.95 ▼3.40
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0438.23 ▲0.8439.63 ▲8.62
Add New Post /wp-admin/post-new.php1,531 ▲1423.03 ▲3.90620.28 ▲158.8950.70 ▼10.50
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.13100.15 ▼3.7143.49 ▼2.32

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocommrce, phone, new-order-email, email, customer

woo-remove-customer-details-from-new-order-email/Woocommerce-remove-customer-details-from-new-order-email.php 92% from 13 tests

The entry point to "Woocommerce Remove Customer Details From New Order Email" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-remove-customer-details-from-new-order-email.php" instead of "Woocommerce-remove-customer-details-from-new-order-email.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161351

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.24
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin