74% elementinvader-addons-for-elementor

Code Review | ElementInvader Addons for Elementor

WordPress plugin ElementInvader Addons for Elementor scored 74% from 54 tests.

About plugin

  • Plugin page: elementinvader-ad...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-5.8
  • WordPress version: 5.8.1
  • First release: Jan 27, 2021
  • Latest release: Sep 29, 2021
  • Number of updates: 11
  • Update frequency: every 22.4 days
  • Top authors: elementinvader (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,665 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.19MB] [CPU: ▼141.96ms] 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.02 ▲0.3039.31 ▲18.09
Dashboard /wp-admin3.24 ▲0.1845.92 ▲3.76
Posts /wp-admin/edit.php3.35 ▲0.2446.82 ▲4.89
Add New Post /wp-admin/post-new.php5.60 ▲0.1792.73 ▼568.55
Media Library /wp-admin/upload.php3.18 ▲0.1730.56 ▼7.92
Newsletter /wp-admin/tools.php?page=eli-mails3.1830.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 141 new files
Database: 1 new table, 1 new option
New tables
wp_eli_newsletters
New WordPress options
eli_db_version

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 /3,708 ▲11215.91 ▲0.386.44 ▼1.0648.46 ▼0.87
Dashboard /wp-admin2,993 ▲625.93 ▼0.06146.42 ▲1.23108.82 ▼2.87
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0063.18 ▼1.8791.87 ▲0.32
Add New Post /wp-admin/post-new.php1,501 ▼18218.83 ▲0.07361.39 ▲1.74112.05 ▼3.81
Media Library /wp-admin/upload.php1,809 ▲25.02 ▼0.02144.10 ▼17.98123.31 ▲0.22
Newsletter /wp-admin/tools.php?page=eli-mails1,3292.0953.2569.27

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 1 option in the database
    • eli_db_version

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
  • 39× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elementinvader-addons-for-elementor/views/form/fields/radio.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php:204
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 12
    • > 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 24
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/elementinvader-addons-for-elementor/pages/mail_base/index.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 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 200
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/elementinvader-addons-for-elementor/shortcodes/shortcode-newsletter.php:20
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/elementinvader-addons-for-elementor/views/map/map_layout.php on line 3

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: ""
  • 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.0.7, 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 detected52,619 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
CSS313,54625818,680
SVG611211,742
JavaScript141,3021,28811,062
PHP321,3307949,959
Sass422001,176

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.25
Average class complexity24.46
▷ Minimum class complexity2.00
▷ Maximum class complexity53.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods145
▷ Static methods74.83%
▷ Public methods9666.21%
▷ Protected methods3725.52%
▷ Private methods128.28%
Functions38
▷ Named functions3078.95%
▷ Anonymous functions821.05%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.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 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/mark.png2.42KB1.24KB▼ 48.71%
assets/admin/img/details_close.png0.67KB0.79KB0.00%
assets/libs/leaflet/images/layers-2x.png1.23KB1.67KB0.00%
assets/admin/img/logo.png0.74KB0.87KB0.00%
assets/admin/img/details_open.png0.69KB0.80KB0.00%