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

Code Review | Import Property Listings into Realia

WordPress plugin Import Property Listings into Realia scored84%from 54 tests.

About plugin

  • Plugin page: realia-xml-csv-pr...
  • Plugin version: 2.0.9
  • 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: 57
  • Update frequency: every 52.3 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,837 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.25MB] [CPU: ▼5.86ms] Passed 4 tests

This is a short check of server-side resources used by Import Property Listings into Realia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.27 ▲1.92
Dashboard /wp-admin3.55 ▲0.2546.45 ▼5.34
Posts /wp-admin/edit.php3.67 ▲0.3149.27 ▲5.05
Add New Post /wp-admin/post-new.php6.14 ▲0.2584.08 ▼19.97
Media Library /wp-admin/upload.php3.48 ▲0.2535.57 ▼0.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Property Listings into Realia
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.25 ▼0.291.65 ▲0.0242.99 ▲4.70
Dashboard /wp-admin2,212 ▲415.57 ▲0.0082.15 ▼7.1136.30 ▼3.99
Posts /wp-admin/edit.php2,121 ▲212.01 ▼0.0234.45 ▼4.9834.03 ▼0.35
Add New Post /wp-admin/post-new.php1,541 ▲1522.92 ▼0.36674.75 ▲7.0757.07 ▼3.90
Media Library /wp-admin/upload.php1,420 ▲204.21 ▲0.0996.93 ▼15.6742.24 ▼3.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/realia-xml-csv-property-listings-import/realia-add-on.php on line 16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/realia-xml-csv-property-listings-import/realia-add-on.php on line 16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/realia-xml-csv-property-listings-import/realia-add-on.php on line 16

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, but this is not an exhaustive test

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
9 plugin tags: real estate, realia, import realia properties, import real estate, import realia listings...

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

"Import Property Listings into Realia" version 2.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("realia-xml-csv-property-listings-import.php" instead of "realia-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,534 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26081371,532
Markdown1102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin