78% widgets-for-zillow-reviews

Code Review | Widgets for Zillow Reviews

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

About plugin

  • Plugin page: widgets-for-zillo...
  • 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: Dec 3, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 102
  • Update frequency: every 10.7 days
  • Top authors: trustindex (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /11,363 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Widgets for Zillow Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1248.58 ▲11.55
Dashboard /wp-admin4.46 ▲1.1164.83 ▲5.40
Posts /wp-admin/edit.php4.49 ▲1.1358.73 ▲7.75
Add New Post /wp-admin/post-new.php7.10 ▲1.2193.70 ▼1.49
Media Library /wp-admin/upload.php4.34 ▲1.1046.46 ▲15.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Widgets for Zillow Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.22 ▼0.051.59 ▼0.0540.10 ▲1.90
Dashboard /wp-admin2,214 ▲365.68 ▼0.0793.42 ▼18.5588.42 ▲41.65
Posts /wp-admin/edit.php2,122 ▲222.03 ▲0.0238.19 ▼4.0632.88 ▼4.02
Add New Post /wp-admin/post-new.php6,379 ▲4,85027.54 ▲4.24855.37 ▲175.0136.30 ▼24.20
Media Library /wp-admin/upload.php1,413 ▲134.14 ▼0.0596.31 ▼6.8647.87 ▲2.33

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/feature_request.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/setup_trustindex.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/setup_trustindex_join.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/trustindex-zillow-widget.class.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/widgets-for-zillow-reviews.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/setup_no_reg_header.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/advanced.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/settings.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/my_reviews.php
    • > /wp-content/plugins/widgets-for-zillow-reviews/tabs/rate.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/widgets-for-zillow-reviews/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-zillow-reviews/include/schema.php:4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widgets-for-zillow-reviews/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_zillow' not found in wp-content/plugins/widgets-for-zillow-reviews/tabs/setup_no_reg_platform.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_zillow' not found in wp-content/plugins/widgets-for-zillow-reviews/tabs/demo_widgets.php:6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/widgets-for-zillow-reviews/include/activate.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'TrustindexPlugin_zillow' not found in wp-content/plugins/widgets-for-zillow-reviews/tabs/_get_more_customers.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widgets-for-zillow-reviews/tabs/setup_no_reg.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/widgets-for-zillow-reviews/include/troubleshooting.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/widgets-for-zillow-reviews/include/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,474 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343389,281
JavaScript63011751,018
CSS413063
SVG32060
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

Often times overlooked, PNG files can occupy unnecessary space in 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/platforms.png10.24KB4.08KB▼ 60.12%
static/img/no.png1.92KB0.28KB▼ 85.53%
static/img/yes.png1.91KB0.25KB▼ 87.08%
static/img/trustindex-sign-logo.png3.34KB0.59KB▼ 82.47%