78% revolution-for-elementor

Code Review | Revolution for Elementor

WordPress plugin Revolution for Elementor scored 78% from 54 tests.

About plugin

  • Plugin page: revolution-for-el...
  • Plugin version: 0.0.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.5
  • WordPress version: 5.9.2
  • First release: Apr 21, 2018
  • Latest release: Dec 23, 2018
  • Number of updates: 12
  • Update frequency: every 20.5 days
  • Top authors: janthielemann (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 4,252 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.16MB] [CPU: ▼279.41ms] Passed 4 tests

This is a short check of server-side resources used by Revolution for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.61 ▲2.1064.68 ▲12.93
Dashboard /wp-admin5.60 ▲2.2053.24 ▲19.75
Posts /wp-admin/edit.php5.83 ▲2.1960.13 ▲20.23
Add New Post /wp-admin/post-new.php9.11 ▲2.14112.96 ▼1,167.56
Media Library /wp-admin/upload.php5.58 ▲2.2941.11 ▲17.26
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius5.6346.78

Server storage [IO: ▲2.20MB] [DB: ▼0.02MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 214 new files
Database: no new tables, 6 new options
New WordPress options
fs_api_cache
fs_debug_mode
fs_active_plugins
fs_accounts
jt_revolution_for_elementor_extensions
jt_revolution_for_elementor_widgets

Browser metrics Passed 4 tests

This is an overview of browser requirements for Revolution for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,221 ▲46718.05 ▲2.138.94 ▲2.493.09 ▲0.34
Dashboard /wp-admin3,206 ▲3458.36 ▲2.08140.32 ▲7.41168.36 ▲8.93
Posts /wp-admin/edit.php3,047 ▲3535.47 ▲2.2381.92 ▲17.26161.43 ▲19.12
Add New Post /wp-admin/post-new.php1,734 ▲7319.15 ▲3.46416.54 ▼12.45173.89 ▲20.99
Media Library /wp-admin/upload.php1,833 ▲1325.74 ▲0.33110.75 ▼31.17198.43 ▲14.68
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius1,7174.8571.91130.81

Uninstaller [IO: ▲0.00MB] [DB: ▼0.02MB] 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 were found after uninstall: 6 options
    • fs_api_cache
    • fs_accounts
    • jt_revolution_for_elementor_extensions
    • fs_active_plugins
    • jt_revolution_for_elementor_widgets
    • fs_debug_mode

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/revolution-for-elementor/includes/freemius/templates/ajax-loader.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'RevolutionForElementor\\Base\\Extension_Base' not found in wp-content/plugins/revolution-for-elementor/includes/extensions/particles.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'RevolutionForElementor\\Base\\Extension_Base' not found in wp-content/plugins/revolution-for-elementor/includes/extensions/flex-columns.php:8

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === revolution-for-elementor === )
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

revolution-for-elementor/revolution-for-elementor.php Passed 13 tests

The main PHP file in "Revolution for Elementor" ver. 0.0.19 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Revolution for Elementor adds new features and widgets for Elementor and Elementor Pro.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin33,533 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP1145,04612,42022,575
PO File72,9983,4146,627
Sass21345762,159
JavaScript84622401,437
JSON500467
Markdown1610192
CSS1413876

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,332)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity37.32
▷ Minimum class complexity1.00
▷ Maximum class complexity1,332.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes62
▷ Abstract classes46.45%
▷ Concrete classes5893.55%
▷ Final classes00.00%
Methods963
▷ Static methods14014.54%
▷ Public methods73276.01%
▷ Protected methods383.95%
▷ Private methods19320.04%
Functions98
▷ Named functions9394.90%
▷ Anonymous functions55.10%
Constants120
▷ Global constants9579.17%
▷ Class constants2520.83%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/jt-revolution-for-elementor.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/revolution-for-elementor.png26.85KB11.82KB▼ 55.96%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%