84% email-attachment-by-order-status-products

Code Review | Email Attachment by Order Status & Products

WordPress plugin Email Attachment by Order Status & Products scored84%from 54 tests.

About plugin

  • Plugin page: email-attachment-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 30, 2022
  • Latest release: Jun 2, 2022
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: weboccults (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.81ms] Passed 4 tests

A check of server-side resources used by Email Attachment by Order Status & Products
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.05 ▼7.50
Dashboard /wp-admin3.31 ▲0.0044.67 ▼1.77
Posts /wp-admin/edit.php3.36 ▲0.0043.42 ▼2.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.43 ▼11.74
Media Library /wp-admin/upload.php3.23 ▲0.0033.26 ▲0.09
Email Attachment by Orders Status /wp-admin/admin.php?page=wot-ea-option3.0023.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Email Attachment by Order Status & Products: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.42 ▲0.111.57 ▼0.3341.07 ▼5.58
Dashboard /wp-admin2,209 ▲184.85 ▼1.07112.76 ▲1.5436.69 ▼8.76
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0034.55 ▼0.8729.38 ▼7.62
Add New Post /wp-admin/post-new.php1,533 ▼023.28 ▼0.04664.71 ▼15.0051.89 ▼12.70
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0498.43 ▲2.6445.49 ▲1.82
Email Attachment by Orders Status /wp-admin/admin.php?page=wot-ea-option280.440.083.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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 Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wot-ea-option
    • > Network (severe)
    wp-admin/admin.php?page=wot-ea-option - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

email-attachment-by-order-status-products/wot-email-attachment.php 92% from 13 tests

The primary PHP file in "Email Attachment by Order Status & Products" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("email-attachment-by-order-status-products.php" instead of "wot-email-attachment.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
There were no executable files found in this plugin886 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3113110650
JavaScript1315126
CSS154110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin