84% guto-toolkit

Code Review | Guto Toolkit for Elementor Addons

WordPress plugin Guto Toolkit for Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: guto-toolkit
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Nov 17, 2023
  • Number of updates: 31
  • Update frequency: every 33.1 days
  • Top authors: gutotheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.05MB] [CPU: ▲6.63ms] Passed 4 tests

A check of server-side resources used by Guto Toolkit for Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.50 ▲1.0344.62 ▲6.10
Dashboard /wp-admin4.36 ▲1.0652.79 ▲2.08
Posts /wp-admin/edit.php4.41 ▲1.0554.13 ▲9.21
Add New Post /wp-admin/post-new.php7.03 ▲1.1499.04 ▲9.69
Media Library /wp-admin/upload.php4.29 ▲1.0642.52 ▲9.14
Service Category /wp-admin/edit-tags.php?taxonomy=service_cat&post_type=services4.2838.08
Add New /wp-admin/post-new.php?post_type=projects6.9682.34
Services /wp-admin/edit.php?post_type=services4.3239.54
Project Category /wp-admin/edit-tags.php?taxonomy=projects_cat&post_type=projects4.2838.00
Projects /wp-admin/edit.php?post_type=projects4.3238.16
Add New /wp-admin/post-new.php?post_type=services4.4151.86

Server storage [IO: ▲14.92MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 579 new files
Database: no new tables, 15 new options
New WordPress options
widget_guto_subscribe_us
widget_recent-comments
widget_theysaidso_widget
widget_guto_nm_footer_info
widget_guto_contact_info
can_compress_scripts
widget_guto_about_info
widget_guto_contact
theysaidso_admin_options
widget_guto_footer_info
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Guto Toolkit for Elementor Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,073 ▲31114.13 ▼0.6123.82 ▲21.7853.00 ▲9.01
Dashboard /wp-admin2,276 ▲1065.61 ▼0.0191.36 ▼9.7340.38 ▼2.11
Posts /wp-admin/edit.php2,181 ▲811.99 ▲0.0540.42 ▲3.2836.73 ▼1.64
Add New Post /wp-admin/post-new.php1,660 ▲12523.41 ▼1.73655.98 ▲15.6937.57 ▼25.86
Media Library /wp-admin/upload.php1,475 ▲724.20 ▼0.10100.23 ▼2.3743.23 ▼1.18
Service Category /wp-admin/edit-tags.php?taxonomy=service_cat&post_type=services1,3492.1427.8730.88
Add New /wp-admin/post-new.php?post_type=projects6,31420.18841.7729.87
Services /wp-admin/edit.php?post_type=services1,1501.9033.6928.49
Project Category /wp-admin/edit-tags.php?taxonomy=projects_cat&post_type=projects1,3522.1428.8729.81
Projects /wp-admin/edit.php?post_type=projects1,1501.9133.0830.92
Add New /wp-admin/post-new.php?post_type=services2,3747.64164.4267.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 15 options in the database
    • can_compress_scripts
    • widget_guto_contact
    • widget_guto_posts_subscribe_us
    • widget_recent-comments
    • widget_guto_subscribe_us
    • widget_guto_about_info
    • widget_guto_footer_info
    • widget_guto_posts_thumbs
    • widget_guto_socials_link
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(GUTO_ACC_PATHincludes/widgets/guto-toolkit-posts-thumbs.php): failed to open stream: No such file or directory in wp-content/plugins/guto-toolkit/includes/guto-toolkit-widgets.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/guto-toolkit/includes/widgets/guto-toolkit-phone-advanced.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guto-toolkit/includes/class-guto-toolkit-options.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/guto-toolkit/includes/el-widgets/services.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/guto-toolkit/includes/el-widgets/coworking-space/cs-team.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/guto-toolkit/includes/widgets/guto-toolkit-footer-info.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/guto-toolkit/includes/el-widgets/life-coaching/lc-single-event.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/guto-toolkit/includes/el-widgets/yoga/yoga-events.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/guto-toolkit/config.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/guto-toolkit/includes/el-widgets/coworking-space/cs-services.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: elementor widget, elements, addons, elementor, elementor addon

guto-toolkit/guto-toolkit.php Passed 13 tests

The principal PHP file in "Guto Toolkit for Elementor Addons" v. 2.1.2 is loaded by WordPress automatically on each request
110 characters long description:
Guto Toolkit is an Elementor addon WordPress plugin that allows you to create 65+ unique layouts on your site.

Code Analysis 97% from 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 plugin175,754 lines of code in 472 files:
LanguageFilesBlank linesComment linesLines of code
CSS1798,1862,27099,236
PHP2587,9872,31453,756
JavaScript311,13168311,501
Sass262319,705
SVG2001,556

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.07
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes243
▷ Abstract classes00.00%
▷ Concrete classes243100.00%
▷ Final classes20.82%
Methods1,452
▷ Static methods40.28%
▷ Public methods97867.36%
▷ Protected methods46932.30%
▷ Private methods50.34%
Functions122
▷ Named functions122100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants960.00%
▷ Class constants640.00%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 1.34MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/insurance/partner1.png9.60KB2.64KB▼ 72.53%
public/img/yoga/certification-2.png1.06KB1.08KB0.00%
public/img/favicon.png2.89KB1.44KB▼ 50.34%
public/img/shape9.png15.38KB7.88KB▼ 48.76%
public/img/yoga/client-img-1.png3.58KB3.62KB0.00%