93% woo-quick-order-view

Code Review | WooCommerce Quick Order View

WordPress plugin WooCommerce Quick Order View scored 93% from 54 tests.

About plugin

  • Plugin page: woo-quick-order-view
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Sep 16, 2016
  • Latest release: Nov 17, 2016
  • Number of updates: 6
  • Update frequency: every 10.3 days
  • Top authors: webnware (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 1,292 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼310.33ms] Passed 4 tests

A check of server-side resources used by WooCommerce Quick Order View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.68 ▲1.53
Dashboard /wp-admin3.43 ▲0.0234.74 ▲1.06
Posts /wp-admin/edit.php3.65 ▲0.0137.35 ▼1.23
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.55 ▼1,242.51
Media Library /wp-admin/upload.php3.30 ▲0.0125.58 ▲1.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Quick Order View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.92 ▼0.095.69 ▼0.902.41 ▼1.04
Dashboard /wp-admin2,895 ▲376.14 ▼0.01119.01 ▼15.87156.44 ▼5.82
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0060.33 ▼3.40137.67 ▼6.80
Add New Post /wp-admin/post-new.php1,752 ▲6221.66 ▲1.07441.46 ▼3.71158.73 ▼4.61
Media Library /wp-admin/upload.php1,698 ▼35.53 ▼0.00155.86 ▲13.33199.29 ▲12.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quick-order-view/woocommerce-quick-order-view.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

woo-quick-order-view/woocommerce-quick-order-view.php 85% from 13 tests

The entry point to "WooCommerce Quick Order View" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 268 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-quick-order-view.php" instead of "woocommerce-quick-order-view.php")

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
Everything looks great! No dangerous files found in this plugin678 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP314920678

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected