74% elementinvader-addons-for-elementor

Code Review | ElementInvader Addons for Elementor

WordPress plugin ElementInvader Addons for Elementor scored74%from 54 tests.

About plugin

  • Plugin page: elementinvader-ad...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Oct 17, 2023
  • Number of updates: 31
  • Update frequency: every 32.1 days
  • Top authors: elementinvader (93.55%)sanwinter (9.68%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /29,107 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.91ms] Passed 4 tests

Analyzing server-side resources used by ElementInvader Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2439.56 ▼0.37
Dashboard /wp-admin3.53 ▲0.1848.56 ▼12.66
Posts /wp-admin/edit.php3.65 ▲0.2952.39 ▲3.69
Add New Post /wp-admin/post-new.php6.11 ▲0.2284.74 ▼12.75
Media Library /wp-admin/upload.php3.46 ▲0.2238.44 ▲2.15
Newsletter /wp-admin/tools.php?page=eli-mails3.4736.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 155 new files
Database: 1 new table, 7 new options
New tables
wp_eli_newsletters
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
eli_db_version
widget_recent-comments

Browser metrics Passed 4 tests

ElementInvader Addons for Elementor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13614.79 ▲0.515.39 ▲3.7939.29 ▼1.24
Dashboard /wp-admin2,212 ▲355.63 ▼0.0689.20 ▲2.7441.11 ▼2.45
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0138.64 ▲4.0934.59 ▼6.84
Add New Post /wp-admin/post-new.php1,531 ▼023.62 ▲0.53664.63 ▲10.2455.15 ▼1.66
Media Library /wp-admin/upload.php1,401 ▼24.17 ▼0.1094.77 ▲0.7342.35 ▼1.01
Newsletter /wp-admin/tools.php?page=eli-mails9772.0324.6827.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_eli_newsletters
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • eli_db_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 38× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php:51
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 8
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elementinvader-addons-for-elementor/views/blog_grid/widget_layout.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/elementinvader-addons-for-elementor/shortcodes/shortcode-eli_option_value.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elementinvader-addons-for-elementor/views/form/fields/checkbox.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elementinvader-addons-for-elementor/views/slider/widget_layout.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: "elementinvader.com"
  • Screenshots: These screenshots require images: #1 (Simple Menu for Elementor with many styles options), #2 (Simple Contact Form for Elementor with many styles options), #3 (Open Street Maps for Elementor with many styling options), #4 (Simple Newsletter for Elementor, with mailchimp api, email alerts for admin and export msigned maillist option.)
Please take inspiration from this readme.txt

elementinvader-addons-for-elementor/elementinvader-addons-for-elementor.php Passed 13 tests

This is the main PHP file of "ElementInvader Addons for Elementor" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Ready to use Elementor Addon Elements like Menu, Forms, Maps, Newsletter with many styling options

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected63,866 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript153,9504,80819,470
CSS343,59326019,119
PHP391,65997512,002
SVG611211,742
Sass625701,533

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity25.87
▷ Minimum class complexity2.00
▷ Maximum class complexity78.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods164
▷ Static methods84.88%
▷ Public methods10966.46%
▷ Protected methods4225.61%
▷ Private methods137.93%
Functions46
▷ Named functions3882.61%
▷ Anonymous functions817.39%
Constants11
▷ Global constants436.36%
▷ Class constants763.64%
▷ Public constants7100.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
14 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/cancel.png0.36KB0.29KB▼ 19.95%
assets/libs/leaflet/images/marker-shadow.png0.47KB0.50KB0.00%
assets/img/mark_content_bac.png15.89KB0.73KB▼ 95.43%
assets/libs/leaflet/images/marker-icon-2x.png1.89KB1.96KB0.00%
assets/img/wl_content.png50.38KB0.43KB▼ 99.14%