72% qi-addons-for-elementor

Code Review | Qi Addons For Elementor

WordPress plugin Qi Addons For Elementor scored72%from 54 tests.

About plugin

  • Plugin page: qi-addons-for-ele...
  • Plugin version: 1.6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: Nov 24, 2023
  • Number of updates: 72
  • Update frequency: every 13.3 days
  • Top authors: qodeinteractive (100%)

Code review

54 tests

User reviews

137 reviews

Install metrics

100,000+ active /1,359,593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Qi Addons For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.44 ▼5.00
Dashboard /wp-admin3.31 ▲0.0045.01 ▼4.36
Posts /wp-admin/edit.php3.36 ▲0.0044.10 ▼4.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.52 ▲0.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▲1.57
Welcome Page /wp-admin/admin.php?page=qi_addons_for_elementor_welcome3.0023.69
Widgets /wp-admin/admin.php?page=qi_addons_for_elementor_widgets3.0024.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,012 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
qi_addons_for_elementor_install_date
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Qi Addons For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,115 ▲35314.35 ▲0.092.03 ▲0.0236.01 ▼8.12
Dashboard /wp-admin2,189 ▲125.64 ▲0.0291.33 ▼7.7740.72 ▼0.48
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0438.69 ▼0.2333.47 ▼1.26
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.31605.87 ▼6.2447.35 ▼2.51
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0598.57 ▲3.8542.14 ▲1.72
Welcome Page /wp-admin/admin.php?page=qi_addons_for_elementor_welcome280.410.133.88
Widgets /wp-admin/admin.php?page=qi_addons_for_elementor_widgets280.410.094.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • qi_addons_for_elementor_install_date
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/counter/variations/simple/templates/parts/digit.php
    • > /wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/call-to-action/templates/parts/content.php
    • > /wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/item-showcase/templates/parts/icon.php
    • > /wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/timeline/templates/parts/image.php
    • > /wp-content/plugins/qi-addons-for-elementor/inc/content/templates/swiper-pag.php
    • > /wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/how-to/templates/step.php
  • 1043× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant QI_ADDONS_FOR_ELEMENTOR_INC_PATH - assumed 'QI_ADDONS_FOR_ELEMENTOR_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qi-addons-for-elementor/inc/blog/shortcodes/blog-list/include.php on line 3
    • > PHP Warning
      include_once(QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH/process/variations/horizontal/horizontal.php): failed to open stream: No such file or directory in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/process/variations/horizontal/include.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'QiAddonsForElementor_Elementor_Widget_Base' not found in wp-content/plugins/qi-addons-for-elementor/inc/blog/shortcodes/blog-list/class-qiaddonsforelementor-blog-list-shortcode-elementor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function qi_addons_for_elementor_framework_class_attribute() in wp-content/plugins/qi-addons-for-elementor/inc/plugins/woocommerce/shortcodes/product-list/templates/content.php:1
    • > PHP Warning
      include_once(): Failed opening 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH/before-after/class-qiaddonsforelementor-before-after-shortcode.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/before-after/include.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH/accordion/class-qiaddonsforelementor-accordion-shortcode.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/accordion/include.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/clients-slider/class-qiaddonsforelementor-clients-slider-shortcode.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/image-slider/templates/parts/image.php:1
    • > PHP Warning
      include_once(): Failed opening 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH/info-cards/variations/top/helper.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/info-cards/variations/top/include.php on line 3
    • > PHP Warning
      Use of undefined constant QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH - assumed 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qi-addons-for-elementor/inc/shortcodes/progress-bar-vertical/include.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=qi_addons_for_elementor_welcome
    • > Network (severe)
    wp-admin/admin.php?page=qi_addons_for_elementor_welcome - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=qi_addons_for_elementor_widgets
    • > Network (severe)
    wp-admin/admin.php?page=qi_addons_for_elementor_widgets - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

qi-addons-for-elementor/class-qiaddonsforelementor.php 85% from 13 tests

The main PHP script in "Qi Addons For Elementor" version 1.6.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("qi-addons-for-elementor.php" instead of "class-qiaddonsforelementor.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected65,622 lines of code in 815 files:
LanguageFilesBlank linesComment linesLines of code
PHP7134,7482,58346,186
CSS792,6732,62813,780
JavaScript189473535,068
XML100548
SVG40040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.10
▷ Minimum class complexity1.00
▷ Maximum class complexity203.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes146
▷ Abstract classes64.11%
▷ Concrete classes14095.89%
▷ Final classes00.00%
Methods702
▷ Static methods304.27%
▷ Public methods57181.34%
▷ Protected methods20.28%
▷ Private methods12918.38%
Functions357
▷ Named functions35699.72%
▷ Anonymous functions10.28%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.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
130 PNG files occupy 0.63MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/admin/inc/shortcodes/promotion-shortcodes/assets/img/textual-project-showcase.png1.13KB0.19KB▼ 83.59%
inc/admin/inc/shortcodes/promotion-shortcodes/assets/img/intro-glitch-effect.png1.08KB0.15KB▼ 85.82%
inc/admin/inc/admin-pages/assets/img/sidebar-free-demos.png48.05KB15.99KB▼ 66.73%
inc/admin/inc/shortcodes/promotion-shortcodes/assets/img/data-table.png1.06KB0.11KB▼ 89.63%
inc/admin/inc/shortcodes/promotion-shortcodes/assets/img/blog-list-premium.png1.06KB0.12KB▼ 88.61%