Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/shopcode-menu-horizontal-woocommerce/shopcode-menu-horizontal-woocommerce.php+251
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼58.69ms] Passed 4 tests
This is a short check of server-side resources used by ShopCode Menu Horizontal WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 5.49 ▼33.79 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.50 ▼55.32 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.64 ▼42.93 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.41 ▼102.72 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.27 ▼27.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_shopcode-menu-horizontal-woocommerce |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ShopCode Menu Horizontal WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.74 ▲0.09 | 1.78 ▲0.00 | 47.05 ▲3.34 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.95 | 106.14 ▼11.29 | 42.67 ▼0.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 34.94 ▼1.90 | 33.77 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.44 ▲0.40 | 635.29 ▲10.88 | 59.13 ▲7.40 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.27 ▲0.04 | 100.13 ▲1.33 | 44.15 ▲0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/shopcode-menu-horizontal-woocommerce/shopcode-menu-horizontal-woocommerce.php+251
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_shopcode-menu-horizontal-woocommerce
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Stable tag: No string
shopcode-menu-horizontal-woocommerce/shopcode-menu-horizontal-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "ShopCode Menu Horizontal WooCommerce" version 1.0
95 characters long description:
Show menu Horizontal WooCommerce with fillter categories and select menu form nav menus setting
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
Everything looks great! No dangerous files found in this plugin194 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 22 | 156 |
CSS | 1 | 4 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 1 | |
▷ Named functions | 1 | 100.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 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
PNG images were not found in this plugin