Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼9.36ms] Passed 4 tests
A check of server-side resources used by Shop Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 37.13 ▼3.10 |
Dashboard /wp-admin | 3.65 ▲0.31 | 46.50 ▼15.25 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.61 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 84.94 ▼22.43 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.00 ▲6.46 |
商品カテゴリ /wp-admin/edit-tags.php?taxonomy=menu_type&post_type=shop_menu | 3.51 | 33.95 |
設定 /wp-admin/edit.php?post_type=shop_menu&page=shop-menu/shop-menu.php | 3.48 | 31.62 |
商品一覧 /wp-admin/edit.php?post_type=shop_menu | 3.56 | 36.40 |
Add New /wp-admin/post-new.php?post_type=shop_menu | 3.73 | 48.75 |
Server storage [IO: ▲0.10MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
shop_memu_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Shop Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.58 ▼1.10 | 8.34 ▲6.49 | 41.03 ▼2.33 |
Dashboard /wp-admin | 2,235 ▲47 | 4.86 ▼1.03 | 106.53 ▼7.43 | 46.98 ▼4.95 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.03 ▲0.06 | 39.47 ▼0.11 | 40.71 ▲10.37 |
Add New Post /wp-admin/post-new.php | 1,572 ▲39 | 23.08 ▼0.28 | 674.14 ▲6.63 | 58.29 ▲8.16 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.22 ▼0.01 | 99.49 ▲3.04 | 47.53 ▲6.19 |
商品カテゴリ /wp-admin/edit-tags.php?taxonomy=menu_type&post_type=shop_menu | 1,274 | 2.14 | 28.97 | 47.76 |
設定 /wp-admin/edit.php?post_type=shop_menu&page=shop-menu/shop-menu.php | 918 | 2.20 | 22.74 | 67.60 |
商品一覧 /wp-admin/edit.php?post_type=shop_menu | 1,105 | 1.94 | 30.73 | 43.01 |
Add New /wp-admin/post-new.php?post_type=shop_menu | 2,401 | 7.78 | 176.03 | 81.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- shop_memu_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shop-menu/shop-menu-view.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: mb in wp-content/plugins/shop-menu/meta-view.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/shop-menu/meta-view.php:5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/shop-menu/shop-menu-view.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SM' not found in wp-content/plugins/shop-menu/admin-view.php:19
- > PHP Notice
Trying to get property 'items' of non-object in wp-content/plugins/shop-menu/shop-menu-view.php on line 3
- > PHP Notice
Undefined variable: info in wp-content/plugins/shop-menu/shop-menu-view.php on line 16
- > PHP Notice
Undefined variable: info in wp-content/plugins/shop-menu/shop-menu-view.php on line 3
- > PHP Notice
Trying to get property 'has_next' of non-object in wp-content/plugins/shop-menu/shop-menu-view.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/shop-menu/shop-menu.php:61
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI ("")
shop-menu/shop-menu.php Passed 13 tests
The entry point to "Shop Menu" version 1.5.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
商品一覧、メニュー一覧を作成するプラグインです
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,999 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 485 | 844 | 1,867 |
CSS | 1 | 3 | 0 | 73 |
JavaScript | 1 | 0 | 0 | 46 |
Markdown | 2 | 4 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 42.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 242.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 13 | 12.04% |
▷ Public methods | 99 | 91.67% |
▷ Protected methods | 6 | 5.56% |
▷ Private methods | 3 | 2.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 18 | 81.82% |
▷ Class constants | 4 | 18.18% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/noimage.png | 1.62KB | 0.70KB | ▼ 56.70% |