83% wmenu-digital-menu-and-restaurant-ordering

Code Review | wMenu Digital Menu and Restaurant Ordering

WordPress plugin wMenu Digital Menu and Restaurant Ordering scored 83% from 54 tests.

About plugin

  • Plugin page: wmenu-digital-men...
  • Plugin version: 1.13 - 14-11-2016...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 18, 2016
  • Latest release: Nov 22, 2016
  • Number of updates: 34
  • Update frequency: every 2.1 days
  • Top authors: wmenu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,618 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.05MB] [CPU: ▼11.28ms] Passed 4 tests

An overview of server-side resources used by wMenu Digital Menu and Restaurant Ordering
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.42 ▼9.88
Dashboard /wp-admin3.35 ▲0.0540.67 ▼7.54
Posts /wp-admin/edit.php3.40 ▲0.0546.48 ▼10.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0577.58 ▼17.62
Media Library /wp-admin/upload.php3.27 ▲0.0534.18 ▲0.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_wmenuwidget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for wMenu Digital Menu and Restaurant Ordering
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.56 ▼0.821.67 ▼0.3738.02 ▼10.83
Dashboard /wp-admin2,206 ▲185.79 ▲0.89114.22 ▲12.7242.68 ▲0.77
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0639.18 ▲1.8935.48 ▼0.77
Add New Post /wp-admin/post-new.php1,534 ▲1423.25 ▲0.12677.40 ▼11.8451.16 ▼11.82
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0895.00 ▼10.3842.13 ▼5.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_wmenuwidget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wmenu-digital-menu-and-restaurant-ordering/wMenu.php:433

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

wmenu-digital-menu-and-restaurant-ordering/wMenu.php 85% from 13 tests

The main PHP script in "wMenu Digital Menu and Restaurant Ordering" version 1.13 - 14-11-2016... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wmenu-digital-menu-and-restaurant-ordering.php" instead of "wMenu.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.13 - 14-11-2016...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected375 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16972375

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.16MB with 0.88MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Transp.png0.90KB0.09KB▼ 89.70%
img/iphonewhite1.png1,037.52KB66.15KB▼ 93.62%
img/ExitTransp.png2.22KB0.83KB▼ 62.49%
img/iphone6Png.png147.21KB62.43KB▼ 57.59%