83% rh-wp-property-feed

Code Review | WP Property Feed Connector for RealHomes Theme

WordPress plugin WP Property Feed Connector for RealHomes Theme scored83%from 54 tests.

About plugin

  • Plugin page: rh-wp-property-feed
  • Plugin version: 1.52
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Oct 3, 2023
  • Number of updates: 56
  • Update frequency: every 37.1 days
  • Top authors: ultimatewebuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.04ms] Passed 4 tests

Analyzing server-side resources used by WP Property Feed Connector for RealHomes Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1343.88 ▲4.09
Dashboard /wp-admin3.44 ▲0.1345.14 ▼7.19
Posts /wp-admin/edit.php3.55 ▲0.1946.98 ▲1.21
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.25 ▲4.13
Media Library /wp-admin/upload.php3.36 ▲0.1336.91 ▼2.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Property Feed Connector for RealHomes Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.29 ▼1.111.61 ▼0.2640.25 ▼4.17
Dashboard /wp-admin2,213 ▲275.01 ▲0.0695.79 ▼18.1475.69 ▲35.85
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0238.99 ▼2.1633.47 ▼0.94
Add New Post /wp-admin/post-new.php1,537 ▼523.15 ▲4.92676.89 ▲65.6964.88 ▲5.27
Media Library /wp-admin/upload.php1,398 ▲74.27 ▼0.0494.90 ▼9.6773.42 ▲30.66

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

Smoke tests 75% 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)
Everything seems fine, however 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 action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rh-wp-property-feed/wppf-real-homes.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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

rh-wp-property-feed/wppf-real-homes.php 85% from 13 tests

This is the main PHP file of "WP Property Feed Connector for RealHomes Theme" version 1.52, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rh-wp-property-feed.php" instead of "wppf-real-homes.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin546 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16052546

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%