93% ux-flatsome-addons

Code Review | UX Flatsome Addons

WordPress plugin UX Flatsome Addons scored 93% from 54 tests.

About plugin

  • Plugin page: ux-flatsome-addons
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-5.7
  • WordPress version: 5.8.1
  • First release: Jun 5, 2021
  • Latest release: Jun 5, 2021
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: uxaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 533 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.03ms] Passed 4 tests

A check of server-side resources used by UX Flatsome Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0134.59 ▼0.29
Dashboard /wp-admin3.06 ▲0.0144.05 ▼0.91
Posts /wp-admin/edit.php3.12 ▲0.0142.82 ▼1.36
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.50 ▼573.97
Media Library /wp-admin/upload.php3.01 ▲0.0131.90 ▼7.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

UX Flatsome Addons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲12415.95 ▼0.0112.38 ▲3.5546.39 ▼2.30
Dashboard /wp-admin2,992 ▲555.97 ▼0.13133.44 ▼6.55107.68 ▼9.32
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0064.02 ▲2.2387.42 ▲4.89
Add New Post /wp-admin/post-new.php3,689 ▲2,01315.04 ▼3.91431.24 ▲55.56109.63 ▼2.97
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.01151.76 ▲8.99120.85 ▲1.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: repeater_columns in wp-content/plugins/ux-flatsome-addons/builder/commons/repeater-options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flatsome-addons/builder/commons/repeater-custom-posts.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flatsome-addons/shortcodes/uxfsa-category-post.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_ux_builder_shortcode() in wp-content/plugins/ux-flatsome-addons/builder/uxfsa-slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ux-flatsome-addons/builder/values/color-helpers.php:14
    • > PHP Notice
      Undefined variable: repeater_col_spacing in wp-content/plugins/ux-flatsome-addons/builder/commons/title-options.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flatsome-addons/builder/commons/repeater-school.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ux-flatsome-addons/builder/commons/position.php:5
    • > PHP Notice
      Undefined variable: repeater_type in wp-content/plugins/ux-flatsome-addons/builder/commons/repeater-options.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ux-flatsome-addons/shortcodes/uxfsa-image-compare.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 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
2 plugin tags: uxaddons, flatsome addons

ux-flatsome-addons/ux_flatsome_addons.php 77% from 13 tests

This is the main PHP file of "UX Flatsome Addons" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ux-flatsome-addons.php" instead of "ux_flatsome_addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,134 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP55238673,031
JavaScript214582527
HTML21300375
CSS1291201

PHP code Passed 2 tests

An overview of 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.37
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png137.14KB75.94KB▼ 44.63%