83% manual-order

Code Review | Manual Order For WooCommerce

WordPress plugin Manual Order For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: manual-order
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: Jan 29, 2023
  • Number of updates: 15
  • Update frequency: every 46.1 days
  • Top authors: coderstime (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,708 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.06MB] [CPU: ▼7.58ms] Passed 4 tests

Analyzing server-side resources used by Manual Order For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.25 ▼4.52
Dashboard /wp-admin3.36 ▲0.0650.92 ▼3.55
Posts /wp-admin/edit.php3.42 ▲0.0649.54 ▲0.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.99 ▼22.99
Media Library /wp-admin/upload.php3.29 ▲0.0638.24 ▲2.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Manual Order For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.191.79 ▼0.1143.90 ▲1.77
Dashboard /wp-admin2,206 ▲185.83 ▲0.95108.12 ▼10.1542.12 ▼0.58
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0437.56 ▼1.6334.54 ▼4.23
Add New Post /wp-admin/post-new.php1,535 ▲1623.44 ▲0.29658.43 ▼25.4057.51 ▲2.75
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.00109.13 ▲0.0148.25 ▲2.15

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • mofw_active
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • mofw_deactive
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/manual-order/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Requires php: Invalid version format
The official readme.txt might help

manual-order/manual-order.php 92% from 13 tests

Analyzing the main PHP file in "Manual Order For WooCommerce" version 1.2.0
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin385 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37190306
JavaScript112075
CSS1294

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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