89% sobex-tech

Code Review | Sobex Tech — create professional menu (categories) , sidebar & header widget filter for WooCommerce

WordPress plugin Sobex Tech — create professional menu (categories) , sidebar & header widget filter for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: sobex-tech
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2023
  • Latest release: Jul 26, 2023
  • Number of updates: 25
  • Update frequency: every 2.1 days
  • Top authors: sobextech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.66MB] [CPU: ▲2.59ms] Passed 4 tests

A check of server-side resources used by Sobex Tech — create professional menu (categories) , sidebar & header widget filter for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0046.51 ▲4.20
Dashboard /wp-admin5.18 ▲1.8857.12 ▲4.26
Posts /wp-admin/edit.php5.23 ▲1.8860.41 ▲8.80
Add New Post /wp-admin/post-new.php7.79 ▲1.9095.91 ▼6.90
Media Library /wp-admin/upload.php5.11 ▲1.8848.28 ▲10.68
Style Settings /wp-admin/admin.php?page=sobex-tech-style5.0852.23
Settings /wp-admin/admin.php?page=sobex-tech5.0841.26
Widget Settings /wp-admin/admin.php?page=sobex-tech-widget5.0845.38

Server storage [IO: ▲4.47MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 132 new files
Database: 2 new tables, 9 new options
New tables
wp_sobex_tech_widget_sidebar
wp_sobex_tech_widget_menu
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
stsearch_style_opts
widget_recent-posts
widget_sobextech_widget
stsearch_opts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Sobex Tech — create professional menu (categories) , sidebar & header widget filter for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲18113.88 ▼0.4110.20 ▲7.9142.73 ▼0.53
Dashboard /wp-admin2,229 ▲525.60 ▼0.0783.42 ▼8.2487.56 ▲44.02
Posts /wp-admin/edit.php2,131 ▲312.02 ▼0.0435.84 ▼5.8435.66 ▲0.27
Add New Post /wp-admin/post-new.php1,560 ▲2723.21 ▼0.16695.27 ▲21.3856.28 ▼6.08
Media Library /wp-admin/upload.php1,434 ▲344.23 ▼0.0296.83 ▼5.1780.38 ▲35.94
Style Settings /wp-admin/admin.php?page=sobex-tech-style6,1594.89207.81127.09
Settings /wp-admin/admin.php?page=sobex-tech2,5032.2650.6597.22
Widget Settings /wp-admin/admin.php?page=sobex-tech-widget1,1032.2940.0161.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_sobextech_widget
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Requires php: Version format is invalid
The official readme.txt is a good inspiration

sobex-tech/sobex-tech.php Passed 13 tests

The main PHP script in "Sobex Tech — create professional menu (categories) , sidebar & header widget filter for WooCommerce" version 1.0.8 is automatically included on every request by WordPress
108 characters long description:
SOBEX TECH has multiple professional plugins to achieve your Woocommerce & WordPress with special abilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin27,766 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
CSS1599869412,506
PHP191,5721,2689,603
PO File31,4191,8762,994
JavaScript133502131,465
SVG20041,198

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity41.00
▷ Minimum class complexity5.00
▷ Maximum class complexity141.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods918.00%
▷ Public methods4794.00%
▷ Protected methods24.00%
▷ Private methods12.00%
Functions199
▷ Named functions19296.48%
▷ Anonymous functions73.52%
Constants34
▷ Global constants2573.53%
▷ Class constants926.47%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.99MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/admin_menu/arrow-5.png3.28KB1.92KB▼ 41.51%
admin/assets/images/admin_menu/arrow-2.png1.93KB1.24KB▼ 35.88%
views/assets/images/clear_all.png3.28KB1.88KB▼ 42.77%
admin/assets/images/admin_gif/s-icon-128.png2.48KB0.88KB▼ 64.62%
admin/assets/images/admin_pages/web_ogo_sobex_tech_with3.png15.10KB7.03KB▼ 53.46%