84% review-widget-addon-for-divi

Code Review | Review widget addon for Divi

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

About plugin

  • Plugin page: review-widget-add...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 10, 2021
  • Latest release: Mar 22, 2023
  • Number of updates: 4
  • Update frequency: every 162.5 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,008 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.17ms] Passed 4 tests

An overview of server-side resources used by Review widget addon for Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.08 ▲6.30
Dashboard /wp-admin3.32 ▲0.0241.68 ▼8.23
Posts /wp-admin/edit.php3.37 ▲0.0245.71 ▼5.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0276.32 ▼12.59
Media Library /wp-admin/upload.php3.25 ▲0.0233.45 ▲1.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Review widget addon for Divi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.21 ▼1.152.72 ▲0.9940.95 ▲1.67
Dashboard /wp-admin2,233 ▲425.87 ▲0.83110.04 ▲8.9442.56 ▼0.93
Posts /wp-admin/edit.php2,116 ▲272.05 ▲0.0440.95 ▼2.1037.16 ▲0.07
Add New Post /wp-admin/post-new.php1,555 ▲2423.19 ▲4.98645.22 ▲36.2946.70 ▼10.39
Media Library /wp-admin/upload.php1,415 ▲244.26 ▲0.08103.01 ▲8.3943.47 ▼1.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/review-widget-addon-for-divi/includes/TrustindexDivi.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/review-widget-addon-for-divi/includes/modules/TrustindexAddon/TrustindexAddon.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: divi addon, recommendations, divi, widget, reviews

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

The main PHP file in "Review widget addon for Divi" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected257 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP44970243
JavaScript54312
CSS1001
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected