78% unlimited-theme-addons

Code Review | Unlimited Theme Addon For Elementor and WooCommerce

WordPress plugin Unlimited Theme Addon For Elementor and WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: unlimited-theme-a...
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2020
  • Latest release: Jun 10, 2023
  • Number of updates: 86
  • Update frequency: every 11.2 days
  • Top authors: codepopular (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /10,636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.42ms] Passed 4 tests

A check of server-side resources used by Unlimited Theme Addon For Elementor and WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.75 ▲1.34
Dashboard /wp-admin3.99 ▲0.691,434.60 ▲1,388.69
Posts /wp-admin/edit.php3.39 ▲0.0342.91 ▼2.99
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.87 ▼17.48
Media Library /wp-admin/upload.php3.26 ▲0.0338.09 ▲1.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 432 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Unlimited Theme Addon For Elementor and WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲20013.32 ▼1.081.88 ▼0.2532.22 ▼12.81
Dashboard /wp-admin2,315 ▲1264.88 ▼0.0399.37 ▼17.0843.43 ▼3.68
Posts /wp-admin/edit.php2,110 ▲242.02 ▲0.0133.14 ▼3.6333.40 ▲3.29
Add New Post /wp-admin/post-new.php1,552 ▲1923.22 ▲0.03659.86 ▼35.3152.85 ▲2.18
Media Library /wp-admin/upload.php1,409 ▲184.21 ▲0.03104.69 ▲3.0145.38 ▲2.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/blockquote/template/style-2.php
    • > /wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/blockquote/template/style-1.php
  • 75× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/unlimited-theme-addons/admin/template/premium.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/client-logo/template/style-4.php:3
    • > PHP Notice
      Undefined variable: icon in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/counterup/template/style2.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/client-logo/template/style-5.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/infobox/template/style-5.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/client-logo/template/style-2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/team/template/style-09.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-theme-addons/inc/codepopular-promotion.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/team/template/style-11.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/unlimited-theme-addons/inc/elementor/widgets/team/template/style-default.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

unlimited-theme-addons/unlimited-theme-addons.php 92% from 13 tests

The main file in "Unlimited Theme Addon For Elementor and WooCommerce" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected67,460 lines of code in 337 files:
LanguageFilesBlank linesComment linesLines of code
PHP2129,37518,37942,230
CSS861,33246213,692
Sass1888105,069
JavaScript112401682,900
SVG2102,684
Markdown32220623
JSON300135
XML161195
YAML16032

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity58.65
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces4
Interfaces0
Traits3
Classes76
▷ Abstract classes22.63%
▷ Concrete classes7497.37%
▷ Final classes00.00%
Methods1,463
▷ Static methods19613.40%
▷ Public methods1,04071.09%
▷ Protected methods684.65%
▷ Private methods35524.27%
Functions102
▷ Named functions10098.04%
▷ Anonymous functions21.96%
Constants128
▷ Global constants10380.47%
▷ Class constants2519.53%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/unlimited-theme-addons.png18.65KB9.00KB▼ 51.71%