77% element-ready-lite

Code Review | ElementsReady Addons for Elementor

WordPress plugin ElementsReady Addons for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: element-ready-lite
  • Plugin version: 5.5.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Nov 26, 2023
  • Number of updates: 93
  • Update frequency: every 11.0 days
  • Top authors: quomodosoft (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

5,000+ active /99,029 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼9.76ms] Passed 4 tests

An overview of server-side resources used by ElementsReady Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2238.18 ▼5.17
Dashboard /wp-admin3.52 ▲0.1746.45 ▼24.23
Posts /wp-admin/edit.php3.63 ▲0.2750.86 ▲1.97
Add New Post /wp-admin/post-new.php6.10 ▲0.2192.50 ▼6.70
Media Library /wp-admin/upload.php3.44 ▲0.2136.07 ▼2.94

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 762 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ElementsReady Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲8114.51 ▼0.201.92 ▼0.0445.22 ▲0.74
Dashboard /wp-admin2,219 ▲395.62 ▼0.0489.98 ▼4.9743.37 ▼3.00
Posts /wp-admin/edit.php2,121 ▲211.98 ▲0.0240.25 ▲1.6235.92 ▼0.98
Add New Post /wp-admin/post-new.php1,542 ▲1623.25 ▲0.02658.13 ▼5.3863.70 ▲4.17
Media Library /wp-admin/upload.php1,421 ▲244.22 ▲0.0498.90 ▲6.5042.96 ▲1.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/element-ready-lite/inc/dashboard/views/dashboard.php
    • > /wp-content/plugins/element-ready-lite/inc/Modules/Menu_Builder/Base/templates/menu-item-settings.php
  • 178× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/element-ready-lite/inc/Modules/Menu_Builder/Widgets/layout/menu/style9.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'ELEMENT_READY_DIR_PATH/inc/style_controls/common/common.php' (include_path='.:/usr/share/php') in wp-content/plugins/element-ready-lite/inc/Widgets/order/WooCommerce_Order_Details.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'Element_Ready\\Base\\BaseController' not found in wp-content/plugins/element-ready-lite/inc/Base/Controls/Video/Generel_Video_Controls.php:9
    • > PHP Warning
      Use of undefined constant ELEMENT_READY_DIR_PATH - assumed 'ELEMENT_READY_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/element-ready-lite/inc/Widgets/price_table/Element_Ready_Pricing_Table.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/element-ready-lite/inc/Modules/Menu_Builder/Widgets/layout/menu/style8.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Element_Ready\\Base\\BaseController' not found in wp-content/plugins/element-ready-lite/inc/Base/Controls/Slider/Generel_Controls.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/element-ready-lite/templates/edd/content.php:3
    • > PHP Warning
      require_once(ELEMENT_READY_DIR_PATH/inc/style_controls/box/box_style.php): failed to open stream: No such file or directory in wp-content/plugins/element-ready-lite/inc/Widgets/user/SignUp.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/element-ready-lite/inc/Widgets/user/layout/signin/style1.php on line 20
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/element-ready-lite/inc/Modules/Menu_Builder/Widgets/layout/menu/style1.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #9 in element-ready-lite/assets to your readme.txt
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt is a good inspiration

element-ready-lite/index.php 92% from 13 tests

"ElementsReady Addons for Elementor" version 5.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("element-ready-lite.php" instead of "index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin175,182 lines of code in 645 files:
LanguageFilesBlank linesComment linesLines of code
PHP23311,2715,31093,271
CSS1848,2771,12853,833
SVG373983116,790
JavaScript1792,2749439,496
Sass93801,775
JSON32017

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 118)
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity13.16
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity118.00
Code structure
Namespaces71
Interfaces0
Traits8
Classes165
▷ Abstract classes53.03%
▷ Concrete classes16096.97%
▷ Final classes74.38%
Methods1,109
▷ Static methods1009.02%
▷ Public methods96486.93%
▷ Protected methods12110.91%
▷ Private methods242.16%
Functions153
▷ Named functions13890.20%
▷ Anonymous functions159.80%
Constants31
▷ Global constants2477.42%
▷ Class constants722.58%
▷ Public constants7100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 3.47MB with 1.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/DataTables-1.10.23/images/sort_asc.png0.16KB0.25KB0.00%
assets/img/dashboard-thumb.png1,237.17KB415.26KB▼ 66.43%
assets/img/logo-big.png74.22KB17.27KB▼ 76.73%
assets/img/dash-banner-top.png61.53KB18.74KB▼ 69.54%
assets/img/sunset.png4.06KB2.72KB▼ 33.07%