77% admin-and-client-message-after-order-for-woocommerce

Code Review | Admin and Customer Messages After Order for WooCommerce: OrderConvo

WordPress plugin Admin and Customer Messages After Order for WooCommerce: OrderConvo scored77%from 54 tests.

About plugin

  • Plugin page: admin-and-client-...
  • Plugin version: 11.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 113
  • Update frequency: every 21.7 days
  • Top authors: nmedia (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

600+ active /29,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼15.81ms] Passed 4 tests

A check of server-side resources used by Admin and Customer Messages After Order for WooCommerce: OrderConvo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0333.33 ▼17.40
Dashboard /wp-admin3.22 ▼0.1332.59 ▼25.66
Posts /wp-admin/edit.php3.28 ▼0.0738.54 ▼7.38
Add New Post /wp-admin/post-new.php5.49 ▼0.3973.81 ▼12.78
Media Library /wp-admin/upload.php3.23 ▼0.0033.65 ▲2.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 93 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
recovery_mode_email_last_sent
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Admin and Customer Messages After Order for WooCommerce: OrderConvo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /811 ▼1,93612.35 ▼2.030.65 ▼1.5915.37 ▼38.57
Dashboard /wp-admin504 ▼1,6761.36 ▼4.2512.96 ▼79.8314.91 ▼33.60
Posts /wp-admin/edit.php502 ▼1,6011.12 ▼0.887.95 ▼30.0021.19 ▼12.72
Add New Post /wp-admin/post-new.php453 ▼1,0761.71 ▼21.4823.51 ▼577.517.07 ▼42.95
Media Library /wp-admin/upload.php512 ▼8881.71 ▼2.5323.43 ▼73.3020.63 ▼20.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/includes/wprest.class.php
    • > /wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/includes/meta.json.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/nm-wooconvo.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

admin-and-client-message-after-order-for-woocommerce/nm-wooconvo.php 85% from 13 tests

The main PHP file in "Admin and Customer Messages After Order for WooCommerce: OrderConvo" ver. 11.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-and-client-message-after-order-for-woocommerce.php" instead of "nm-wooconvo.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
There were no executable files found in this plugin1,345 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP124142141,324
CSS34615
JavaScript4064
XML2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.67
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods64
▷ Static methods69.38%
▷ Public methods6296.88%
▷ Protected methods00.00%
▷ Private methods23.12%
Functions33
▷ Named functions2781.82%
▷ Anonymous functions618.18%
Constants4
▷ Global constants4100.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
65 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ext/html.png1.48KB1.34KB▼ 9.62%
images/ext/otp.png1.32KB1.25KB▼ 5.41%
images/ext/xml.png1.74KB1.49KB▼ 14.40%
images/ext/h.png0.80KB0.81KB0.00%
images/ext/_blank.png0.54KB0.66KB0.00%