100% rt-elementor-widgets

Code Review | RT Elementor Widgets

WordPress plugin RT Elementor Widgets scored 100% from 54 tests.

About plugin

  • Plugin page: rt-elementor-widgets
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Mar 27, 2019
  • Latest release: Mar 16, 2021
  • Number of updates: 3
  • Update frequency: every 240.3 days
  • Top authors: WpGaint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,860 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼140.50ms] Passed 4 tests

Server-side resources used by RT Elementor Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0439.17 ▲4.66
Dashboard /wp-admin3.10 ▲0.0454.21 ▼2.90
Posts /wp-admin/edit.php3.15 ▲0.0450.30 ▼0.15
Add New Post /wp-admin/post-new.php5.46 ▲0.0398.78 ▼556.18
Media Library /wp-admin/upload.php3.04 ▲0.0342.85 ▼2.78

Server storage [IO: ▲0.23MB] [DB: ▲0.62MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RT Elementor Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲17015.77 ▲0.258.95 ▼1.7251.03 ▼0.41
Dashboard /wp-admin2,980 ▲435.89 ▼0.24149.78 ▲5.84114.67 ▼3.78
Posts /wp-admin/edit.php2,775 ▲362.68 ▼0.0169.98 ▲4.00105.90 ▲15.95
Add New Post /wp-admin/post-new.php1,507 ▼17618.06 ▼0.69279.59 ▼120.49111.80 ▼5.77
Media Library /wp-admin/upload.php1,842 ▲355.02 ▲0.00227.01 ▲57.32129.93 ▲3.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

rt-elementor-widgets/rt-elementor-widgets.php 92% from 13 tests

The primary PHP file in "RT Elementor Widgets" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,880 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP93421992,139
JavaScript74899202,017
CSS36941724

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity10.29
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods11.82%
▷ Public methods3970.91%
▷ Protected methods1629.09%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin