73% wadi-addons-for-elementor

Code Review | Wadi Addons for Elementor

WordPress plugin Wadi Addons for Elementor scored73%from 54 tests.

About plugin

  • Plugin page: wadi-addons-for-e...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2022
  • Latest release: Oct 8, 2022
  • Number of updates: 22
  • Update frequency: every 9.5 days
  • Top authors: mohammedrezq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲4.95MB] [CPU: ▲18.80ms] Passed 4 tests

A check of server-side resources used by Wadi Addons for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.76 ▲5.3082.92 ▲25.47
Dashboard /wp-admin8.78 ▲5.4374.22 ▲4.92
Posts /wp-admin/edit.php8.78 ▲5.4282.75 ▲29.11
Add New Post /wp-admin/post-new.php9.55 ▲3.66116.85 ▲15.88
Media Library /wp-admin/upload.php8.78 ▲5.5566.24 ▲28.94
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius8.7858.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 635 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
fs_debug_mode
fs_gdpr
fs_active_plugins
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
fs_accounts

Browser metrics Passed 4 tests

Checking browser requirements for Wadi Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.22 ▼0.332.43 ▼0.4833.43 ▼23.72
Dashboard /wp-admin2,241 ▲635.57 ▼0.0999.22 ▼5.0045.23 ▲1.41
Posts /wp-admin/edit.php2,150 ▲502.12 ▲0.1540.40 ▲4.2039.60 ▲5.29
Add New Post /wp-admin/post-new.php1,556 ▲3023.36 ▼0.15687.61 ▼26.6664.48 ▲9.33
Media Library /wp-admin/upload.php1,443 ▲434.23 ▲0.04101.00 ▼1.7048.30 ▲3.14
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius1,0731.6725.9028.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wadi-addons-for-elementor/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_accounts
    • fs_active_plugins
    • fs_gdpr
    • db_upgraded
    • fs_debug_mode

Smoke tests 75% 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 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WadiAddons\\Includes\\WadiHelpers' not found in wp-content/plugins/wadi-addons-for-elementor/admin/templates/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wadi-addons-for-elementor/admin/templates/integrations.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
5 plugin tags: elementor addons, elementor widgets, elementor elements, elementor, elementor templates

wadi-addons-for-elementor/wadi-addons.php 77% from 13 tests

"Wadi Addons for Elementor" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • 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
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wadi-addons-for-elementor.php" instead of "wadi-addons.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected156,115 lines of code in 458 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12317,4968,53092,215
PHP15010,34718,28351,261
Sass361,2386417,101
PO File32,2803,8044,791
SVG403406
CSS14040157331
Markdown1009
JSON1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity59.83
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes82
▷ Abstract classes22.44%
▷ Concrete classes8097.56%
▷ Final classes11.25%
Methods1,592
▷ Static methods21513.51%
▷ Public methods1,12970.92%
▷ Protected methods1227.66%
▷ Private methods34121.42%
Functions97
▷ Named functions9597.94%
▷ Anonymous functions22.06%
Constants143
▷ Global constants10976.22%
▷ Class constants3423.78%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%