99% advanced-elementor

Code Review | Advanced Widgets for Elementor

WordPress plugin Advanced Widgets for Elementor scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-elementor
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Mar 19, 2019
  • Latest release: May 8, 2019
  • Number of updates: 43
  • Update frequency: every 1.2 days
  • Top authors: maecompany (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,303 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Advanced Widgets for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.07 ▲5.76
Dashboard /wp-admin3.43 ▲0.0333.39 ▼0.74
Posts /wp-admin/edit.php3.66 ▲0.0236.24 ▼2.82
Add New Post /wp-admin/post-new.php6.89 ▼0.0793.07 ▼1,180.71
Media Library /wp-admin/upload.php3.31 ▲0.0128.50 ▲4.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Widgets for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.98 ▼0.075.77 ▼0.992.90 ▲0.58
Dashboard /wp-admin2,892 ▲316.18 ▼0.04115.24 ▼25.74153.63 ▼117.35
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0061.81 ▼7.67138.76 ▼11.44
Add New Post /wp-admin/post-new.php1,752 ▲8420.96 ▲2.84432.72 ▲39.35156.26 ▼0.50
Media Library /wp-admin/upload.php1,701 ▲35.55 ▲0.08146.74 ▲5.27180.63 ▲0.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: advanced custom fields, advanced, template, acf, form...

advanced-elementor/functions.php 85% from 13 tests

The primary PHP file in "Advanced Widgets for Elementor" version 1.0.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-elementor.php" instead of "functions.php")

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
No dangerous file extensions were detected2,102 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.61
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
▷ Static methods32.86%
▷ Public methods5148.57%
▷ Protected methods2826.67%
▷ Private methods2624.76%
▷ Named functions342.86%
▷ Anonymous functions457.14%
▷ Global constants1100.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
No PNG files were detected