62% ultimate-row-gradient-light

Code Review | Ultimate Row Gradient Light

WordPress plugin Ultimate Row Gradient Light scored62%from 54 tests.

About plugin

  • Plugin page: ultimate-row-grad...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Oct 13, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /396 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.91MB] [CPU: ▼34.21ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Row Gradient Light
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.19 ▼2.58
Dashboard /wp-admin3.04 ▼0.2623.67 ▼28.88
Posts /wp-admin/edit.php3.04 ▼0.3226.12 ▼22.92
Add New Post /wp-admin/post-new.php3.04 ▼2.8523.15 ▼75.16
Media Library /wp-admin/upload.php3.04 ▼0.1922.55 ▼9.89
Row Gradient /wp-admin/options-general.php?page=urg_dashboard3.0423.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Ultimate Row Gradient Light: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲20114.97 ▲0.531.75 ▼0.1340.01 ▼3.88
Dashboard /wp-admin2,377 ▲1916.61 ▲1.66134.71 ▲20.7639.85 ▼2.96
Posts /wp-admin/edit.php2,280 ▲1943.52 ▲1.5256.69 ▲16.3535.81 ▲3.72
Add New Post /wp-admin/post-new.php1,539 ▲2021.26 ▼1.97646.21 ▼2.3335.90 ▼17.66
Media Library /wp-admin/upload.php1,422 ▲374.31 ▲0.1383.32 ▼17.9742.75 ▲0.53
Row Gradient /wp-admin/options-general.php?page=urg_dashboard1,0433.4141.1744.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=urg_dashboard
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=urg_dashboard
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/ultimate-magnium-addons): failed to open dir: No such file or directory

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ultimate-row-gradient-light/includes/vc_templates/vc_row.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ultimate-row-gradient-light/includes/shortcodes/vc-row-custom.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-row-gradient-light/includes/dashboard/templates/header.php:12
    • > PHP Warning
      Use of undefined constant URGL_PLUGIN_PATH - assumed 'URGL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-row-gradient-light/includes/dashboard/dashboard.php on line 15
    • > PHP Warning
      require_once(URGL_PLUGIN_PATHincludes/dashboard/classes/plugin-welcome.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-row-gradient-light/includes/dashboard/dashboard.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'URGL_PLUGIN_PATHincludes/dashboard/classes/plugin-welcome.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-row-gradient-light/includes/dashboard/dashboard.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-row-gradient-light/includes/shortcodes.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ultimate-row-gradient-light/includes/dashboard/classes/plugin-welcome.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ultimate-row-gradient-light/ultimate-row-gradient-light.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wpbakery, backgrounds, gradient background, pagebuilder, row gradient background...

ultimate-row-gradient-light/ultimate-row-gradient-light.php 92% from 13 tests

The principal PHP file in "Ultimate Row Gradient Light" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin636 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8120114528
CSS287108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/developer-icon.png4.52KB4.86KB0.00%