10% shopcode-menu-horizontal-woocommerce

Code Review | ShopCode Menu Horizontal WooCommerce

WordPress plugin ShopCode Menu Horizontal WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: shopcode-menu-hor...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2018
  • Latest release: Dec 2, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shopcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.375.49 ▼33.79
Dashboard /wp-admin2.12 ▼1.235.50 ▼55.32
Posts /wp-admin/edit.php2.12 ▼1.245.64 ▼42.93
Add New Post /wp-admin/post-new.php2.12 ▼3.775.41 ▼102.72
Media Library /wp-admin/upload.php2.12 ▼1.115.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.74 ▲0.091.78 ▲0.0047.05 ▲3.34
Dashboard /wp-admin2,206 ▲155.85 ▲0.95106.14 ▼11.2942.67 ▼0.66
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0334.94 ▼1.9033.77 ▲0.70
Add New Post /wp-admin/post-new.php1,542 ▲923.44 ▲0.40635.29 ▲10.8859.13 ▲7.40
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.04100.13 ▲1.3344.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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP17422156
CSS14038

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 code0.36
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity8.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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