83% woo-order-navigation

Code Review | WooCommerce Order Navigation

WordPress plugin WooCommerce Order Navigation scored83%from 54 tests.

About plugin

  • Plugin page: woo-order-navigation
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.9
  • WordPress version: 6.3.1
  • First release: Jun 30, 2017
  • Latest release: Mar 13, 2022
  • Number of updates: 10
  • Update frequency: every 171.7 days
  • Top authors: fullstackhouse (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /2,638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼0.92ms] Passed 4 tests

Server-side resources used by WooCommerce Order Navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.44 ▲3.22
Dashboard /wp-admin3.31 ▼0.0345.29 ▼12.19
Posts /wp-admin/edit.php3.36 ▲0.0149.49 ▲2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.01107.25 ▲8.00
Media Library /wp-admin/upload.php3.24 ▲0.0135.38 ▲2.55

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Order Navigation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.16 ▼0.221.65 ▲0.1243.96 ▲3.56
Dashboard /wp-admin2,195 ▲185.50 ▼0.0383.00 ▼3.8539.31 ▼2.86
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0039.34 ▲2.1335.00 ▼1.24
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▲0.02627.79 ▼3.6555.64 ▼19.82
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.1192.70 ▼8.3343.42 ▲0.23

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-order-navigation/admin/partials/wc-order-navigation-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: pagination, order, woocommerce, navigation, woocommerce orders...

woo-order-navigation/wc-order-navigation.php 77% from 13 tests

The main PHP file in "WooCommerce Order Navigation" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.2")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-order-navigation.php" instead of "wc-order-navigation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin231 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10103422178
CSS17427
PO File14526

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.17
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin