Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼13.19ms] Passed 4 tests
An overview of server-side resources used by Simple Restaurant Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 25.07 ▼13.70 |
Dashboard /wp-admin | 3.43 ▲0.09 | 45.28 ▼16.63 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.67 ▲2.97 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.13 ▼23.98 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.24 ▲1.54 |
Menu Items /wp-admin/edit.php?post_type=srm_menu_item | 3.40 | 37.40 |
Menus /wp-admin/edit.php?post_type=srm_menu | 3.40 | 36.38 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Restaurant Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲305 | 13.60 ▼0.79 | 10.74 ▲8.94 | 45.33 ▼0.76 |
Dashboard /wp-admin | 2,241 ▲55 | 4.86 ▼1.04 | 109.43 ▲2.01 | 41.88 ▼0.52 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.06 ▲0.05 | 39.93 ▲4.37 | 37.35 ▲5.13 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 18.60 ▼4.56 | 624.50 ▲3.86 | 70.12 ▲14.02 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.21 ▲0.02 | 100.38 ▼1.45 | 41.27 ▼2.92 |
Menu Items /wp-admin/edit.php?post_type=srm_menu_item | 1,123 | 1.97 | 32.53 | 32.42 |
Menus /wp-admin/edit.php?post_type=srm_menu | 1,068 | 1.99 | 31.73 | 30.15 |
Settings /wp-admin/srm_setting.php | 26 | 0.44 | 0.12 | 12.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-restaurant-menu/includes/srm-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-restaurant-menu/includes/srm-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-restaurant-menu/includes/srm-menu-item-meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-restaurant-menu/includes/srm-cpts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-restaurant-menu/includes/srm-menu-meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-restaurant-menu/includes/srm-scripts.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-restaurant-menu/includes/srm-cpts-columns.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/srm_setting.php
- > Network (severe)
wp-admin/srm_setting.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The menu screen. screenshot-1.png), #2 (The menu item screen. screenshot-2.png)
simple-restaurant-menu/simple-restaurant-menu.php 92% from 13 tests
Analyzing the main PHP file in "Simple Restaurant Menu" version 1.2
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,149 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 385 | 103 | 555 |
JavaScript | 2 | 75 | 53 | 352 |
CSS | 3 | 53 | 7 | 242 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 24 | |
▷ Named functions | 24 | 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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |