78% widgets-for-ebay-reviews

Code Review | Widgets for Ebay Reviews

WordPress plugin Widgets for Ebay Reviews scored78%from 54 tests.

About plugin

  • Plugin page: widgets-for-ebay-...
  • 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: Aug 25, 2021
  • Latest release: Nov 24, 2023
  • Number of updates: 71
  • Update frequency: every 11.8 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /10,185 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Widgets for Ebay Reviews
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1247.94 ▲3.89
Dashboard /wp-admin4.46 ▲1.1153.26 ▼10.49
Posts /wp-admin/edit.php4.49 ▲1.1358.70 ▲9.37
Add New Post /wp-admin/post-new.php7.10 ▲1.2189.01 ▼7.64
Media Library /wp-admin/upload.php4.34 ▲1.1043.28 ▲6.40

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 131 new files
Database: 1 new table, 8 new options
New tables
wp_trustindex_ebay_reviews
New WordPress options
widget_recent-posts
trustindex-ebay-version
trustindex-ebay-active
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Widgets for Ebay Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.67 ▼0.051.52 ▼0.1542.23 ▼0.85
Dashboard /wp-admin2,199 ▲225.60 ▼0.0294.51 ▼1.8284.23 ▲42.98
Posts /wp-admin/edit.php2,122 ▲192.00 ▲0.0337.50 ▼2.9334.40 ▲1.86
Add New Post /wp-admin/post-new.php6,379 ▲4,83627.80 ▲4.70939.33 ▲324.1739.81 ▼8.42
Media Library /wp-admin/upload.php1,419 ▲194.25 ▲0.0796.34 ▲0.3065.32 ▲24.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/setup_trustindex.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/get_reviews.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/setup_trustindex_join.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/trustindex-ebay-widget.class.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/rate.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/feature_request.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/setup_no_reg_header.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/advanced.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/tabs/my_reviews.php
    • > /wp-content/plugins/widgets-for-ebay-reviews/settings.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/widgets-for-ebay-reviews/include/troubleshooting.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-ebay-reviews/include/schema.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-ebay-reviews/tabs/setup_no_reg.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_ebay' not found in wp-content/plugins/widgets-for-ebay-reviews/tabs/_get_more_customers.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-ebay-reviews/include/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_ebay' not found in wp-content/plugins/widgets-for-ebay-reviews/tabs/setup_no_reg_platform.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_ebay' not found in wp-content/plugins/widgets-for-ebay-reviews/tabs/_rate_us_feedback.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgets-for-ebay-reviews/include/activate.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/widgets-for-ebay-reviews/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_ebay' not found in wp-content/plugins/widgets-for-ebay-reviews/tabs/demo_widgets.php:6

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

widgets-for-ebay-reviews/widgets-for-ebay-reviews.php Passed 13 tests

The principal PHP file in "Widgets for Ebay Reviews" v. 11.1 is loaded by WordPress automatically on each request
110 characters long description:
Embed Ebay reviews fast and easily into your WordPress site. Increase SEO, trust and sales using Ebay reviews.

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
There were no executable files found in this plugin10,477 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343389,284
JavaScript63011751,018
CSS413063
SVG32060
JSON10052

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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/yes.png1.91KB0.25KB▼ 87.08%
static/img/platforms.png10.24KB4.08KB▼ 60.12%
static/img/trustindex-sign-logo.png3.34KB0.59KB▼ 82.47%
static/img/no.png1.92KB0.28KB▼ 85.53%