83% custom-backorders-for-woocommerce

Code Review | Custom Backorder Messages For Woocommerce

WordPress plugin Custom Backorder Messages For Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: custom-backorders...
  • Plugin version: 1.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 15, 2021
  • Latest release: Feb 3, 2021
  • Number of updates: 7
  • Update frequency: every 3.0 days
  • Top authors: gregbast1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,391 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.00MB] [CPU: ▼8.57ms] Passed 4 tests

This is a short check of server-side resources used by Custom Backorder Messages For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.74 ▼5.49
Dashboard /wp-admin3.31 ▲0.0045.07 ▼5.79
Posts /wp-admin/edit.php3.36 ▲0.0053.33 ▲2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.49 ▼18.04
Media Library /wp-admin/upload.php3.23 ▲0.0030.87 ▼4.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Backorder Messages For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼0.991.85 ▼0.0642.79 ▲2.14
Dashboard /wp-admin2,206 ▲215.86 ▼0.02113.78 ▲0.6044.93 ▲0.20
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0239.19 ▲0.6137.22 ▼0.69
Add New Post /wp-admin/post-new.php1,533 ▲1423.13 ▲0.05653.42 ▼17.1849.58 ▼4.44
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.0397.73 ▼21.7243.02 ▼5.51

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/custom-backorders-for-woocommerce/custom-backorders-for-woocommerce.php:175

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

custom-backorders-for-woocommerce/custom-backorders-for-woocommerce.php 85% from 13 tests

"Custom Backorder Messages For Woocommerce" version 1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12844105
Markdown114020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin