94% munchem-menu

Code Review | Munchem Menu

WordPress plugin Munchem Menu scored 94% from 54 tests.

About plugin

  • Plugin page: munchem-menu
  • Plugin version: 0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.3
  • WordPress version: 5.8.1
  • First release: Sep 4, 2018
  • Latest release: Sep 19, 2018
  • Number of updates: 11
  • Update frequency: every 2.3 days
  • Top authors: munchem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 333 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼147.12ms] Passed 4 tests

This is a short check of server-side resources used by Munchem Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.13 ▲15.90
Dashboard /wp-admin3.11 ▲0.0545.68 ▼1.66
Posts /wp-admin/edit.php3.16 ▲0.0545.01 ▼4.21
Add New Post /wp-admin/post-new.php5.47 ▲0.0382.39 ▼584.13
Media Library /wp-admin/upload.php3.05 ▲0.0532.70 ▲1.52
Munchem Settings /wp-admin/options-general.php?page=munchem-menu/index.php3.0228.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
munch_plugin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Munchem Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.90 ▲0.338.67 ▼0.5846.41 ▲0.25
Dashboard /wp-admin2,972 ▲375.86 ▼0.07143.18 ▼34.93101.31 ▼11.27
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0169.10 ▼14.7682.56 ▼2.17
Add New Post /wp-admin/post-new.php1,673 ▼1019.14 ▲0.33407.26 ▼3.99106.11 ▼4.56
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.02156.14 ▼3.30116.12 ▼5.90
Munchem Settings /wp-admin/options-general.php?page=munchem-menu/index.php1,0912.0960.9482.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 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/munchem-menu/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: menu embed, menu, munchem, restaurants

munchem-menu/index.php 92% from 13 tests

"Munchem Menu" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("munchem-menu.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
Everything looks great! No dangerous files found in this plugin380 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13233309
CSS12371

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions19
▷ Named functions19100.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
No PNG images were found in this plugin