Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼11.90ms] Passed 4 tests
Server-side resources used by Smart Menupad
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.76 ▼6.57 |
Dashboard /wp-admin | 3.48 ▲0.13 | 51.56 ▼13.90 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.89 ▲3.12 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 77.42 ▼27.26 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.70 ▲0.13 |
Smart Menu Pad /wp-admin/admin.php?page=smp-menu-list | 3.32 | 33.34 |
SMP Connect /wp-admin/admin.php?page=smp-connect | 3.34 | 33.22 |
SMP ShortCode /wp-admin/admin.php?page=smp-shortcode | 3.32 | 30.88 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_smp_quick_menu |
New WordPress options |
---|
smp_db_version |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Smart Menupad: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.56 ▲0.39 | 2.08 ▲0.21 | 45.62 ▲3.14 |
Dashboard /wp-admin | 2,217 ▲40 | 5.62 ▲0.06 | 90.29 ▼12.10 | 75.28 ▲30.60 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.02 ▲0.03 | 38.87 ▲0.92 | 34.20 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 22.85 ▼0.21 | 711.79 ▲106.79 | 60.51 ▼0.32 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.28 ▲0.05 | 99.66 ▼2.30 | 74.36 ▲31.50 |
Smart Menu Pad /wp-admin/admin.php?page=smp-menu-list | 879 | 2.17 | 31.92 | 56.32 |
SMP Connect /wp-admin/admin.php?page=smp-connect | 885 | 2.13 | 30.36 | 28.13 |
SMP ShortCode /wp-admin/admin.php?page=smp-shortcode | 876 | 2.14 | 28.08 | 30.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=smp-shortcode
- > Warning in wp-content/plugins/smart-menupad/includes/SMPShortcode.php+36
Invalid argument supplied for foreach()
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smart-menupad/includes/SMPInit.php
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-menupad/templates/admin/smp_connect.php:3
- > PHP Notice
Undefined variable: heading_color in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 6
- > PHP Notice
Undefined variable: layout_column in wp-content/plugins/smart-menupad/templates/front/view/smp_grid.php on line 4
- > PHP Notice
Trying to get property 'image_border' of non-object in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 15
- > PHP Notice
Undefined variable: button_text_hover_color in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 13
- > PHP Notice
Undefined variable: description_color in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 7
- > PHP Notice
Undefined variable: one_shortcode_data in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 26
- > PHP Notice
Undefined variable: button_bg_color in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 10
- > PHP Notice
Undefined variable: price_color in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 8
- > PHP Notice
Undefined variable: one_shortcode_data in wp-content/plugins/smart-menupad/templates/front/view/smp_list.php on line 46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: online menu ordering system, restaurant ordering, restaurant menu, online restaurant menu, online ordering system for restaurants...
smart-menupad/smart-menupad.php Passed 13 tests
The principal PHP file in "Smart Menupad" v. 1.1.0 is loaded by WordPress automatically on each request
13 characters long description:
SMART MENUPAD
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,845 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 131 | 93 | 1,174 |
CSS | 2 | 4 | 14 | 561 |
JavaScript | 2 | 15 | 6 | 110 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 57.58% |
▷ Protected methods | 12 | 36.36% |
▷ Private methods | 2 | 6.06% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 2.73MB with 1.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu-3.png | 477.62KB | 160.82KB | ▼ 66.33% |
assets/img/food-default-image.png | 19.77KB | 7.41KB | ▼ 62.53% |
assets/img/menu-1.png | 395.82KB | 148.44KB | ▼ 62.50% |
assets/img/icon.png | 12.45KB | 5.71KB | ▼ 54.08% |
assets/img/menu-4.png | 415.12KB | 148.68KB | ▼ 64.18% |