84% review-widget-addon-for-elementor

Code Review | Review widget addon for Elementor

WordPress plugin Review widget addon for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: review-widget-add...
  • Plugin version: 2.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: May 26, 2021
  • Latest release: Feb 8, 2023
  • Number of updates: 15
  • Update frequency: every 45.3 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /3,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Review widget addon for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.40 ▼3.42
Dashboard /wp-admin3.33 ▼0.0247.82 ▼18.84
Posts /wp-admin/edit.php3.38 ▲0.0249.69 ▼1.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.69 ▼18.89
Media Library /wp-admin/upload.php3.25 ▲0.0235.52 ▲0.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Review widget addon for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.26 ▼0.281.99 ▲0.3240.59 ▼0.86
Dashboard /wp-admin2,214 ▲375.59 ▼0.0884.85 ▼9.3245.04 ▼2.35
Posts /wp-admin/edit.php2,116 ▲132.14 ▲0.1638.28 ▲1.0534.99 ▼1.36
Add New Post /wp-admin/post-new.php1,537 ▲923.75 ▲0.58683.91 ▼8.2354.91 ▲6.42
Media Library /wp-admin/upload.php1,416 ▲164.19 ▼0.02100.95 ▼2.3545.80 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/review-widget-addon-for-elementor/index.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: elementor, widget, recommendations, elementor addon, reviews

review-widget-addon-for-elementor/review-widget-addon-for-elementor.php 92% from 13 tests

"Review widget addon for Elementor" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin302 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3018302

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin