Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲1.89ms] Passed 4 tests
A check of server-side resources used by Create Restaurant Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 43.42 ▲4.28 |
Dashboard /wp-admin | 3.44 ▲0.13 | 53.54 ▲2.79 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 54.24 ▼2.94 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 105.16 ▲8.82 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.29 ▲3.43 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_crmenu_main_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Create Restaurant Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.57 ▼0.99 | 8.13 ▲6.44 | 41.75 ▼5.44 |
Dashboard /wp-admin | 2,214 ▲37 | 5.75 ▲0.17 | 88.20 ▼12.58 | 74.44 ▲31.02 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.27 ▲0.24 | 38.04 ▼17.60 | 35.41 ▼3.43 |
Add New Post /wp-admin/post-new.php | 6,442 ▲4,916 | 22.32 ▼1.23 | 918.28 ▲222.56 | 39.17 ▼12.64 |
Media Library /wp-admin/upload.php | 1,425 ▲31 | 4.34 ▲0.09 | 101.46 ▼0.98 | 75.26 ▲28.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_crmenu_main_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/create-restaurant-menu/template/full-menu.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: restaurant menu page, restaurant menu, restaurant menu block, restaurant main menu, create menu
create-restaurant-menu/main.php 85% from 13 tests
Analyzing the main PHP file in "Create Restaurant Menu" version 0.1
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("create-restaurant-menu.php" instead of "main.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin998 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 90 | 133 | 792 |
CSS | 6 | 0 | 59 | 162 |
JavaScript | 4 | 4 | 9 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 11 | |
▷ Named functions | 11 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rest-cart.png | 0.57KB | 0.46KB | ▼ 19.14% |
img/spicy.png | 4.24KB | 2.03KB | ▼ 51.98% |
img/resticon.png | 1.61KB | 0.67KB | ▼ 58.42% |