84% order-meta-editor-for-woocommerce

Code Review | Order Meta Editor for Woocommerce

WordPress plugin Order Meta Editor for Woocommerce scored 84% from 54 tests.

About plugin

  • Plugin page: order-meta-editor...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: Jan 14, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: startnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 862 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 gracefully, with no errors

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

An overview of server-side resources used by Order Meta Editor for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.52 ▼5.21
Dashboard /wp-admin3.34 ▲0.0351.94 ▼1.16
Posts /wp-admin/edit.php3.39 ▲0.0352.57 ▼1.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.70 ▼1.35
Media Library /wp-admin/upload.php3.26 ▲0.0341.51 ▲1.87
Order Meta Editor /wp-admin/admin.php?page=order_meta_editor_details3.2334.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Meta Editor for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲2413.25 ▼0.001.78 ▼0.7142.70 ▼7.04
Dashboard /wp-admin2,219 ▲164.94 ▲0.06109.19 ▲7.4840.68 ▼3.03
Posts /wp-admin/edit.php2,102 ▲132.23 ▲0.2040.51 ▲4.8336.22 ▲3.12
Add New Post /wp-admin/post-new.php1,525 ▼821.02 ▼2.38801.69 ▲103.4453.50 ▼0.92
Media Library /wp-admin/upload.php1,398 ▲134.41 ▲0.16113.48 ▼4.3948.04 ▼2.12
Order Meta Editor /wp-admin/admin.php?page=order_meta_editor_details8241.8335.3927.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/order-meta-editor-for-woocommerce/woocommerce-order_meta_editor.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

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

order-meta-editor-for-woocommerce/woocommerce-order_meta_editor.php 92% from 13 tests

The main file in "Order Meta Editor for Woocommerce" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("order-meta-editor-for-woocommerce.php" instead of "woocommerce-order_meta_editor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected130 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13642117
JavaScript13112
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin