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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 36.13 ▲15.90 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.68 ▼1.66 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.01 ▼4.21 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 82.39 ▼584.13 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.70 ▲1.52 |
Munchem Settings /wp-admin/options-general.php?page=munchem-menu/index.php | 3.02 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 15.90 ▲0.33 | 8.67 ▼0.58 | 46.41 ▲0.25 |
Dashboard /wp-admin | 2,972 ▲37 | 5.86 ▼0.07 | 143.18 ▼34.93 | 101.31 ▼11.27 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 69.10 ▼14.76 | 82.56 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,673 ▼10 | 19.14 ▲0.33 | 407.26 ▼3.99 | 106.11 ▼4.56 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.02 | 156.14 ▼3.30 | 116.12 ▼5.90 |
Munchem Settings /wp-admin/options-general.php?page=munchem-menu/index.php | 1,091 | 2.09 | 60.94 | 82.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 33 | 309 |
CSS | 1 | 2 | 3 | 71 |
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 code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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