Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▼10.57ms] Passed 4 tests
This is a short check of server-side resources used by OpenMenu - The official plugin for OpenMenu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 41.88 ▲1.68 |
Dashboard /wp-admin | 3.78 ▲0.43 | 48.74 ▼8.48 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 44.05 ▼13.80 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 87.47 ▼21.66 |
Media Library /wp-admin/upload.php | 3.64 ▲0.40 | 39.05 ▲6.10 |
Add New Menu /wp-admin/post-new.php?post_type=openmenu | 3.83 | 50.48 |
OpenMenu /wp-admin/options-general.php?page=openmenu | 3.60 | 33.80 |
OpenMenu /wp-admin/edit.php?post_type=openmenu | 3.68 | 34.93 |
Cuisine Types /wp-admin/edit-tags.php?taxonomy=cuisine_type&post_type=openmenu | 3.63 | 34.28 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_om-restaurant-location |
widget_om-specials |
widget_om-filter |
widget_om-qrcode |
widget_om-menu |
widget_om-tagcloud |
db_upgraded |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for OpenMenu - The official plugin for OpenMenu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.35 ▲0.13 | 1.73 ▲0.09 | 44.02 ▲0.87 |
Dashboard /wp-admin | 2,219 ▲45 | 5.58 ▲0.01 | 90.30 ▲2.76 | 75.16 ▲32.23 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.03 ▲0.01 | 33.99 ▼6.30 | 33.22 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 18.66 ▼4.60 | 701.87 ▲62.05 | 55.74 ▼0.97 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.17 ▼0.00 | 99.17 ▲2.46 | 78.86 ▲32.97 |
Add New Menu /wp-admin/post-new.php?post_type=openmenu | 2,449 | 7.59 | 172.68 | 107.21 |
OpenMenu /wp-admin/options-general.php?page=openmenu | 1,009 | 2.17 | 23.10 | 28.70 |
OpenMenu /wp-admin/edit.php?post_type=openmenu | 1,120 | 1.93 | 31.69 | 29.31 |
Cuisine Types /wp-admin/edit-tags.php?taxonomy=cuisine_type&post_type=openmenu | 1,313 | 2.12 | 26.02 | 30.97 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 14 options in the database
- theysaidso_admin_options
- openmenu_options
- db_upgraded
- can_compress_scripts
- widget_om-qrcode
- widget_recent-posts
- widget_om-tagcloud
- widget_om-filter
- widget_om-restaurant-location
- widget_om-specials
- ...
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/open-menu/templates/default/single-openmenu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/open-menu/templates/default/openmenu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/open-menu/openmenu.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-menu/widgets.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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: Add images for these screenshots: #1 (OpenMenu Overview), #2 (Adding/Editing a Menu), #3 (OpenMenu Options), #4 (Sample Rendered Menu), #5 (Powerful Widgets), #6 (Deals and Coupon Widget / Shortcode)
open-menu/openmenu.php 85% from 13 tests
The entry point to "OpenMenu - The official plugin for OpenMenu" version 3.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-menu.php" instead of "openmenu.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 detected2,925 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 636 | 697 | 2,852 |
CSS | 2 | 24 | 18 | 73 |
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.38 |
Average class complexity | 34.45 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 7.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 72.41% |
▷ Protected methods | 7 | 12.07% |
▷ Private methods | 9 | 15.52% |
Functions | 70 | |
▷ Named functions | 63 | 90.00% |
▷ Anonymous functions | 7 | 10.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
18 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/openmenu-32.png | 1.72KB | 1.33KB | ▼ 22.82% |
templates/default/images/ico-32-restaurant.png | 1.38KB | 1.03KB | ▼ 25.28% |
templates/default/images/peppers-2.png | 0.83KB | 0.71KB | ▼ 14.52% |
templates/default/images/peppers-5.png | 0.84KB | 0.72KB | ▼ 14.75% |
templates/default/images/ico-24-deal.png | 4.20KB | 1.38KB | ▼ 67.04% |