57% uix-shortcodes

Code Review | Uix Shortcodes - Compatible with Gutenberg

WordPress plugin Uix Shortcodes - Compatible with Gutenberg scored 57% from 54 tests.

About plugin

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

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active / 38,260 total downloads

Benchmarks

Plugin footprint 65% 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.25MB] [CPU: ▼23.42ms] Passed 4 tests

A check of server-side resources used by Uix Shortcodes - Compatible with Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6445.98 ▲9.74
Dashboard /wp-admin4.30 ▲1.0032.95 ▼13.39
Posts /wp-admin/edit.php4.30 ▲0.9533.70 ▼6.95
Add New Post /wp-admin/post-new.php4.30 ▼1.5832.07 ▼69.60
Media Library /wp-admin/upload.php4.30 ▲1.0733.50 ▼3.73
How to use? /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=usage4.3131.73
Custom CSS /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=custom-css4.3141.82
Settings /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=general-settings4.3132.67
Helper /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page4.3033.85

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 419 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Uix Shortcodes - Compatible with Gutenberg
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲22413.72 ▼0.6613.24 ▲11.5345.92 ▲7.74
Dashboard /wp-admin2,241 ▲525.90 ▲0.92111.19 ▼3.9044.77 ▲6.39
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0433.41 ▼5.5436.75 ▲2.23
Add New Post /wp-admin/post-new.php8,409 ▲6,86721.25 ▲2.881,002.13 ▲390.7540.44 ▼6.61
Media Library /wp-admin/upload.php1,420 ▲294.22 ▲0.0196.90 ▲3.2843.40 ▲3.03
How to use? /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=usage3,25010.72321.25124.72
Custom CSS /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=custom-css3,0934.3059.0359.20
Settings /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=general-settings3,0824.1959.1172.57
Helper /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page3,1264.1662.9526.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+558
    mkdir(): No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page
    • > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/about.php
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/documentation.php
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/general-settings.php
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/credits.php
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/usage.php
    • > /wp-content/plugins/uix-shortcodes/includes/uixscform/functions/google-map.php
    • > /wp-content/plugins/uix-shortcodes/includes/uixscform/flaticon/font-flaticon-custom.php
    • > /wp-content/plugins/uix-shortcodes/includes/uixscform/fontawesome/font-awesome-custom.php
    • > /wp-content/plugins/uix-shortcodes/helper/tabs/custom-css.php
    • > /wp-content/plugins/uix-shortcodes/includes/uixscform/fontawesome/font-awesome-social.php
  • 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Custom_Metaboxes' not found in wp-content/plugins/uix-shortcodes/includes/admin/uix-custom-metaboxes/controls/date.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Custom_Metaboxes' not found in wp-content/plugins/uix-shortcodes/includes/admin/uix-custom-metaboxes/controls/radio.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'UixSCFormCore' not found in wp-content/plugins/uix-shortcodes/includes/uixscform/controls/multiselect.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Custom_Metaboxes' not found in wp-content/plugins/uix-shortcodes/includes/admin/uix-custom-metaboxes/controls/url.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'UixSCFormCore' not found in wp-content/plugins/uix-shortcodes/includes/uixscform/controls/toggle.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'UixSCFormCore' not found in wp-content/plugins/uix-shortcodes/includes/uixscform/controls/checkbox.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Custom_Metaboxes' not found in wp-content/plugins/uix-shortcodes/includes/admin/uix-custom-metaboxes/controls/multi-checkbox.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'UixSCFormCore' not found in wp-content/plugins/uix-shortcodes/includes/uixscform/controls/slider.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'UixSCFormCore' not found in wp-content/plugins/uix-shortcodes/includes/uixscform/controls/color.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Uix_Custom_Metaboxes' not found in wp-content/plugins/uix-shortcodes/includes/admin/uix-custom-metaboxes/controls/select.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=usage
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=uix-shortcodes-custom-submenu-page&tab=usage 180 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gutenberg, short code, shortcode, shortcodes, blocks

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

The main PHP script in "Uix Shortcodes - Compatible with Gutenberg" version 1.9.9 is automatically included on every request by WordPress
137 characters long description:
Uix Shortcodes brings an amazing set of beautiful and useful elements to your site that lets you do nifty things with very little effort.

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
There were no executable files found in this plugin76,143 lines of code in 227 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript834,5665,03626,135
CSS436,7171,59221,344
SVG40313,905
PHP945,5003,49013,083
PO File14718091,137
Markdown12260536
HTML1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity30.07
▷ Minimum class complexity3.00
▷ Maximum class complexity164.00
Average method complexity9.19
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods149
▷ Static methods13791.95%
▷ Public methods14496.64%
▷ Protected methods00.00%
▷ Private methods53.36%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
55 PNG files occupy 0.48MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/uixscform/images/color-bg-3.png1.01KB0.22KB▼ 78.10%
includes/uixscform/images/info/notice.png1.11KB0.25KB▼ 77.24%
includes/uixscform/images/column/average-4.png20.23KB0.31KB▼ 98.46%
includes/uixscform/images/map/map-style-6.png7.04KB7.06KB0.00%
assets/images/map/map-location.png1.56KB1.56KB0.00%