83% order-search-repair-for-woocommerce

Code Review | Order Search Repair for WooCommerce

WordPress plugin Order Search Repair for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: order-search-repa...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.8.3
  • WordPress version: 6.3.1
  • First release: May 14, 2017
  • Latest release: Dec 12, 2018
  • Number of updates: 11
  • Update frequency: every 52.6 days
  • Top authors: indextwo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /2,225 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.01MB] [CPU: ▼1.02ms] Passed 4 tests

Server-side resources used by Order Search Repair for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.89 ▲1.26
Dashboard /wp-admin3.32 ▲0.0155.85 ▲5.12
Posts /wp-admin/edit.php3.37 ▲0.0150.87 ▼0.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.24 ▼8.61
Media Library /wp-admin/upload.php3.24 ▲0.0139.22 ▲3.33

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
vnmWooOrderSearch_version
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Order Search Repair for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.011.66 ▲0.0546.14 ▲3.16
Dashboard /wp-admin2,194 ▲145.61 ▲0.1192.34 ▲0.3539.47 ▼4.63
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0640.67 ▲1.4435.76 ▼3.99
Add New Post /wp-admin/post-new.php1,528 ▲223.37 ▲0.45664.42 ▼2.3649.80 ▼5.18
Media Library /wp-admin/upload.php1,399 ▼14.19 ▲0.0096.77 ▼9.4243.15 ▼9.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/order-search-repair-for-woocommerce/vnmOrderSearchRepair.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: orders, search, repair, update, woocommerce...

order-search-repair-for-woocommerce/vnmOrderSearchRepair.php 77% from 13 tests

Analyzing the main PHP file in "Order Search Repair for WooCommerce" version 0.1.2
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("order-search-repair-for-woocommerce.php" instead of "vnmOrderSearchRepair.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "2.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected545 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111560312
JavaScript17742177
CSS110956

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
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
PNG images were not found in this plugin