78% ux-flat

Code Review | UX Flat

WordPress plugin UX Flat scored78%from 54 tests.

About plugin

  • Plugin page: ux-flat
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 25
  • Update frequency: every 16.5 days
  • Top authors: wpvncom (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /5,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼9.08ms] Passed 4 tests

An overview of server-side resources used by UX Flat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.72 ▲0.07
Dashboard /wp-admin3.50 ▲0.1547.41 ▼15.41
Posts /wp-admin/edit.php3.61 ▲0.2650.29 ▲5.27
Add New Post /wp-admin/post-new.php6.08 ▲0.1982.73 ▼25.17
Media Library /wp-admin/upload.php3.42 ▲0.1938.49 ▲4.20

Server storage [IO: ▲0.93MB] [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: 126 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

UX Flat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4614.24 ▲0.341.79 ▼0.0244.39 ▲1.05
Dashboard /wp-admin2,198 ▲185.58 ▼0.1289.29 ▼12.3439.96 ▼5.60
Posts /wp-admin/edit.php2,103 ▼01.95 ▲0.0135.62 ▼4.8435.45 ▲0.82
Add New Post /wp-admin/post-new.php1,529 ▲323.00 ▼0.28628.60 ▼36.8059.28 ▲0.95
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0598.55 ▼5.9343.80 ▼0.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ux-flat/inc/extensions/flatsome-infinite-scrollpost/templates/spinner.php
    • > /wp-content/plugins/ux-flat/inc/shortcodes/commons/dashed.php
  • 72× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/faq.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/ux_table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/featured_box.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flat/inc/shortcodes/module.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flat/inc/builder/shortcodes/blog_posts.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flat/inc/shortcodes/faq.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flat/inc/builder/shortcodes/post_type.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ux-flat/inc/extensions/flatsome-infinite-scrollpost/templates/button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flat/inc/builder/shortcodes/lightbox.php:3
    • > PHP Notice
      Undefined variable: default_text_align in wp-content/plugins/ux-flat/inc/builder/shortcodes/commons/box-styles.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: ux flatsome, element flatsome, flatux, uxf, ux flat...

ux-flat/uxflat.php 85% from 13 tests

The primary PHP file in "UX Flat" version 3.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ux-flat.php" instead of "uxflat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin16,461 lines of code in 117 files:
LanguageFilesBlank linesComment linesLines of code
PHP7998856311,535
CSS5354533,835
HTML15280465
SVG12596440
JavaScript51812127
PO File1161659

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity4.25
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions88
▷ Named functions7787.50%
▷ Anonymous functions1112.50%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected