84% wp-property-feed-to-residence-theme-connector

Code Review | WP Property Feed Connector for Residence Theme

WordPress plugin WP Property Feed Connector for Residence Theme scored84%from 54 tests.

About plugin

  • Plugin page: wp-property-feed-...
  • Plugin version: 1.30
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 34
  • Update frequency: every 57.6 days
  • Top authors: ultimatewebuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.97ms] Passed 4 tests

Server-side resources used by WP Property Feed Connector for Residence Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1738.35 ▼0.18
Dashboard /wp-admin3.45 ▲0.1545.12 ▼4.09
Posts /wp-admin/edit.php3.57 ▲0.2151.28 ▲5.73
Add New Post /wp-admin/post-new.php6.04 ▲0.1493.80 ▼0.32
Media Library /wp-admin/upload.php3.38 ▲0.1434.59 ▲0.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
wp_estate_custom_fields
wpresidence_admin
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
wp_estate_status_list

Browser metrics Passed 4 tests

WP Property Feed Connector for Residence Theme: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4314.54 ▲0.191.73 ▲0.0937.95 ▼6.76
Dashboard /wp-admin2,206 ▲285.50 ▼0.1292.86 ▼16.9568.69 ▲20.02
Posts /wp-admin/edit.php2,114 ▲141.95 ▼0.0539.06 ▲1.2235.20 ▼1.12
Add New Post /wp-admin/post-new.php1,543 ▲1723.31 ▲0.16710.35 ▲10.3048.74 ▼3.70
Media Library /wp-admin/upload.php1,414 ▲144.22 ▲0.0898.97 ▼9.9772.24 ▲28.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • wp_estate_status_list
    • wpresidence_admin
    • wp_estate_custom_fields
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-property-feed-to-residence-theme-connector/residence-wppf-connector.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-property-feed-to-residence-theme-connector/residence-wppf-connector.php 92% from 13 tests

The primary PHP file in "WP Property Feed Connector for Residence Theme" version 1.30 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-property-feed-to-residence-theme-connector.php" instead of "residence-wppf-connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected584 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16250583
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wppf.png1.26KB0.65KB▼ 48.61%