72% hueman-addons

Code Review | Hueman Addons

WordPress plugin Hueman Addons scored 72% from 54 tests.

About plugin

  • Plugin page: hueman-addons
  • Plugin version: 2.3.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: May 10, 2016
  • Latest release: Jul 20, 2021
  • Number of updates: 48
  • Update frequency: every 39.5 days
  • Top authors: nikeo (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active / 505,852 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼284.62ms] Passed 4 tests

This is a short check of server-side resources used by Hueman Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3570.69 ▲17.34
Dashboard /wp-admin3.52 ▲0.1138.20 ▲3.81
Posts /wp-admin/edit.php4.00 ▲0.3650.06 ▲7.00
Add New Post /wp-admin/post-new.php7.04 ▲0.07112.09 ▼1,146.01
Media Library /wp-admin/upload.php3.46 ▲0.1727.11 ▼3.27
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php4.85103.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 114 new files
Database: no new tables, 5 new options
New WordPress options
hu_contx_theme_mods_synced_for_stylesheet
hu_contx_update_decemb_2018_status
widget_recent-comments
widget_recent-posts
hu_theme_mods_april_2020_backup

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hueman Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3615.86 ▲0.265.70 ▼0.222.59 ▲0.07
Dashboard /wp-admin2,908 ▲476.13 ▼0.09128.06 ▼10.54173.28 ▼62.49
Posts /wp-admin/edit.php2,704 ▲133.23 ▲0.0064.31 ▼0.46140.75 ▼12.77
Add New Post /wp-admin/post-new.php1,671 ▲1015.58 ▼0.85426.35 ▲38.96208.03 ▲7.69
Media Library /wp-admin/upload.php1,714 ▲225.51 ▲0.01139.74 ▼4.14263.09 ▲28.38
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,56019.20560.90306.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 5 options in the database
    • widget_recent-comments
    • hu_theme_mods_april_2020_backup
    • widget_recent-posts
    • hu_contx_update_decemb_2018_status
    • hu_contx_theme_mods_synced_for_stylesheet

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hueman-addons/addons/assets/front/js/sharrre.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hueman_skp\\did_action() in wp-content/plugins/hueman-addons/inc/czr-skope/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/hueman-addons/addons/ha-init.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/hueman-addons/contextualizer/customizer/contx_setting_class.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/hueman-addons/ha-fire.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hueman-addons/addons/ha-backward-compatibility-after-setup-theme-40.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hueman-addons/addons/admin/ha-hs-doc.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/hueman-addons/addons/sharrre/sharrre-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hueman-addons/addons/shortcodes/shortcodes.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/hueman-addons/addons/czr/skop-customizer-augment-setting.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hu_czr_fmk\\did_action() in wp-content/plugins/hueman-addons/inc/czr-base-fmk/czr-base-fmk.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: customizer, hueman theme, contextualizer, hueman

hueman-addons/ha-fire.php 92% from 13 tests

The main PHP file in "Hueman Addons" ver. 2.3.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hueman-addons.php" instead of "ha-fire.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
Everything looks great! No dangerous files found in this plugin51,160 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript275,2298,67423,046
CSS274,06488213,768
SVG3009,546
PHP189851,8974,598
PO File18185202

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity26.08
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity5.74
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes625.00%
Methods127
▷ Static methods43.15%
▷ Public methods12195.28%
▷ Protected methods00.00%
▷ Private methods64.72%
Functions74
▷ Named functions7398.65%
▷ Anonymous functions11.35%
Constants16
▷ Global constants16100.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
16 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/czr-base-fmk/assets/css/img/grey.png1.48KB1.65KB0.00%
addons/assets/czr/img/slide-placeholder.png1.26KB0.33KB▼ 73.70%
addons/assets/czr/css/img/jquery.fs.selecter-arrow.png0.24KB0.12KB▼ 48.36%
inc/czr-base-fmk/assets/css/img/fs-sprite.png1.07KB0.18KB▼ 82.82%
addons/assets/czr/css/img/jquery.fs.stepper-arrows.png0.30KB0.18KB▼ 40.52%