68% orderem-online-ordering-for-clover

Code Review | Online Ordering Plus Custom Branded Apps For Clover Merchants

WordPress plugin Online Ordering Plus Custom Branded Apps For Clover Merchants scored68%from 54 tests.

About plugin

  • Plugin page: orderem-online-or...
  • Plugin version: 1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Oct 18, 2018
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: orderem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /780 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼35.10ms] Passed 4 tests

Analyzing server-side resources used by Online Ordering Plus Custom Branded Apps For Clover Merchants
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /60.98 ▲57.4711,928,239.77 ▲11,928,190.91
Dashboard /wp-admin3.06 ▼0.2925.47 ▼24.52
Posts /wp-admin/edit.php3.06 ▼0.3424.75 ▼28.10
Add New Post /wp-admin/post-new.php3.06 ▼2.8827.59 ▼74.78
Media Library /wp-admin/upload.php3.06 ▼0.2228.49 ▼12.99
Clover POS Orders /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php3.0625.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Online Ordering Plus Custom Branded Apps For Clover Merchants
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.69 ▲0.121.85 ▼0.0144.73 ▲4.47
Dashboard /wp-admin2,199 ▲225.61 ▼0.0490.36 ▼1.5942.66 ▲1.40
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0233.93 ▼8.3435.21 ▼3.25
Add New Post /wp-admin/post-new.php1,531 ▲323.16 ▲0.02629.17 ▲22.0853.72 ▼0.08
Media Library /wp-admin/upload.php1,398 ▼54.22 ▲0.03100.14 ▼1.0543.39 ▼0.30
Clover POS Orders /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php8591.9923.3027.06

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/orderem-online-ordering-for-clover/index.php+136
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
    • > Notice in wp-content/plugins/orderem-online-ordering-for-clover/index.php+78
    Trying to access array offset on value of type bool
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=orderem-online-ordering-for-clover/index.php
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/orderem-online-ordering-for-clover/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

orderem-online-ordering-for-clover/index.php 92% from 13 tests

This is the main PHP file of "Online Ordering Plus Custom Branded Apps For Clover Merchants" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("orderem-online-ordering-for-clover.php" instead of "index.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
No dangerous file extensions were detected125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13428125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions11
▷ Named functions11100.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 files were detected