84% restaurant-menu-ordering

Code Review | Restaurant Menu Ordering

WordPress plugin Restaurant Menu Ordering scored84%from 54 tests.

About plugin

  • Plugin page: restaurant-menu-o...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Aug 21, 2015
  • Number of updates: 8
  • Update frequency: every 22.9 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.41ms] Passed 4 tests

This is a short check of server-side resources used by Restaurant Menu Ordering
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.42 ▼1.81
Dashboard /wp-admin3.31 ▼0.0345.97 ▼13.83
Posts /wp-admin/edit.php3.36 ▲0.0147.75 ▲3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.17 ▼10.57
Media Library /wp-admin/upload.php3.23 ▲0.0137.29 ▲0.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Restaurant Menu Ordering
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.271.59 ▼0.1538.04 ▼1.05
Dashboard /wp-admin2,206 ▲185.83 ▲0.9595.26 ▼5.8238.40 ▼9.39
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0540.27 ▲3.7136.02 ▲0.59
Add New Post /wp-admin/post-new.php1,533 ▲1423.39 ▲0.12656.94 ▲14.7752.09 ▼8.82
Media Library /wp-admin/upload.php1,385 ▼34.15 ▼0.0794.32 ▼1.7842.90 ▼0.54

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-menu-ordering/restaurant-menu-ordering.php:23

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: Please take inspiration from this readme.txt

restaurant-menu-ordering/restaurant-menu-ordering.php Passed 13 tests

"Restaurant Menu Ordering" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
Makes the Restaurant plugin allow hierarchical ordering of items. WARNING: could make things slow if you have more than 100 items.

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
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101618

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin