79% review-widgets-for-arukereso

Code Review | Widgets for Árukereső Reviews

WordPress plugin Widgets for Árukereső Reviews scored79%from 54 tests.

About plugin

  • Plugin page: review-widgets-fo...
  • Plugin version: 11.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: May 14, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 164
  • Update frequency: every 7.9 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.12MB] [CPU: ▲0.12ms] Passed 4 tests

This is a short check of server-side resources used by Widgets for Árukereső Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1245.85 ▲2.63
Dashboard /wp-admin4.46 ▲1.1155.76 ▼6.00
Posts /wp-admin/edit.php4.49 ▲1.1358.34 ▲10.38
Add New Post /wp-admin/post-new.php7.10 ▲1.2189.03 ▼6.52
Media Library /wp-admin/upload.php4.34 ▲1.1048.61 ▲12.38

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: 1 new table, 8 new options
New tables
wp_trustindex_arukereso_reviews
New WordPress options
trustindex-arukereso-version
trustindex-arukereso-active
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Widgets for Árukereső Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7214.72 ▲0.372.06 ▲0.4439.80 ▼7.36
Dashboard /wp-admin2,214 ▲375.58 ▼0.0794.24 ▼5.2885.68 ▲42.65
Posts /wp-admin/edit.php2,125 ▲251.97 ▲0.0338.24 ▼0.2634.41 ▲2.18
Add New Post /wp-admin/post-new.php6,212 ▲4,68618.95 ▼4.16905.51 ▲234.0440.68 ▼24.94
Media Library /wp-admin/upload.php1,419 ▲194.24 ▲0.08101.66 ▲5.0874.29 ▲32.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/setup_trustindex_join.php
    • > /wp-content/plugins/review-widgets-for-arukereso/review-widgets-for-arukereso.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/feature_request.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/setup_no_reg_header.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/get_reviews.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/rate.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/my_reviews.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/setup_trustindex.php
    • > /wp-content/plugins/review-widgets-for-arukereso/settings.php
    • > /wp-content/plugins/review-widgets-for-arukereso/tabs/advanced.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/review-widgets-for-arukereso/include/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_arukereso' not found in wp-content/plugins/review-widgets-for-arukereso/tabs/setup_no_reg_platform.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/review-widgets-for-arukereso/tabs/setup_no_reg.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/review-widgets-for-arukereso/include/schema.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/review-widgets-for-arukereso/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_arukereso' not found in wp-content/plugins/review-widgets-for-arukereso/tabs/_get_more_customers.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_arukereso' not found in wp-content/plugins/review-widgets-for-arukereso/tabs/demo_widgets.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_arukereso' not found in wp-content/plugins/review-widgets-for-arukereso/tabs/_rate_us_feedback.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/review-widgets-for-arukereso/include/troubleshooting.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/review-widgets-for-arukereso/include/activate.php on line 2

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
10 plugin tags: rukeres, arukereso, reviews, widget, rating...

review-widgets-for-arukereso/review-widgets-for-arukereso.php Passed 13 tests

The main file in "Widgets for Árukereső Reviews" v. 11.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
124 characters long description:
Embed Árukereső reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Árukereső reviews.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected10,475 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343389,280
JavaScript63011751,018
CSS413063
SVG52062
JSON10052

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity127.00
▷ Minimum class complexity10.00
▷ Maximum class complexity348.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods98
▷ Static methods66.12%
▷ Public methods9697.96%
▷ Protected methods00.00%
▷ Private methods22.04%
Functions17
▷ Named functions847.06%
▷ Anonymous functions952.94%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/img/no.png1.92KB0.28KB▼ 85.53%
static/img/platforms.png10.24KB4.08KB▼ 60.12%
static/img/yes.png1.91KB0.25KB▼ 87.08%
static/img/trustindex-sign-logo.png3.34KB0.59KB▼ 82.47%