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
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼15.88ms] Passed 4 tests
A check of server-side resources used by Restaurant Menu Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 36.05 ▼4.14 |
Dashboard /wp-admin | 3.16 ▼0.14 | 28.39 ▼22.00 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 34.00 ▼10.82 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 74.13 ▼23.40 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 27.81 ▼7.29 |
All Restaurant Menu Entries /wp-admin/edit.php?post_type=rm-menu-entry | 3.27 | 30.13 |
Entry Tags /wp-admin/edit-tags.php?taxonomy=rm-entry-tags&post_type=rm-menu-entry | 3.22 | 28.47 |
Menu Type /wp-admin/edit-tags.php?taxonomy=rm-menu-type&post_type=rm-menu-entry | 3.22 | 29.26 |
New Restaurant Menu Entry /wp-admin/post-new.php?post_type=rm-menu-entry | 3.29 | 38.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Restaurant Menu Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.40 ▼1.04 | 1.62 ▼0.16 | 41.43 ▼2.11 |
Dashboard /wp-admin | 2,247 ▲58 | 4.87 ▼0.07 | 108.57 ▼11.09 | 44.05 ▼0.27 |
Posts /wp-admin/edit.php | 2,127 ▲34 | 2.06 ▲0.09 | 38.97 ▼0.92 | 38.71 ▲4.57 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 23.03 ▼0.26 | 683.36 ▲48.05 | 55.84 ▲12.67 |
Media Library /wp-admin/upload.php | 1,426 ▲44 | 4.21 ▲0.01 | 93.49 ▼5.24 | 44.38 ▲2.12 |
All Restaurant Menu Entries /wp-admin/edit.php?post_type=rm-menu-entry | 1,147 | 1.94 | 32.24 | 35.72 |
Entry Tags /wp-admin/edit-tags.php?taxonomy=rm-entry-tags&post_type=rm-menu-entry | 1,269 | 2.14 | 26.98 | 30.98 |
Menu Type /wp-admin/edit-tags.php?taxonomy=rm-menu-type&post_type=rm-menu-entry | 1,300 | 2.14 | 27.10 | 31.00 |
New Restaurant Menu Entry /wp-admin/post-new.php?post_type=rm-menu-entry | 2,672 | 7.80 | 180.69 | 73.18 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rm-menu-entry
- > Notice in wp-content/plugins/restaurant-menu-manager/restaurant-menu.php+250
Undefined variable: iconurl
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 take a closer look at the following
- 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/restaurant-menu-manager/restaurant-menu.php:22
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in restaurant-menu-manager/assets to your readme.txt
restaurant-menu-manager/restaurant-menu.php 92% from 13 tests
Analyzing the main PHP file in "Restaurant Menu Manager" version 1.0.5
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("restaurant-menu-manager.php" instead of "restaurant-menu.php")
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 detected711 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 127 | 58 | 387 |
CSS | 1 | 22 | 24 | 314 |
JavaScript | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rm-menu-icon.png | 0.51KB | 0.44KB | ▼ 13.96% |