77% order-postback-woo

Code Review | Order Postback for Woocommerce

WordPress plugin Order Postback for Woocommerce scored77%from 54 tests.

About plugin

  • Plugin page: order-postback-woo
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Dec 26, 2022
  • Number of updates: 39
  • Update frequency: every 22.9 days
  • Top authors: wpconcierges (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼8.20ms] Passed 4 tests

An overview of server-side resources used by Order Postback for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2042.98 ▲1.50
Dashboard /wp-admin3.57 ▲0.2349.01 ▼16.64
Posts /wp-admin/edit.php3.62 ▲0.2749.81 ▲1.57
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.08 ▼19.24
Media Library /wp-admin/upload.php3.43 ▲0.2042.44 ▲2.83
Order Postback /wp-admin/tools.php?page=order-postback-woo3.4035.79

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Postback for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼0.932.14 ▲0.4144.80 ▲6.37
Dashboard /wp-admin2,210 ▲194.85 ▼0.05107.68 ▲1.1638.97 ▼4.98
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0036.01 ▼0.6833.50 ▲1.51
Add New Post /wp-admin/post-new.php1,545 ▲3123.35 ▲5.62666.02 ▼74.2859.29 ▼6.14
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.03101.96 ▼1.7756.78 ▲8.55
Order Postback /wp-admin/tools.php?page=order-postback-woo9482.0425.4230.38

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 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-display.php
    • > /wp-content/plugins/order-postback-woo/public/partials/order-postback-woo-public-display.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-field-text.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-field-checkbox.php:15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/order-postback-woo/includes/class-order-postback-woo-links.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-field-select.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-section-messages.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_screen_option() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-posts.php:44
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/order-postback-woo/includes/class-order-postback-woo-links.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/order-postback-woo/includes/class-order-postback-woo-links.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-tools.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/order-postback-woo/admin/partials/order-postback-woo-admin-page-settings.php:19

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

order-postback-woo/order-postback-woo.php 77% from 13 tests

"Order Postback for Woocommerce" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.1" instead of "3.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 250 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,236 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP225478291,236

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.89
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods74
▷ Static methods68.11%
▷ Public methods5777.03%
▷ Protected methods00.00%
▷ Private methods1722.97%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin