84% uwi-homes-widget

Code Review | UWI Homes Widget

WordPress plugin UWI Homes Widget scored84%from 54 tests.

About plugin

  • Plugin page: uwi-homes-widget
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Dec 7, 2022
  • Number of updates: 8
  • Update frequency: every 11.0 days
  • Top authors: uwiguanlao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.01ms] Passed 4 tests

Server-side resources used by UWI Homes Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.13 ▼4.75
Dashboard /wp-admin3.33 ▲0.0347.24 ▼1.24
Posts /wp-admin/edit.php3.38 ▲0.0348.91 ▲2.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.61 ▼15.67
Media Library /wp-admin/upload.php3.25 ▲0.0235.21 ▼2.38
UWI Settings /wp-admin/options-general.php?page=uwi-settings3.2232.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for UWI Homes Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.37 ▼0.945.02 ▲2.9038.84 ▼4.89
Dashboard /wp-admin2,210 ▲225.87 ▲0.9897.49 ▼10.3439.79 ▼3.50
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0037.23 ▲1.5333.99 ▲0.15
Add New Post /wp-admin/post-new.php1,522 ▲223.53 ▲0.39706.84 ▲27.3354.82 ▼3.55
Media Library /wp-admin/upload.php1,395 ▲104.20 ▼0.0598.15 ▼7.3443.61 ▼3.04
UWI Settings /wp-admin/options-general.php?page=uwi-settings7952.0224.9829.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/uwi-homes-widget/uwihomes-widget.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: uwi, widget, home loan, uwi homes, house loan...

uwi-homes-widget/uwihomes-widget.php 92% from 13 tests

The primary PHP file in "UWI Homes Widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uwi-homes-widget.php" instead of "uwihomes-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151569

PHP code Passed 2 tests

An short overview of 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.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin