68% easy-zillow-reviews

Code Review | Easy Zillow Reviews

WordPress plugin Easy Zillow Reviews scored68%from 54 tests.

About plugin

  • Plugin page: easy-zillow-reviews
  • Plugin version: 1.6.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2018
  • Latest release: Jul 13, 2023
  • Number of updates: 120
  • Update frequency: every 13.8 days
  • Top authors: BoltonStudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,080 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼1.57ms] Passed 4 tests

This is a short check of server-side resources used by Easy Zillow Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6539.76 ▲1.55
Dashboard /wp-admin3.96 ▲0.6648.11 ▼1.51
Posts /wp-admin/edit.php4.01 ▲0.6651.00 ▲5.38
Add New Post /wp-admin/post-new.php6.50 ▲0.6285.84 ▼11.20
Media Library /wp-admin/upload.php3.88 ▲0.6642.13 ▲4.89
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.2235.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
fs_accounts
widget_recent-posts
fs_active_plugins
widget_recent-comments
fs_debug_mode
widget_theysaidso_widget
widget_ezrwp_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Zillow Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲20214.00 ▼0.385.13 ▲3.3629.22 ▼16.91
Dashboard /wp-admin2,247 ▲584.86 ▼0.08103.51 ▼15.9140.15 ▼5.69
Posts /wp-admin/edit.php2,127 ▲381.99 ▼0.0639.71 ▲3.4939.09 ▲6.60
Add New Post /wp-admin/post-new.php6,211 ▲4,69718.98 ▲1.33911.68 ▲242.1038.19 ▼13.82
Media Library /wp-admin/upload.php1,426 ▲444.23 ▲0.0297.10 ▼2.9446.66 ▲3.87
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0851.7324.1827.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/easy-zillow-reviews/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_accounts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_ezrwp_widget
    • widget_recent-posts
    • fs_active_plugins
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-zillow-reviews/public/partials/easy-zillow-reviews-public-display.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-zillow-reviews/includes/includes.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-zillow-reviews/includes/class-easy-zillow-reviews-professional-widget.php:75
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Zillow_Reviews_Data' not found in wp-content/plugins/easy-zillow-reviews/includes/class-easy-zillow-reviews-professional.php:20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-zillow-reviews/admin/partials/easy-zillow-reviews-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
6 plugin tags: real estate, gutenberg, reviews, lender, zillow...

easy-zillow-reviews/easy-zillow-reviews.php Passed 13 tests

The primary PHP file in "Easy Zillow Reviews" version 1.6.2 is used by WordPress to initiate all plugin functionality
41 characters long description:
Display reviews from Zillow on your site.

Code Analysis 97% from 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
There were no executable files found in this plugin64,724 lines of code in 174 files:
LanguageFilesBlank linesComment linesLines of code
PHP1408,72019,31034,990
JSON20028,050
CSS17016646
LESS4216595
JavaScript772135424
SVG40019

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity69.06
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods1,464
▷ Static methods20013.66%
▷ Public methods1,07073.09%
▷ Protected methods171.16%
▷ Private methods37725.75%
Functions102
▷ Named functions10199.02%
▷ Anonymous functions10.98%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
public/images/ezrwp-sprite.png18.70KB5.78KB▼ 69.10%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%