89% ordering-system-ord-to

Code Review | Online ordering System - ord.to

WordPress plugin Online ordering System - ord.to scored89%from 54 tests.

About plugin

  • Plugin page: ordering-system-o...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2021
  • Latest release: Feb 25, 2021
  • Number of updates: 28
  • Update frequency: every 0.3 days
  • Top authors: ordto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼10.10ms] Passed 4 tests

Server-side resources used by Online ordering System - ord.to
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1436.96 ▼6.29
Dashboard /wp-admin3.45 ▲0.1147.11 ▼17.47
Posts /wp-admin/edit.php3.57 ▲0.2155.21 ▲2.96
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.88 ▼19.59
Media Library /wp-admin/upload.php3.38 ▲0.1439.29 ▲4.50
Configuration /wp-admin/admin.php?page=ordto-config3.3433.38
Orders /wp-admin/admin.php?page=orders3.3434.86
Products /wp-admin/admin.php?page=products3.3431.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Online ordering System - ord.to
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.21 ▼1.201.67 ▼0.0839.04 ▼5.25
Dashboard /wp-admin2,236 ▲505.86 ▲0.9897.36 ▼13.1335.81 ▼8.90
Posts /wp-admin/edit.php2,116 ▲272.05 ▼0.0734.09 ▼7.2331.88 ▼6.00
Add New Post /wp-admin/post-new.php1,555 ▲2023.20 ▼0.11656.06 ▼19.4452.46 ▲2.02
Media Library /wp-admin/upload.php1,418 ▲304.29 ▲0.0696.55 ▼7.9043.90 ▼6.19
Configuration /wp-admin/admin.php?page=ordto-config8372.0624.0521.33
Orders /wp-admin/admin.php?page=orders7732.0523.6720.32
Products /wp-admin/admin.php?page=products7772.0622.1322.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

ordering-system-ord-to/ord_sys.php 77% from 13 tests

"Online ordering System - ord.to" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.6")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ordering-system-ord-to.php" instead of "ord_sys.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,058 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP817723907
CSS1250131
JavaScript16020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions22
▷ Named functions22100.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
No PNG images were found in this plugin