84% rrdevs-for-elementor

Code Review | RRAddons for Elementor

WordPress plugin RRAddons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: rrdevs-for-elementor
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 28
  • Update frequency: every 26.4 days
  • Top authors: rrdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼2.68ms] Passed 4 tests

A check of server-side resources used by RRAddons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3741.31 ▲0.61
Dashboard /wp-admin3.66 ▲0.3645.09 ▼7.46
Posts /wp-admin/edit.php3.78 ▲0.4250.18 ▲2.53
Add New Post /wp-admin/post-new.php6.25 ▲0.3682.95 ▼6.40
Media Library /wp-admin/upload.php3.59 ▲0.3637.54 ▲4.73

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

RRAddons for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4514.11 ▼0.241.68 ▼0.0040.86 ▼1.90
Dashboard /wp-admin2,215 ▲345.61 ▼0.0789.55 ▼15.8340.15 ▼3.40
Posts /wp-admin/edit.php2,120 ▲171.98 ▼0.1440.75 ▲4.5535.00 ▼2.03
Add New Post /wp-admin/post-new.php1,538 ▲1223.14 ▲0.03660.61 ▼98.5648.98 ▼4.55
Media Library /wp-admin/upload.php1,417 ▲174.17 ▼0.05102.13 ▲6.0744.71 ▲2.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RRdevs\\Elementor\\Modulis\\add_action() in wp-content/plugins/rrdevs-for-elementor/extensions/css-transform.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rrdevs-for-elementor/widgets/ProgressBar/widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: rrdevs, elementor, elementor addons, elementor free custom css

rrdevs-for-elementor/rrdevs-addons.php 85% from 13 tests

"RRAddons for Elementor" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rrdevs-for-elementor.php" instead of "rrdevs-addons.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 Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected21,512 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP231,3701,04714,460
CSS6541804,171
JavaScript79241012,506
SVG210375

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods162
▷ Static methods63.70%
▷ Public methods10162.35%
▷ Protected methods5835.80%
▷ Private methods31.85%
Functions20
▷ Named functions840.00%
▷ Anonymous functions1260.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin