62% woo-quick-order-table-view

Code Review | Plugin Name:Woo Quick Order Table View

WordPress plugin Plugin Name:Woo Quick Order Table Viewscored62%from 54 tests.

About plugin

  • Plugin page: woo-quick-order-t...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Sep 7, 2016
  • Latest release: Feb 27, 2018
  • Number of updates: 37
  • Update frequency: every 14.5 days
  • Top authors: rayhan30 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

30+ active /6,801 total downloads

Benchmarks

Plugin footprint 65% 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.88MB] [CPU: ▼34.22ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Name:Woo Quick Order Table View
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0123.49 ▼19.18
Dashboard /wp-admin3.06 ▼0.2423.84 ▼30.20
Posts /wp-admin/edit.php3.06 ▼0.3024.57 ▼23.14
Add New Post /wp-admin/post-new.php3.06 ▼2.8324.17 ▼64.35
Media Library /wp-admin/upload.php3.06 ▼0.1723.77 ▼9.78
Quick Order Table View Settings /wp-admin/options-general.php?page=quick-order-settings3.0623.65

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
woqtb_option_name
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name:Woo Quick Order Table View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,471 ▼28613.23 ▼1.170.49 ▼1.6416.40 ▼34.05
Dashboard /wp-admin2,209 ▲245.83 ▲0.84100.23 ▼14.7339.23 ▼4.46
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0538.25 ▼1.9733.55 ▼0.63
Add New Post /wp-admin/post-new.php1,542 ▲2818.14 ▲0.59611.84 ▼63.2661.43 ▲4.62
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0294.51 ▼1.9042.28 ▼2.36
Quick Order Table View Settings /wp-admin/options-general.php?page=quick-order-settings9572.0225.4436.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • woqtb_option_name

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=quick-order-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% 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
  • 3× 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-table-view/includes/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quick-order-table-view/quick-order.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-quick-order-table-view/includes/shortcode.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=quick-order-settings
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=quick-order-settings 165 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please a description for screenshot #4 in woo-quick-order-table-view/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name:Woo Quick Order Table View=== )
The official readme.txt is a good inspiration

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

The main file in "Plugin Name:Woo Quick Order Table View" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-quick-order-table-view.php" instead of "quick-order.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 266 characters long)

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
Everything looks great! No dangerous files found in this plugin15,326 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript72,5261,91113,835
CSS71221301,134
PHP49434357

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/pro-banner.png251.28KB137.41KB▼ 45.31%