84% woo-ultimate-order-combination

Code Review | Ultimate Order Combination

WordPress plugin Ultimate Order Combination scored84%from 54 tests.

About plugin

  • Plugin page: woo-ultimate-orde...
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2019
  • Latest release: Nov 23, 2023
  • Number of updates: 75
  • Update frequency: every 19.4 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /12,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Ultimate Order Combination
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.90 ▼3.21
Dashboard /wp-admin3.32 ▲0.0247.53 ▼11.98
Posts /wp-admin/edit.php3.37 ▲0.0144.23 ▼15.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.53 ▼4.44
Media Library /wp-admin/upload.php3.24 ▲0.0130.86 ▼5.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Ultimate Order Combination: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.37 ▼0.031.76 ▲0.0637.13 ▼11.69
Dashboard /wp-admin2,195 ▲185.62 ▲0.0495.68 ▼6.9742.53 ▼2.57
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0038.57 ▼5.6734.76 ▼6.15
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.06700.26 ▲13.8460.73 ▲3.63
Media Library /wp-admin/upload.php1,397 ▼04.12 ▼0.0996.61 ▼17.0042.08 ▼5.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-ultimate-order-combination/inc/wuoc-emails.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-ultimate-order-combination/inc/functions-essentials.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-ultimate-order-combination/inc/wuoc_settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: combine, merge, consolidate, orders, woocommerce

woo-ultimate-order-combination/index.php 85% from 13 tests

"Ultimate Order Combination" version 1.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-ultimate-order-combination.php" instead of "index.php")
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin28,341 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83,4002,25314,756
SVG4009,547
PHP61,3931702,219
PO File34805441,179
CSS710921640

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity145.00
▷ Minimum class complexity112.00
▷ Maximum class complexity178.00
Average method complexity9.33
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions43
▷ Named functions3990.70%
▷ Anonymous functions49.30%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-128x128.png21.30KB8.63KB▼ 59.46%
img/woo.png6.68KB3.20KB▼ 52.07%