89% woo-manual-orders

Code Review | Manual Orders for Woocommerce

WordPress plugin Manual Orders for Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woo-manual-orders
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 16, 2018
  • Latest release: Dec 16, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: w4press (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Manual Orders for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.57 ▲3.78
Dashboard /wp-admin3.31 ▲0.0147.49 ▼10.63
Posts /wp-admin/edit.php3.36 ▲0.0149.77 ▲2.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.18 ▼10.26
Media Library /wp-admin/upload.php3.23 ▲0.0136.20 ▲0.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Manual Orders for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.001.81 ▼0.2341.66 ▼5.71
Dashboard /wp-admin2,203 ▲155.84 ▼0.06105.40 ▼8.8339.33 ▼6.72
Posts /wp-admin/edit.php2,092 ▲62.03 ▲0.0538.77 ▲2.7635.40 ▲4.00
Add New Post /wp-admin/post-new.php1,514 ▼2317.55 ▼0.68654.06 ▲20.1650.31 ▼3.99
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0394.90 ▼2.3141.52 ▼3.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

woo-manual-orders/functions.php 85% from 13 tests

Analyzing the main PHP file in "Manual Orders for Woocommerce" version 1.0.3
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-manual-orders.php" instead of "functions.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,373 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP195597701,747
JavaScript35118322
PO File1276512263
CSS24041

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.40
▷ Minimum class complexity2.00
▷ Maximum class complexity53.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods112
▷ Static methods4237.50%
▷ Public methods9383.04%
▷ Protected methods65.36%
▷ Private methods1311.61%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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