84% ruvuv-extension-for-elementor

Code Review | Ruvuv Extension for Elementor

WordPress plugin Ruvuv Extension for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: ruvuv-extension-f...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2019
  • Latest release: Oct 16, 2019
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: ruvuv (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /2,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.71ms] Passed 4 tests

An overview of server-side resources used by Ruvuv Extension for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▼0.47
Dashboard /wp-admin3.31 ▲0.0145.16 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0146.62 ▼2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.31 ▲3.32
Media Library /wp-admin/upload.php3.24 ▲0.0132.00 ▼0.40

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Ruvuv Extension for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.23 ▼1.071.75 ▼0.0338.30 ▼2.80
Dashboard /wp-admin2,215 ▲304.85 ▼0.97101.53 ▼10.3440.25 ▼5.47
Posts /wp-admin/edit.php2,097 ▲52.17 ▲0.1639.60 ▲2.0835.83 ▲1.41
Add New Post /wp-admin/post-new.php1,523 ▼1817.74 ▼5.49685.92 ▼6.1047.25 ▼8.77
Media Library /wp-admin/upload.php1,394 ▲34.25 ▲0.09101.29 ▼8.4843.40 ▼0.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant RUVUV_EXPAND_INCLUDE_DIR - assumed 'RUVUV_EXPAND_INCLUDE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ruvuv-extension-for-elementor/includes/plugin.php on line 90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ruvuv-extension-for-elementor/includes/admin-settings.php:2
    • > PHP Warning
      require(RUVUV_EXPAND_INCLUDE_DIRmodules-manager.php): failed to open stream: No such file or directory in wp-content/plugins/ruvuv-extension-for-elementor/includes/plugin.php on line 90
    • > PHP Fatal error
      require(): Failed opening required 'RUVUV_EXPAND_INCLUDE_DIRmodules-manager.php' (include_path='.:/usr/share/php') in wp-content/plugins/ruvuv-extension-for-elementor/includes/plugin.php on line 90

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: addons, elementor widget, elementor, elementor extension, visual editor...

ruvuv-extension-for-elementor/ruvuv-extension.php 85% from 13 tests

The entry point to "Ruvuv Extension for Elementor" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ruvuv-extension-for-elementor.php" instead of "ruvuv-extension.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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8,189 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221,2421,7935,307
PHP204091442,723
CSS300159

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.94
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces15
Interfaces0
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes213.33%
Methods100
▷ Static methods55.00%
▷ Public methods8585.00%
▷ Protected methods11.00%
▷ Private methods1414.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/logo.png0.98KB0.53KB▼ 46.17%