84% realhomes-xml-csv-property-listings-import

Code Review | Import Properties into RealHomes Theme

WordPress plugin Import Properties into RealHomes Theme scored84%from 54 tests.

About plugin

  • Plugin page: realhomes-xml-csv...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 66
  • Update frequency: every 45.2 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /12,784 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by Import Properties into RealHomes Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1250.23 ▲7.86
Dashboard /wp-admin3.42 ▲0.1150.92 ▼2.71
Posts /wp-admin/edit.php3.53 ▲0.1749.11 ▼1.02
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.38 ▼8.30
Media Library /wp-admin/upload.php3.34 ▲0.1138.59 ▼3.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Import Properties into RealHomes Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲5114.43 ▲0.052.00 ▼0.0946.62 ▲4.95
Dashboard /wp-admin2,221 ▲415.64 ▲0.0293.91 ▲3.6042.06 ▼0.50
Posts /wp-admin/edit.php2,127 ▲272.04 ▲0.0339.85 ▼0.4237.32 ▼0.07
Add New Post /wp-admin/post-new.php1,544 ▲14023.43 ▲5.02623.08 ▼11.2556.13 ▲9.83
Media Library /wp-admin/upload.php1,423 ▲234.17 ▲0.05101.31 ▼19.4746.82 ▼4.96

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/realhomes-xml-csv-property-listings-import/rapid-addon.php:958

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

realhomes-xml-csv-property-listings-import/realhomes-add-on.php 92% from 13 tests

The main PHP file in "Import Properties into RealHomes Theme" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("realhomes-xml-csv-property-listings-import.php" instead of "realhomes-add-on.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 plugin1,290 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23971121,290

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity204.00
▷ Minimum class complexity204.00
▷ Maximum class complexity204.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG files were detected