57% uix-products

Code Review | Uix Products

WordPress plugin Uix Products scored57%from 54 tests.

About plugin

  • Plugin page: uix-products
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Nov 13, 2022
  • Number of updates: 232
  • Update frequency: every 9.7 days
  • Top authors: uiuxlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,140 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.75MB] [CPU: ▼37.34ms] Passed 4 tests

Server-side resources used by Uix Products
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.95 ▲3.28
Dashboard /wp-admin3.21 ▼0.1430.07 ▼35.02
Posts /wp-admin/edit.php3.21 ▼0.1531.56 ▼23.92
Add New Post /wp-admin/post-new.php3.21 ▼2.6831.03 ▼81.56
Media Library /wp-admin/upload.php3.21 ▼0.0231.19 ▼8.87
Template Files /wp-admin/admin.php?page=uix-products-helper&tab=temp3.2131.06
How to use? /wp-admin/admin.php?page=uix-products-helper&tab=usage3.2130.37
About /wp-admin/edit.php?post_type=uix_products&page=uix-products-helper3.2136.95
Custom CSS /wp-admin/admin.php?page=uix-products-helper&tab=custom-css3.2127.49
For Theme Developer /wp-admin/admin.php?page=uix-products-helper&tab=for-developer3.2131.83
Add New Item /wp-admin/post-new.php?post_type=uix_products3.2130.28
Categories /wp-admin/edit-tags.php?taxonomy=uix_products_category&post_type=uix_products3.2129.71
Settings /wp-admin/admin.php?page=uix-products-helper&tab=general-settings3.2130.43
Uix Products /wp-admin/edit.php?post_type=uix_products3.2127.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 177 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_uix_products_recentposts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Uix Products
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲22813.85 ▼0.089.30 ▲6.8844.23 ▼0.35
Dashboard /wp-admin2,279 ▲735.84 ▼0.01102.32 ▼3.8742.08 ▼2.64
Posts /wp-admin/edit.php2,155 ▲552.02 ▲0.0237.05 ▲1.7933.37 ▼2.01
Add New Post /wp-admin/post-new.php1,599 ▲5923.41 ▲0.36673.67 ▲1.4137.68 ▼12.23
Media Library /wp-admin/upload.php1,458 ▲584.16 ▼0.16111.64 ▼0.1152.64 ▲8.63
Template Files /wp-admin/admin.php?page=uix-products-helper&tab=temp9622.1035.4732.44
How to use? /wp-admin/admin.php?page=uix-products-helper&tab=usage1,6549.37278.07120.12
About /wp-admin/edit.php?post_type=uix_products&page=uix-products-helper9922.0932.8838.55
Custom CSS /wp-admin/admin.php?page=uix-products-helper&tab=custom-css1,0152.2331.1631.98
For Theme Developer /wp-admin/admin.php?page=uix-products-helper&tab=for-developer9612.1033.2832.56
Add New Item /wp-admin/post-new.php?post_type=uix_products3,4388.80489.01172.27
Categories /wp-admin/edit-tags.php?taxonomy=uix_products_category&post_type=uix_products1,3622.3228.2433.49
Settings /wp-admin/admin.php?page=uix-products-helper&tab=general-settings1,1212.1132.7127.28
Uix Products /wp-admin/edit.php?post_type=uix_products1,2632.1332.8934.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
    mkdir(): No such file or directory
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_uix_products_recentposts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 34 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=uix_products
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
    mkdir(): No such file or directory

SRP 0% from 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
The following issues need your attention
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/uix-products/helper/tabs/for-developer.php
    • > /wp-content/plugins/uix-products/live-demo/index.php
    • > /wp-content/plugins/uix-products/helper/tabs/credits.php
    • > /wp-content/plugins/uix-products/helper/tabs/custom-css.php
    • > /wp-content/plugins/uix-products/helper/tabs/usage.php
    • > /wp-content/plugins/uix-products/helper/tabs/general-settings.php
    • > /wp-content/plugins/uix-products/helper/tabs/about.php
    • > /wp-content/plugins/uix-products/live-demo/themes-list.php
    • > /wp-content/plugins/uix-products/helper/tabs/temp.php
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/radio.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/checkbox.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/uix-products/includes/admin/options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uix-products/helper/settings.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uix-products/includes/admin/post-type-init.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/image.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/textarea.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/number.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/multi-content.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Products_Custom_Metaboxes' not found in wp-content/plugins/uix-products/includes/admin/uix-custom-metaboxes/controls/select.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=uix-products-helper&tab=usage
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=uix-products-helper&tab=usage 177 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

uix-products/uix-products.php Passed 13 tests

The main PHP file in "Uix Products" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Readily organize & present your artworks, themes, plugins with Uix Products template files. Convenient for theme customization.

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
Success! There were no dangerous files found in this plugin40,599 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript822,0243,50021,708
CSS1778836212,283
PHP382,0858924,453
SVG200943
PO File1236274676
Markdown12260536

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity24.45
▷ Minimum class complexity5.00
▷ Maximum class complexity111.00
Average method complexity6.06
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods102
▷ Static methods9593.14%
▷ Public methods102100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/add-ons/prettyPhoto/prettyPhoto/jquery-prettyPhoto-btnPrevious.png0.27KB0.27KB0.00%
assets/add-ons/prettyPhoto/prettyPhoto/jquery-prettyPhoto-btnNext.png0.27KB0.27KB0.36%
assets/add-ons/prettyPhoto/prettyPhoto/jquery-prettyPhoto-sprite.png2.27KB0.83KB▼ 63.28%
assets/add-ons/prettyPhoto/prettyPhoto/jquery-prettyPhoto-contentPattern.png0.94KB0.12KB▼ 87.78%
assets/images/featured-image.png1.34KB0.64KB▼ 52.48%