84% wc-order-metadata-check

Code Review | WC Order Metadata Check

WordPress plugin WC Order Metadata Check scored 84% from 54 tests.

About plugin

  • Plugin page: wc-order-metadata...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Feb 16, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Amgnando (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by WC Order Metadata Check
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.67 ▼5.38
Dashboard /wp-admin3.31 ▲0.0147.53 ▼5.01
Posts /wp-admin/edit.php3.37 ▲0.0145.42 ▼1.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.82 ▼3.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.97 ▲1.66

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WC Order Metadata Check
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.191.65 ▼0.0745.03 ▲0.34
Dashboard /wp-admin2,209 ▲305.88 ▲0.9696.53 ▼9.0337.51 ▼0.78
Posts /wp-admin/edit.php2,095 ▲31.99 ▼0.0534.80 ▼7.6736.76 ▲6.36
Add New Post /wp-admin/post-new.php1,413 ▼10618.18 ▼4.80539.51 ▼63.5752.30 ▼13.52
Media Library /wp-admin/upload.php1,388 ▼04.39 ▲0.1795.26 ▼10.1040.99 ▼4.04

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

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-order-metadata-check/wc-order-metadata-check.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
2 plugin tags: woocommerce, order meta

wc-order-metadata-check/wc-order-metadata-check.php Passed 13 tests

The entry point to "WC Order Metadata Check" version 1.0.0 is a PHP file that has certain tags in its header comment area
49 characters long description:
Get the metadata list from your WooCommerce order

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
Success! There were no dangerous files found in this plugin21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122321

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin