73% missing-widgets-for-elementor

Code Review | Missing Widgets for Elementor

WordPress plugin Missing Widgets for Elementor scored73%from 54 tests.

About plugin

  • Plugin page: missing-widgets-f...
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 21, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 65
  • Update frequency: every 9.7 days
  • Top authors: jargovi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,449 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.05MB] [CPU: ▲27.97ms] 75% from 4 tests

This is a short check of server-side resources used by Missing Widgets for Elementor
Please take the time to fix the following items
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.05MB on /wp-admin/admin.php?page=missing-widgets-for-elementor)
PageMemory (MB)CPU Time (ms)
Home /8.92 ▲5.4671.78 ▲35.86
Dashboard /wp-admin8.94 ▲5.6372.95 ▲23.63
Posts /wp-admin/edit.php8.94 ▲5.5882.92 ▲33.63
Add New Post /wp-admin/post-new.php9.42 ▲3.53119.92 ▲23.01
Media Library /wp-admin/upload.php8.94 ▲5.7164.73 ▲31.61
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9457.36
Missing Widgets for Elementor /wp-admin/admin.php?page=missing-widgets-for-elementor8.9465.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 228 new files
Database: no new tables, 9 new options
New WordPress options
fs_active_plugins
fs_accounts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
fs_debug_mode
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Missing Widgets for Elementor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4814.69 ▲0.351.61 ▼0.0431.24 ▼13.32
Dashboard /wp-admin2,218 ▲415.60 ▼0.0291.66 ▼3.9744.54 ▼1.96
Posts /wp-admin/edit.php2,121 ▲212.10 ▲0.1440.70 ▲3.0138.43 ▲3.97
Add New Post /wp-admin/post-new.php1,534 ▲823.01 ▼0.14661.30 ▲9.6052.22 ▼5.60
Media Library /wp-admin/upload.php1,423 ▲294.19 ▲0.0199.66 ▼0.2443.00 ▼1.06
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0511.6826.0124.52
Missing Widgets for Elementor /wp-admin/admin.php?page=missing-widgets-for-elementor9761.6527.3659.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/missing-widgets-for-elementor/assets/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • fs_active_plugins
    • fs_debug_mode
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_accounts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Kits\\Documents\\Tabs\\Tab_Base' not found in wp-content/plugins/missing-widgets-for-elementor/includes/extras/class-themestyleextrabutton.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Kits\\Documents\\Tabs\\Tab_Base' not found in wp-content/plugins/missing-widgets-for-elementor/includes/extras/class-themeextrasettings.php:8
    • > PHP Fatal error
      Trait 'MissingWidgets\\Singleton' not found in wp-content/plugins/missing-widgets-for-elementor/includes/class-core.php on line 14

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt might help

missing-widgets-for-elementor/missing-widgets-for-elementor.php 92% from 13 tests

The primary PHP file in "Missing Widgets for Elementor" version 1.4.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin41,854 lines of code in 171 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448,91318,49140,395
PO File24951,0521,138
JavaScript53459198
XML2131563
CSS153239
JSON20011
SVG10010

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity65.93
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces5
Interfaces1
Traits1
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes00.00%
Methods1,465
▷ Static methods23415.97%
▷ Public methods1,03170.38%
▷ Protected methods443.00%
▷ Private methods39026.62%
Functions104
▷ Named functions10197.12%
▷ Anonymous functions32.88%
Constants154
▷ Global constants10165.58%
▷ Class constants5334.42%
▷ Public constants53100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/freemius/assets/img/missingwidgets.png18.82KB7.50KB▼ 60.16%
assets/freemius/assets/img/missing-widgets-for-elementor.png18.82KB7.50KB▼ 60.16%
assets/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%