90% woo-archive-orders

Code Review | WooCommerce Archive Orders

WordPress plugin WooCommerce Archive Orders scored90%from 54 tests.

About plugin

  • Plugin page: woo-archive-orders
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2019
  • Latest release: Apr 4, 2019
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: bastho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.01ms] Passed 4 tests

Server-side resources used by WooCommerce Archive Orders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.27 ▼7.49
Dashboard /wp-admin3.35 ▲0.0050.75 ▼20.78
Posts /wp-admin/edit.php3.40 ▲0.0447.94 ▼7.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.60 ▼8.08
Media Library /wp-admin/upload.php3.27 ▲0.0435.74 ▼1.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Archive Orders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.56 ▲0.031.71 ▲0.0243.61 ▼1.94
Dashboard /wp-admin2,198 ▲275.63 ▼0.0997.63 ▼21.5942.38 ▼8.84
Posts /wp-admin/edit.php2,097 ▼01.97 ▼0.0334.65 ▼0.0136.20 ▲1.83
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.30696.71 ▲68.6150.52 ▼2.14
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0395.45 ▼31.1344.96 ▲0.05

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: archive, performances, orders, woocommerce

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

The main PHP script in "WooCommerce Archive Orders" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-archive-orders.php" instead of "woocommerce-archive-orders.php")

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
No dangerous file extensions were detected179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12930167
Markdown110012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin