84% priority-order

Code Review | WooCommerce Priority Order

WordPress plugin WooCommerce Priority Order scored84%from 54 tests.

About plugin

  • Plugin page: priority-order
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Jun 14, 2017
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: syntacstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.16ms] Passed 4 tests

Server-side resources used by WooCommerce Priority Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.23 ▼1.33
Dashboard /wp-admin3.43 ▲0.1342.29 ▼6.88
Posts /wp-admin/edit.php3.53 ▲0.1745.33 ▼1.21
Add New Post /wp-admin/post-new.php6.12 ▲0.2380.28 ▼19.47
Media Library /wp-admin/upload.php3.37 ▲0.1429.66 ▼4.94
Add to priority /wp-admin/admin.php?page=wc-priority-order3.2930.40

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Priority Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.72 ▲0.441.70 ▼0.2039.24 ▼1.95
Dashboard /wp-admin2,194 ▲175.64 ▲0.0592.65 ▲2.9143.36 ▲3.58
Posts /wp-admin/edit.php2,102 ▲52.03 ▲0.0440.31 ▲4.1237.30 ▲0.95
Add New Post /wp-admin/post-new.php1,530 ▲223.07 ▼0.08627.72 ▼3.2458.26 ▲9.39
Media Library /wp-admin/upload.php1,402 ▲24.13 ▼0.15102.76 ▼10.3443.95 ▼5.14
Add to priority /wp-admin/admin.php?page=wc-priority-order280.420.093.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wc-priority-order
    • > Network (severe)
    wp-admin/edit.php?post_type=shop_order - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 97% 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:
  • Plugin Name: Please specify the plugin name on the first line ( === priority-order === )
You can take inspiration from this readme.txt

priority-order/priority-order.php Passed 13 tests

The main file in "WooCommerce Priority Order" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Push WooCommerce orders to order priority

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
Everything looks great! No dangerous files found in this plugin226 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9101408204
CSS11022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.83
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected