90% hq-widgets-for-elementor

Code Review | HQ Widgets for Elementor

WordPress plugin HQ Widgets for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: hq-widgets-for-el...
  • Plugin version: 1.0.15
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Sep 28, 2020
  • Latest release: Jun 29, 2022
  • Number of updates: 19
  • Update frequency: every 33.8 days
  • Top authors: hqtheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /8,841 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.85ms] Passed 4 tests

This is a short check of server-side resources used by HQ Widgets for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.94 ▼2.18
Dashboard /wp-admin3.42 ▲0.1248.51 ▼2.51
Posts /wp-admin/edit.php3.54 ▲0.1851.34 ▲1.48
Add New Post /wp-admin/post-new.php6.02 ▲0.1492.96 ▼8.17
Media Library /wp-admin/upload.php3.35 ▲0.1236.00 ▲3.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for HQ Widgets for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.36 ▼0.291.70 ▼0.6742.58 ▼4.70
Dashboard /wp-admin2,220 ▲435.60 ▼0.0493.95 ▲6.2444.20 ▼0.81
Posts /wp-admin/edit.php2,128 ▲312.17 ▲0.1541.05 ▲2.5236.95 ▼2.20
Add New Post /wp-admin/post-new.php1,562 ▲3624.50 ▲0.92631.57 ▼38.4064.94 ▲18.45
Media Library /wp-admin/upload.php1,422 ▲224.27 ▲0.07109.34 ▲6.1643.67 ▲1.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: widgets for elementor, hqtheme, woocommerce, contact form 7 for elementor, menu for elementor

hq-widgets-for-elementor/hq-widgets-for-elementor.php Passed 13 tests

The main PHP file in "HQ Widgets for Elementor" ver. 1.0.15 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
The HQ Widgets for Elementor is an elementor addons package for Elementor page builder plugin for WordPress. Works Best with Marmot theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin30,780 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
PHP743,90283423,053
JavaScript255325173,896
CSS332151043,513
SVG91091318

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity10.41
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes74
▷ Abstract classes1013.51%
▷ Concrete classes6486.49%
▷ Final classes00.00%
Methods632
▷ Static methods172.69%
▷ Public methods45371.68%
▷ Protected methods15925.16%
▷ Private methods203.16%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants130
▷ Global constants32.31%
▷ Class constants12797.69%
▷ Public constants127100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin/widgets.png94.26KB34.54KB▼ 63.36%
assets/images/admin/dashboard-theme.png41.64KB18.42KB▼ 55.77%
assets/images/admin/logo-marmot.png6.19KB2.72KB▼ 55.99%
assets/images/admin/dashboard-main.png52.21KB21.87KB▼ 58.11%