78% woo-orders-calendar

Code Review | Woocommerce Order Calendar

WordPress plugin Woocommerce Order Calendar scored78%from 54 tests.

About plugin

  • Plugin page: woo-orders-calendar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Apr 10, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: deepaksharma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Woocommerce Order Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▲1.99
Dashboard /wp-admin3.31 ▲0.0149.65 ▲1.85
Posts /wp-admin/edit.php3.36 ▲0.0142.95 ▼9.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.76 ▼15.64
Media Library /wp-admin/upload.php3.23 ▲0.0132.39 ▼1.53
Orders Celandar /wp-admin/admin.php?page=woocommerce-orders-calendar3.2026.93

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Order Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5013.42 ▼0.951.79 ▼0.1344.01 ▲0.81
Dashboard /wp-admin2,216 ▲285.00 ▲0.11102.77 ▼5.8042.87 ▼0.99
Posts /wp-admin/edit.php2,093 ▲12.09 ▲0.0837.27 ▼4.3034.42 ▼5.43
Add New Post /wp-admin/post-new.php1,520 ▼1323.47 ▲0.76645.66 ▲15.2148.58 ▼13.97
Media Library /wp-admin/upload.php1,389 ▲14.30 ▲0.12100.44 ▲0.2944.23 ▲1.18
Orders Celandar /wp-admin/admin.php?page=woocommerce-orders-calendar1,1922.3741.4130.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-orders-calendar/woocommerce-order-calendar.php:11

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)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=woocommerce-orders-calendar
    • > Javascript (severe) in unknown
    /wp-content/plugins/woo-orders-calendar/js/fullcalendar.min.js?ver=6.3.1 98:148 Uncaught TypeError: Cannot read properties of undefined (reading 'offsetTop')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Admin Order Calendar in Woocomerce Menu) image required
The official readme.txt might help

woo-orders-calendar/woocommerce-order-calendar.php 92% from 13 tests

"Woocommerce Order Calendar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-orders-calendar.php" instead of "woocommerce-order-calendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected587 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS115050422
JavaScript2511115
PHP14850

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.98KB12.12KB▼ 51.48%