83% order-wizard

Code Review | Order Wizard

WordPress plugin Order Wizard scored83%from 54 tests.

About plugin

  • Plugin page: order-wizard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Jul 12, 2017
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: orderwizard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /784 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.40ms] Passed 4 tests

Analyzing server-side resources used by Order Wizard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.51 ▼2.81
Dashboard /wp-admin3.36 ▲0.0552.69 ▼3.04
Posts /wp-admin/edit.php3.47 ▲0.1152.45 ▼1.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.84 ▼6.23
Media Library /wp-admin/upload.php3.28 ▲0.0538.56 ▲1.18

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Order Wizard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.13 ▼0.581.78 ▼0.0542.78 ▼1.20
Dashboard /wp-admin2,194 ▲145.58 ▲0.0285.45 ▼7.9071.69 ▲34.49
Posts /wp-admin/edit.php2,111 ▲82.00 ▼0.0338.32 ▼1.6534.71 ▼1.18
Add New Post /wp-admin/post-new.php1,559 ▲3318.11 ▼2.88726.31 ▼16.35115.52 ▲62.14
Media Library /wp-admin/upload.php1,414 ▲174.23 ▲0.06101.62 ▲0.1170.73 ▲26.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/order-wizard/public/partials/orderwizard-public-display.php
    • > /wp-content/plugins/order-wizard/admin/partials/orderwizard-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
You can look at the official readme.txt

order-wizard/orderwizard.php 69% from 13 tests

"Order Wizard" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("order-wizard.php" instead of "orderwizard.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("//")
  • Domain Path: The domain path should use only dashes and lowercase characters ("/")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin286 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12164482280
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/green-tick.png1.38KB1.43KB0.00%
admin/images/orderwizard-logo-white.png4.09KB4.23KB0.00%
admin/images/red-cross.png3.17KB2.08KB▼ 34.45%
admin/images/orderwizard-icon.png0.44KB0.45KB0.00%