10% houzez-respacio-import

Code Review | Respacio Houzez Import

WordPress plugin Respacio Houzez Import scored 10% from 54 tests.

About plugin

  • Plugin page: houzez-respacio-i...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: May 26, 2022
  • Number of updates: 9
  • Update frequency: every 88.9 days
  • Top authors: respacio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 782 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/admin-page.php+701
    Undefined index: flag

Server metrics [RAM: ▼1.32MB] [CPU: ▼52.85ms] Passed 4 tests

This is a short check of server-side resources used by Respacio Houzez Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.797.07 ▼29.72
Dashboard /wp-admin2.69 ▼0.617.85 ▼38.17
Posts /wp-admin/edit.php2.69 ▼0.6610.17 ▼49.09
Add New Post /wp-admin/post-new.php2.69 ▼3.198.15 ▼94.43
Media Library /wp-admin/upload.php2.69 ▼0.547.67 ▼26.20
Export /wp-admin/admin.php?page=respacio_houzez_export2.698.38
Import /wp-admin/admin.php?page=respacio_houzez_import2.6910.90

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Respacio Houzez Import
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.29 ▼1.101.96 ▲0.0644.29 ▲5.57
Dashboard /wp-admin2,236 ▲485.89 ▲0.03106.79 ▼11.4742.08 ▼3.73
Posts /wp-admin/edit.php2,116 ▲242.05 ▲0.0639.40 ▼1.1934.88 ▼5.38
Add New Post /wp-admin/post-new.php1,537 ▲423.41 ▲0.11668.23 ▲79.1750.22 ▲1.82
Media Library /wp-admin/upload.php1,418 ▲334.20 ▼0.05102.00 ▼2.1243.70 ▼0.50
Export /wp-admin/admin.php?page=respacio_houzez_export8392.0325.5625.58
Import /wp-admin/admin.php?page=respacio_houzez_import8292.0224.1629.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/admin-page.php+701
    Undefined index: flag
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=respacio_houzez_import
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/admin-page.php+701
    Undefined index: flag
    • > GET request to /wp-admin/admin.php?page=respacio_houzez_export
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/template/export.php+18
    Undefined index: submit
    • > GET request to /wp-admin/admin.php?page=respacio_houzez_import
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/template/api-varification.php+4
    Undefined index: property_verification_api
    • > GET request to /wp-admin/admin.php?page=respacio_houzez_import
    • > Notice in wp-content/plugins/houzez-respacio-import/includes/template/api-varification.php+18
    Undefined index: property_sync_property

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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/houzez-respacio-import/includes/admin-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/houzez-respacio-import/includes/admin-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/houzez-respacio-import/includes/template/api-varification.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/houzez-respacio-import/includes/template/export.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This screen for import export data or API), #2 (This screen for enter API key for import data), #3 (Screen for export properties)
You can look at the official readme.txt

houzez-respacio-import/respacio-import.php 92% from 13 tests

"Respacio Houzez Import" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("houzez-respacio-import.php" instead of "respacio-import.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,750 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44301261,565
CSS11214157
JavaScript13528

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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 functions24100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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