77% qode-essential-addons

Code Review | Qode Essential Addons

WordPress plugin Qode Essential Addons scored77%from 54 tests.

About plugin

  • Plugin page: qode-essential-ad...
  • Plugin version: 1.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 53
  • Update frequency: every 22.2 days
  • Top authors: qodeinteractive (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10,000+ active /119,632 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲6.21MB] [CPU: ▲42.54ms] 50% from 4 tests

This is a short check of server-side resources used by Qode Essential Addons
Please take the time to fix the following items
  • RAM: The total memory usage must be kept under 10MB (currently 12.28MB on /wp-admin/post-new.php?post_type=portfolio-item)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 6.21MB on /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio-item)
PageMemory (MB)CPU Time (ms)
Home /9.83 ▲6.3686.77 ▲44.46
Dashboard /wp-admin9.50 ▲6.1992.60 ▲43.60
Posts /wp-admin/edit.php9.53 ▲6.1696.66 ▲51.94
Add New Post /wp-admin/post-new.php12.28 ▲6.39139.92 ▲35.48
Media Library /wp-admin/upload.php9.34 ▲6.1181.89 ▲46.61
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=portfolio-item9.3479.23
Qode Portfolio /wp-admin/edit.php?post_type=portfolio-item9.4676.22
Add New /wp-admin/post-new.php?post_type=portfolio-item12.28125.78
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio-item9.3490.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 594 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_qode_essential_addons_side_area_opener
widget_recent-posts
widget_qode_essential_addons_search_opener
widget_recent-comments
widget_qode_essential_addons_spacer
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Qode Essential Addons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,033 ▲27114.22 ▼0.1415.96 ▲14.0336.38 ▼7.67
Dashboard /wp-admin2,242 ▲625.69 ▲0.0992.91 ▲3.2776.37 ▲35.31
Posts /wp-admin/edit.php2,170 ▲701.96 ▼0.0537.85 ▲1.2534.45 ▼2.05
Add New Post /wp-admin/post-new.php1,738 ▲21221.77 ▼1.59808.96 ▲156.8653.05 ▼6.41
Media Library /wp-admin/upload.php1,447 ▲474.15 ▼0.05104.11 ▼3.3773.41 ▲28.95
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=portfolio-item1,3242.1230.4131.05
Qode Portfolio /wp-admin/edit.php?post_type=portfolio-item1,1811.9533.8930.89
Add New /wp-admin/post-new.php?post_type=portfolio-item6,28123.38862.8831.66
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio-item1,3272.1231.1628.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_qode_essential_addons_spacer
    • widget_qode_essential_addons_search_opener
    • can_compress_scripts
    • widget_recent-comments
    • widget_qode_essential_addons_side_area_opener
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/qode-essential-addons/inc/admin/inc/common/modules/admin/templates/navigation.php
    • > /wp-content/plugins/qode-essential-addons/inc/content/templates/swiper-pag.php
    • > /wp-content/plugins/qode-essential-addons/inc/admin/inc/common/modules/admin/templates/content.php
  • 836× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qode-essential-addons/inc/header/layouts/centered/helper.php:16
    • > PHP Warning
      include_once(QODE_ESSENTIAL_ADDONS_CPT_PATH/portfolio/variations/slider-small/slider-small.php): failed to open stream: No such file or directory in wp-content/plugins/qode-essential-addons/inc/post-types/portfolio/variations/slider-small/include.php on line 3
    • > PHP Warning
      Use of undefined constant QODE_ESSENTIAL_ADDONS_INC_PATH - assumed 'QODE_ESSENTIAL_ADDONS_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qode-essential-addons/inc/header/top-area/include.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'QODE_ESSENTIAL_ADDONS_INC_PATH/header/layouts/vertical/class-qodeessentialaddons-vertical-header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qode-essential-addons/inc/header/layouts/vertical/include.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function qode_essential_addons_render_header_logo_image() in wp-content/plugins/qode-essential-addons/inc/header/layouts/minimal/templates/minimal.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/qode-essential-addons/inc/admin/inc/admin-notice/templates/admin-deactivation-form.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'QodeEssentialAddons_Framework_Page' not found in wp-content/plugins/qode-essential-addons/inc/admin/inc/common/modules/attachment/core/class-qodeessentialaddons-framework-page-attachment.php:3
    • > PHP Warning
      include_once(QODE_ESSENTIAL_ADDONS_CPT_PATH/portfolio/variations/images-big/images-big.php): failed to open stream: No such file or directory in wp-content/plugins/qode-essential-addons/inc/post-types/portfolio/variations/images-big/include.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'QODE_ESSENTIAL_ADDONS_PLUGINS_PATH/wp-forms/class-qodeessentialaddons-wp-forms.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qode-essential-addons/inc/plugins/wp-forms/include.php on line 3
    • > PHP Warning
      Use of undefined constant QODE_ESSENTIAL_ADDONS_INC_PATH - assumed 'QODE_ESSENTIAL_ADDONS_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/qode-essential-addons/inc/mobile-header/include.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: qode interactive addons, qode, elementor, addons, qode interactive...

qode-essential-addons/class-qodeessentialaddons.php 85% from 13 tests

The entry point to "Qode Essential Addons" version 1.5.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("qode-essential-addons.php" instead of "class-qodeessentialaddons.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin76,258 lines of code in 540 files:
LanguageFilesBlank linesComment linesLines of code
PHP4946,1713,56458,444
CSS191,80561511,323
JavaScript251,2372026,311
XML100160
SVG10120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.56
▷ Minimum class complexity1.00
▷ Maximum class complexity219.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes115
▷ Abstract classes1815.65%
▷ Concrete classes9784.35%
▷ Final classes00.00%
Methods866
▷ Static methods384.39%
▷ Public methods84597.58%
▷ Protected methods50.58%
▷ Private methods161.85%
Functions411
▷ Named functions40598.54%
▷ Anonymous functions61.46%
Constants27
▷ Global constants27100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.86MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/plugins/woocommerce/shortcodes/product-list/assets/img/dashboard_icon.png1.17KB0.22KB▼ 81.55%
inc/admin/inc/admin-pages/assets/img/qi-addons-sidebar.png25.33KB8.61KB▼ 66.02%
assets/img/side-area-bg.png9.65KB5.96KB▼ 38.21%
inc/admin/inc/admin-pages/assets/img/logo-qode-interactive.png5.68KB3.37KB▼ 40.68%
inc/admin/inc/admin-pages/assets/img/qi-addons-for-elementor.png19.42KB7.84KB▼ 59.63%