67% addons-for-elementor

Code Review | Livemesh Addons for Elementor

WordPress plugin Livemesh Addons for Elementor scored 67% from 54 tests.

About plugin

  • Plugin page: addons-for-elementor
  • Plugin version: 7.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Jun 28, 2017
  • Latest release: Mar 31, 2022
  • Number of updates: 176
  • Update frequency: every 9.9 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

145 reviews

Install metrics

100,000+ active / 2,754,930 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
Install script ran successfully

Server metrics [RAM: ▲4.80MB] [CPU: ▼270.53ms] Passed 4 tests

An overview of server-side resources used by Livemesh Addons for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.64 ▲5.13104.40 ▲35.82
Dashboard /wp-admin8.66 ▲5.2568.58 ▲25.54
Posts /wp-admin/edit.php8.66 ▲5.0164.94 ▲16.96
Add New Post /wp-admin/post-new.php10.79 ▲3.82144.67 ▼1,152.61
Media Library /wp-admin/upload.php8.66 ▲5.3663.03 ▲28.00
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.6653.52

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 433 new files
Database: no new tables, 4 new options
New WordPress options
fs_gdpr
fs_accounts
fs_debug_mode
fs_active_plugins

Browser metrics Passed 4 tests

A check of browser resources used by Livemesh Addons for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,842 ▲9815.89 ▲0.407.64 ▼1.413.19 ▼0.44
Dashboard /wp-admin2,964 ▲846.33 ▼0.10184.70 ▼31.78246.21 ▲21.71
Posts /wp-admin/edit.php2,739 ▲513.30 ▼0.1394.12 ▲1.37203.51 ▲28.80
Add New Post /wp-admin/post-new.php1,656 ▼1216.76 ▼2.24653.01 ▲15.33224.19 ▲18.36
Media Library /wp-admin/upload.php1,738 ▲435.72 ▲0.02181.56 ▼1.43326.86 ▲83.83
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4522.6877.78144.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/addons-for-elementor/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_gdpr
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php
    • > /wp-content/plugins/addons-for-elementor/templates/addons/testimonials/star-rating.php
    • > /wp-content/plugins/addons-for-elementor/templates/addons/testimonials-slider/star-rating.php
  • 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/addons-for-elementor/templates/post-meta/taxonomy-info.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/addons-for-elementor/templates/addons/posts-carousel/custom-skin.php on line 3
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 18
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'LAE_Notice' not found in wp-content/plugins/addons-for-elementor/admin/notices/admin-notice-rate.php:6
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 17
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 20
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 21
    • > PHP Notice
      Undefined variable: team_member in wp-content/plugins/addons-for-elementor/templates/addons/team-members/social-profile.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce elementor, elementor extensions, elementor widgets, page builder, elementor...

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

This is the main PHP file of "Livemesh Addons for Elementor" version 7.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin69,081 lines of code in 352 files:
LanguageFilesBlank linesComment linesLines of code
PHP2239,59817,08844,429
CSS428141837,254
JavaScript552,0171,3346,901
Sass251,07625,028
PO File22,5545,1995,009
SVG420459
JSON1001

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity50.51
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes85
▷ Abstract classes44.71%
▷ Concrete classes8195.29%
▷ Final classes22.47%
Methods1,431
▷ Static methods18813.14%
▷ Public methods98368.69%
▷ Protected methods1137.90%
▷ Private methods33523.41%
Functions132
▷ Named functions13199.24%
▷ Anonymous functions10.76%
Constants138
▷ Global constants11381.88%
▷ Class constants2518.12%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/logo-shape.png3.02KB1.63KB▼ 45.87%
freemius/assets/img/addons-for-elementor.png31.70KB9.52KB▼ 69.97%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
admin/assets/images/logo-light.png6.77KB3.18KB▼ 53.09%