83% rselements-lite

Code Review | RS Elements Elementor Addon

WordPress plugin RS Elements Elementor Addon scored83%from 54 tests.

About plugin

  • Plugin page: rselements-lite
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Jun 20, 2022
  • Number of updates: 44
  • Update frequency: every 22.0 days
  • Top authors: rstheme2017 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /6,980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼13.12ms] Passed 4 tests

An overview of server-side resources used by RS Elements Elementor Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.36 ▼24.98
Dashboard /wp-admin3.40 ▲0.0651.38 ▼16.20
Posts /wp-admin/edit.php3.46 ▲0.1049.56 ▲1.94
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.02 ▼11.24
Media Library /wp-admin/upload.php3.33 ▲0.1037.99 ▼0.04
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonials3.3233.15
All Team /wp-admin/edit.php?post_type=teams3.3742.86
Team Categories /wp-admin/edit-tags.php?taxonomy=team-category&post_type=teams3.3236.28
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials3.4654.58
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios3.3243.97
All Portfolio /wp-admin/edit.php?post_type=portfolios3.3738.03
Add New Portfolio /wp-admin/post-new.php?post_type=portfolios3.4551.39
Add New Team /wp-admin/post-new.php?post_type=teams3.4852.82
All Testimonial /wp-admin/edit.php?post_type=testimonials3.3737.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by RS Elements Elementor Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17013.32 ▼1.031.63 ▼0.3944.20 ▼2.10
Dashboard /wp-admin2,328 ▲1254.93 ▼0.88102.05 ▼15.7180.23 ▲35.10
Posts /wp-admin/edit.php2,207 ▲1072.03 ▼0.0235.44 ▼1.5534.91 ▼1.24
Add New Post /wp-admin/post-new.php1,773 ▲23922.42 ▼0.86668.09 ▲14.9327.50 ▼27.15
Media Library /wp-admin/upload.php1,504 ▲1044.20 ▲0.00102.34 ▼4.2047.95 ▲3.43
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonials1,3812.2828.6536.37
All Team /wp-admin/edit.php?post_type=teams1,1791.9635.1132.20
Team Categories /wp-admin/edit-tags.php?taxonomy=team-category&post_type=teams1,3812.2830.5034.73
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials2,4737.60177.59141.50
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios1,3842.3129.7233.99
All Portfolio /wp-admin/edit.php?post_type=portfolios1,1761.9731.6031.66
Add New Portfolio /wp-admin/post-new.php?post_type=portfolios2,4827.79187.26115.49
Add New Team /wp-admin/post-new.php?post_type=teams2,5567.70170.25129.83
All Testimonial /wp-admin/edit.php?post_type=testimonials1,1762.0033.5933.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rselements-lite/widgets/testimonial/grid.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/rselements-lite/widgets/portfolio-grid/style3.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rselements-lite/widgets/team-member/style4.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rselements-lite/widgets/portfolio-grid/style3.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rselements-lite/widgets/team-member/style6.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rselements-lite/widgets/portfolio-grid/style1.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rselements-lite/widgets/team-member/style3.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rselements-lite/widgets/team-member/style1.php:1
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/rselements-lite/widgets/portfolio-grid/style2p.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/rselements-lite/widgets/portfolio-grid/style2p.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% 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
Please fix the following attributes:
  • Requires php: Invalid version format
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in rselements-lite/assets to your readme.txt
You can look at the official readme.txt

rselements-lite/rs-addon.php 77% from 13 tests

The entry point to "RS Elements Elementor Addon" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rselements-lite.php" instead of "rs-addon.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected44,634 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP453,0971,90121,649
SVG511512,117
LESS13371876,093
CSS101,508654,467
JavaScript74552197
Sass150111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.71
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes13.23%
Methods200
▷ Static methods21.00%
▷ Public methods14572.50%
▷ Protected methods5427.00%
▷ Private methods10.50%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.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
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/testimonial/img/5.png1.47KB0.51KB▼ 65.70%
widgets/testimonial/img/1.5.png1.79KB0.73KB▼ 59.01%
widgets/testimonial/img/2.5.png1.80KB0.75KB▼ 58.28%
post-type/portfolio/img/icon.png1.10KB0.17KB▼ 84.97%
widgets/testimonial/img/4.5.png1.57KB0.58KB▼ 63.40%