89% advanced-elementor

Code Review | Advanced Widgets for Elementor

WordPress plugin Advanced Widgets for Elementor scored89%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: 6.3.1
  • 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

50+ active /2,685 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.02MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Advanced Widgets for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.90 ▼6.91
Dashboard /wp-admin3.32 ▲0.0249.30 ▼1.87
Posts /wp-admin/edit.php3.37 ▲0.0250.01 ▼2.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.48 ▼9.60
Media Library /wp-admin/upload.php3.24 ▲0.0235.32 ▼2.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Advanced Widgets for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.031.61 ▼0.5745.25 ▼2.08
Dashboard /wp-admin2,192 ▲125.55 ▼0.1185.47 ▼21.7440.39 ▼2.59
Posts /wp-admin/edit.php2,100 ▼02.11 ▲0.1039.01 ▲1.3236.45 ▲2.08
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.61688.36 ▼14.3859.03 ▼3.16
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0599.91 ▼16.1043.78 ▼1.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: advanced custom fields, posts, template, form, acf...

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

This is the main PHP file of "Advanced Widgets for Elementor" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-elementor.php" instead of "functions.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,102 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP213718162,102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods105
▷ Static methods32.86%
▷ Public methods5148.57%
▷ Protected methods2826.67%
▷ Private methods2624.76%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants1
▷ 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