78% wcc-zillow-reviews-free

Code Review | WCC Zillow Reviews Free

WordPress plugin WCC Zillow Reviews Free scored78%from 54 tests.

About plugin

  • Plugin page: wcc-zillow-review...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.7
  • WordPress version: 6.3.1
  • First release: May 24, 2021
  • Latest release: Jun 12, 2021
  • Number of updates: 8
  • Update frequency: every 2.6 days
  • Top authors: weconnectcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /344 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.47ms] Passed 4 tests

Server-side resources used by WCC Zillow Reviews Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0534.95 ▼4.19
Dashboard /wp-admin3.35 ▲0.0545.15 ▼2.95
Posts /wp-admin/edit.php3.40 ▲0.0442.36 ▼4.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.59 ▼21.89
Media Library /wp-admin/upload.php3.27 ▲0.0436.08 ▲1.87

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
zillow_review_db_version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WCC Zillow Reviews Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.25 ▼0.323.29 ▲1.5841.57 ▲2.50
Dashboard /wp-admin2,213 ▲365.59 ▲0.0081.96 ▼5.5776.46 ▲36.69
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0134.97 ▼1.5431.75 ▼1.54
Add New Post /wp-admin/post-new.php1,554 ▲2622.99 ▼0.26661.17 ▼10.1263.86 ▲12.49
Media Library /wp-admin/upload.php1,415 ▲154.18 ▼0.0896.25 ▼4.7571.44 ▲28.71

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wcc-zillow-reviews-free/includes/reviews.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: zillow_review in wp-content/plugins/wcc-zillow-reviews-free/includes/reviews.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wcc-zillow-reviews-free/wcc_zillow_reviews_free.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wcc-zillow-reviews-free/includes/setting.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
1 plugin tags: zillow review

wcc-zillow-reviews-free/wcc_zillow_reviews_free.php 92% from 13 tests

This is the main PHP file of "WCC Zillow Reviews Free" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wcc-zillow-reviews-free.php" instead of "wcc_zillow_reviews_free.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,796 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS35718754
SVG1506547
PHP3298493
JavaScript12142

PHP code Passed 2 tests

Analyzing 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.59
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/placeholder-2.png37.42KB0.00KB▼ 100.00%
img/placeholder-3.png3.68KB1.60KB▼ 56.48%
img/star.png0.50KB0.41KB▼ 17.58%
img/setting-lines.png7.02KB7.42KB0.00%
img/placeholder-1.png131.37KB131.60KB0.00%