Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.28ms] Passed 4 tests
An overview of server-side resources used by wMenu Digital Menu and Restaurant Ordering
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.42 ▼9.88 |
Dashboard /wp-admin | 3.35 ▲0.05 | 40.67 ▼7.54 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.48 ▼10.09 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 77.58 ▼17.62 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.18 ▲0.01 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wmenuwidget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wMenu Digital Menu and Restaurant Ordering
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.56 ▼0.82 | 1.67 ▼0.37 | 38.02 ▼10.83 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▲0.89 | 114.22 ▲12.72 | 42.68 ▲0.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.06 | 39.18 ▲1.89 | 35.48 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 23.25 ▲0.12 | 677.40 ▼11.84 | 51.16 ▼11.82 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.08 | 95.00 ▼10.38 | 42.13 ▼5.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_wmenuwidget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wmenu-digital-menu-and-restaurant-ordering/wMenu.php:433
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
wmenu-digital-menu-and-restaurant-ordering/wMenu.php 85% from 13 tests
The main PHP script in "wMenu Digital Menu and Restaurant Ordering" version 1.13 - 14-11-2016... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wmenu-digital-menu-and-restaurant-ordering.php" instead of "wMenu.php")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.13 - 14-11-2016...")
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 detected375 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 72 | 375 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.16MB with 0.88MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Transp.png | 0.90KB | 0.09KB | ▼ 89.70% |
img/iphonewhite1.png | 1,037.52KB | 66.15KB | ▼ 93.62% |
img/ExitTransp.png | 2.22KB | 0.83KB | ▼ 62.49% |
img/iphone6Png.png | 147.21KB | 62.43KB | ▼ 57.59% |