84% upmenu

Code Review | UpMenu - Online ordering for restaurants

WordPress plugin UpMenu - Online ordering for restaurants scored84%from 54 tests.

About plugin

  • Plugin page: upmenu
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2018
  • Latest release: Nov 10, 2023
  • Number of updates: 6
  • Update frequency: every 297.2 days
  • Top authors: upmenu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /764 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.11MB] [CPU: ▼6.57ms] Passed 4 tests

Analyzing server-side resources used by UpMenu - Online ordering for restaurants
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1034.85 ▼9.65
Dashboard /wp-admin3.43 ▲0.0845.97 ▼15.06
Posts /wp-admin/edit.php3.48 ▲0.1248.70 ▲2.29
Add New Post /wp-admin/post-new.php6.00 ▲0.1291.87 ▼3.85
Media Library /wp-admin/upload.php3.35 ▲0.1233.40 ▲2.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

UpMenu - Online ordering for restaurants: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13014.69 ▼0.031.64 ▲0.0235.73 ▼6.87
Dashboard /wp-admin2,282 ▲1055.63 ▼0.0692.65 ▼3.0236.99 ▼7.73
Posts /wp-admin/edit.php2,191 ▲912.02 ▲0.0841.09 ▲2.6235.75 ▼2.12
Add New Post /wp-admin/post-new.php1,549 ▲1325.28 ▲2.12615.23 ▼75.4967.87 ▲15.71
Media Library /wp-admin/upload.php1,490 ▲904.21 ▲0.0696.31 ▼0.4040.62 ▼0.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upmenu/upmenu.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: upmenu, integration, integracja

upmenu/upmenu.php 92% from 13 tests

This is the main PHP file of "UpMenu - Online ordering for restaurants" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin692 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29212640
SVG20051
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions16
▷ Named functions16100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png4.25KB2.87KB▼ 32.43%