90% order-timeline-for-woocommerce

Code Review | Order Timeline for WooCommerce

WordPress plugin Order Timeline for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: order-timeline-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Oct 21, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jompha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /585 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.03MB] [CPU: ▼5.76ms] Passed 4 tests

This is a short check of server-side resources used by Order Timeline for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.57 ▼2.10
Dashboard /wp-admin3.35 ▲0.0048.15 ▼11.80
Posts /wp-admin/edit.php3.40 ▲0.0444.86 ▲2.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.83 ▼8.50
Media Library /wp-admin/upload.php3.27 ▲0.0434.28 ▼0.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Order Timeline for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.11 ▼0.241.83 ▲0.2340.65 ▼2.45
Dashboard /wp-admin2,208 ▲285.48 ▼0.1483.86 ▼5.3740.69 ▲0.89
Posts /wp-admin/edit.php2,116 ▲132.00 ▲0.0136.06 ▲0.3637.48 ▲3.32
Add New Post /wp-admin/post-new.php1,547 ▲2123.42 ▼0.06657.85 ▲55.7757.72 ▲4.93
Media Library /wp-admin/upload.php1,419 ▲164.17 ▼0.0599.90 ▲0.6244.90 ▼1.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: timeline, woocommerce, order timeline

order-timeline-for-woocommerce/order-timeline-for-woocommerce.php Passed 13 tests

The main PHP script in "Order Timeline for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
83 characters long description:
An e-commerce order tracking and timline plugin for WooCommerce. Powered by Jompha.

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
Good job! No executable or dangerous file extensions detected1,029 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7116164624
CSS45121343
SVG10038
JavaScript24024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.33
▷ Minimum class complexity3.00
▷ Maximum class complexity27.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods47
▷ Static methods714.89%
▷ Public methods3676.60%
▷ Protected methods00.00%
▷ Private methods1123.40%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/images/ucfw-banner.png68.80KB28.39KB▼ 58.73%