68% whats-order

Code Review | Whats Order

WordPress plugin Whats Order scored 68% from 54 tests.

About plugin

  • Plugin page: whats-order
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Nov 18, 2022
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: sosidee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 155 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.04MB] [CPU: ▲2.64ms] Passed 4 tests

Server-side resources used by Whats Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.7249.86 ▲10.37
Dashboard /wp-admin4.33 ▲1.0353.45 ▲8.84
Posts /wp-admin/edit.php4.44 ▲1.0957.35 ▲9.15
Add New Post /wp-admin/post-new.php6.91 ▲1.0293.95 ▼14.98
Media Library /wp-admin/upload.php4.25 ▲1.0242.64 ▲7.56
Items /wp-admin/admin.php?page=sos-whats-order-04.4537.87
Settings /wp-admin/admin.php?page=sos-whats-order-34.4436.93
sos-whats-order-1 /wp-admin/admin.php?page=sos-whats-order-14.4539.05
Data import /wp-admin/admin.php?page=sos-whats-order-24.4737.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 104 new files
Database: 3 new tables, 7 new options
New tables
wp_sos_wso_carts
wp_sos_wso_orders
wp_sos_wso_items
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
sos-whats-order_db-version
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Whats Order
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲12713.16 ▼1.401.79 ▲0.0841.05 ▲1.79
Dashboard /wp-admin2,242 ▲514.88 ▼1.02107.92 ▲5.8339.57 ▼2.13
Posts /wp-admin/edit.php2,122 ▲301.98 ▼0.0539.80 ▼2.7036.83 ▲1.82
Add New Post /wp-admin/post-new.php1,555 ▲2223.08 ▼0.03636.96 ▼46.8662.04 ▲10.03
Media Library /wp-admin/upload.php1,424 ▲394.24 ▲0.0596.41 ▼16.1642.67 ▼4.97
Items /wp-admin/admin.php?page=sos-whats-order-08372.0630.7425.77
Settings /wp-admin/admin.php?page=sos-whats-order-39222.0223.7546.22
sos-whats-order-1 /wp-admin/admin.php?page=sos-whats-order-19102.0325.2326.13
Data import /wp-admin/admin.php?page=sos-whats-order-29142.1924.8330.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_sos_wso_carts
    • wp_sos_wso_items
    • wp_sos_wso_orders
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • sos-whats-order_db-version
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 62× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/whats-order/db/database.php
    • > /wp-content/plugins/whats-order/loader.php
    • > /wp-content/plugins/whats-order/sos/wp/data/section.php
    • > /wp-content/plugins/whats-order/sos/wp/be/menu.php
    • > /wp-content/plugins/whats-order/src/cart.php
    • > /wp-content/plugins/whats-order/sos/wp/data/formfield.php
    • > /wp-content/plugins/whats-order/sos/wp/email.php
    • > /wp-content/plugins/whats-order/form/config.php
    • > /wp-content/plugins/whats-order/sos/wp/be/navtab.php
    • > /wp-content/plugins/whats-order/sos/wp/data/encryption.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/config.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/io.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/item.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SOSIDEE_WHATS_ORDER\\SosPlugin' not found in wp-content/plugins/whats-order/admin/items.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: whatsapp, e-commerce, order online, cart

whats-order/whats-order.php 92% from 13 tests

The main PHP script in "Whats Order" version 0.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,273 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,1437716,288
JavaScript66433778
CSS3124177
HTML23030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.69
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces9
Interfaces0
Traits5
Classes57
▷ Abstract classes11.75%
▷ Concrete classes5698.25%
▷ Final classes00.00%
Methods436
▷ Static methods6915.83%
▷ Public methods33276.15%
▷ Protected methods5512.61%
▷ Private methods4911.24%
Functions40
▷ Named functions1742.50%
▷ Anonymous functions2357.50%
Constants80
▷ Global constants11.25%
▷ Class constants7998.75%
▷ Public constants7594.94%

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
No PNG files were detected