78% woo-smart-orders-page-free

Code Review | WooCommerce Smart Orders Page FREE

WordPress plugin WooCommerce Smart Orders Page FREE scored78%from 54 tests.

About plugin

  • Plugin page: woo-smart-orders-...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Oct 24, 2017
  • Latest release: Oct 24, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: thecroc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,155 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by WooCommerce Smart Orders Page FREE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.34 ▲1.33
Dashboard /wp-admin3.33 ▼0.0248.71 ▼20.47
Posts /wp-admin/edit.php3.38 ▲0.0253.94 ▼0.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.00 ▼20.53
Media Library /wp-admin/upload.php3.25 ▲0.0235.08 ▼2.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Smart Orders Page FREE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9313.20 ▼1.181.88 ▲0.2144.04 ▲6.77
Dashboard /wp-admin2,232 ▲265.83 ▼0.06106.30 ▼11.4241.78 ▼1.74
Posts /wp-admin/edit.php2,117 ▲201.99 ▼0.0241.04 ▲3.9438.50 ▲2.67
Add New Post /wp-admin/post-new.php1,540 ▲923.32 ▲0.19640.05 ▼30.8758.49 ▼9.54
Media Library /wp-admin/upload.php1,417 ▲234.23 ▲0.02102.06 ▲0.5345.28 ▼2.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_wcsop_lookup_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-smart-orders-page-free/include/class-wcsop.php
    • > /wp-content/plugins/woo-smart-orders-page-free/woocommerce-smart-orders-page.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require(wp-content/plugins/woo-smart-orders-page-free/include/vendor/donatj/phpuseragentparser/Tools/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-smart-orders-page-free/include/vendor/donatj/phpuseragentparser/Tools/user_agent_sorter.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-smart-orders-page-free/include/lookup-order-widget.class.php:6
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/woo-smart-orders-page-free/include/vendor/donatj/phpuseragentparser/Tools/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-smart-orders-page-free/include/vendor/donatj/phpuseragentparser/Tools/user_agent_sorter.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smart-orders-page-free/include/vendor/donatj/phpuseragentparser/Tests/UserAgentParserTest.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: summary, plugin, woocommerce 3, admin, order...

woo-smart-orders-page-free/woocommerce-smart-orders-page.php 77% from 13 tests

"WooCommerce Smart Orders Page FREE" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-smart-orders-page-free.php" instead of "woocommerce-smart-orders-page.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin5,554 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.75
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods1526.79%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
▷ Named functions3186.11%
▷ Anonymous functions513.89%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin