66% rt-easy-builder-advanced-addons-for-elementor

Code Review | RT Easy Builder - Advanced addons for Elementor

WordPress plugin RT Easy Builder - Advanced addons for Elementor scored66%from 54 tests.

About plugin

  • Plugin page: rt-easy-builder-a...
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Jul 31, 2023
  • Number of updates: 23
  • Update frequency: every 36.1 days
  • Top authors: risetheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /23,307 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.36MB] [CPU: ▲26.72ms] 50% from 4 tests

Analyzing server-side resources used by RT Easy Builder - Advanced addons for Elementor
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 2,037.38ms on /wp-admin/admin.php?page=rt-easy-builder)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.19 ▲5.7362.63 ▲22.37
Dashboard /wp-admin9.21 ▲5.8774.55 ▲12.82
Posts /wp-admin/edit.php9.21 ▲5.8693.25 ▲45.48
Add New Post /wp-admin/post-new.php9.89 ▲4.00122.92 ▲26.22
Media Library /wp-admin/upload.php9.21 ▲5.9881.84 ▲46.79
Rise Demo Importer /wp-admin/themes.php?page=one-click-demo-import9.2265.33
RT Easy Builder - Advanced addons for Elementor /wp-admin/admin.php?page=rt-easy-builder9.212,037.38
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2158.66

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 232 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
fs_accounts
widget_theysaidso_widget
widget_recent-posts
fs_debug_mode
fs_active_plugins
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

RT Easy Builder - Advanced addons for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.25 ▼1.111.67 ▼0.4532.14 ▼7.48
Dashboard /wp-admin2,244 ▲594.84 ▼1.01110.39 ▲11.8548.13 ▲4.33
Posts /wp-admin/edit.php2,127 ▲352.04 ▲0.0442.56 ▲1.5145.02 ▲6.00
Add New Post /wp-admin/post-new.php1,535 ▲221.05 ▼2.31712.63 ▲123.2854.86 ▼1.54
Media Library /wp-admin/upload.php1,426 ▲384.13 ▼0.05118.76 ▲1.6055.47 ▲1.41
Rise Demo Importer /wp-admin/themes.php?page=one-click-demo-import7952.0432.5437.23
RT Easy Builder - Advanced addons for Elementor /wp-admin/admin.php?page=rt-easy-builder1,1792.0028.35117.24
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0881.7223.5728.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • fs_debug_mode
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_accounts
    • fs_active_plugins
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/rt-easy-builder.php
  • 29× 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/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/widgets/slider/template.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\OneClickDemoImport' not found in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/importer/views/ocdi-page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RT_Easy_Builder\\Builder' not found in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/importer/class-importer.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/widgets/blog-listing/template.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/importer/views/ocdi-import.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/widgets/counter/template.php:4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/widgets/blog-listing/template.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'RT_Easy_Builder\\Builder' not found in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/fields/class-dimensions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RT_Easy_Builder\\Widgets' not found in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/elementor/widgets/counter/class-counter.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/rt-easy-builder-advanced-addons-for-elementor/modules/importer/views/wizard-page.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

rt-easy-builder-advanced-addons-for-elementor/rt-easy-builder.php 77% from 13 tests

The main PHP script in "RT Easy Builder - Advanced addons for Elementor" version 1.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 500 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rt-easy-builder-advanced-addons-for-elementor.php" instead of "rt-easy-builder.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin39,581 lines of code in 184 files:
LanguageFilesBlank linesComment linesLines of code
PHP1538,33717,32936,068
JavaScript88961042,403
CSS22200171,097
SVG11013

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity62.73
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes73
▷ Abstract classes34.11%
▷ Concrete classes7095.89%
▷ Final classes00.00%
Methods1,350
▷ Static methods19814.67%
▷ Public methods96071.11%
▷ Protected methods181.33%
▷ Private methods37227.56%
Functions100
▷ Named functions9999.00%
▷ Anonymous functions11.00%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/rt-easy-builder.png14.34KB6.22KB▼ 56.62%