84% wp-pro-real-estate-7-xml-csv-property-listings-import

Code Review | Import Listings into WP Pro Real Estate 7

WordPress plugin Import Listings into WP Pro Real Estate 7 scored84%from 54 tests.

About plugin

  • Plugin page: wp-pro-real-estat...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 40
  • Update frequency: every 71.5 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,231 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▲1.48ms] Passed 4 tests

This is a short check of server-side resources used by Import Listings into WP Pro Real Estate 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2843.11 ▲0.64
Dashboard /wp-admin3.58 ▲0.2853.01 ▲3.61
Posts /wp-admin/edit.php3.69 ▲0.3451.20 ▲1.17
Add New Post /wp-admin/post-new.php6.16 ▲0.27105.28 ▲0.51
Media Library /wp-admin/upload.php3.50 ▲0.2743.70 ▲3.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Listings into WP Pro Real Estate 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7413.27 ▼1.164.78 ▲2.4143.63 ▲0.15
Dashboard /wp-admin2,241 ▲384.85 ▼1.01110.84 ▲0.4042.91 ▼0.74
Posts /wp-admin/edit.php2,121 ▲212.02 ▼0.0040.31 ▼2.1636.11 ▲0.83
Add New Post /wp-admin/post-new.php1,541 ▼717.40 ▼5.87739.39 ▲83.7654.42 ▼2.71
Media Library /wp-admin/upload.php1,420 ▲204.29 ▲0.03118.73 ▲4.0849.83 ▲1.80

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-pro-real-estate-7-xml-csv-property-listings-import/wp-pro-realestate-7-add-on.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-pro-real-estate-7-xml-csv-property-listings-import/wp-pro-realestate-7-add-on.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-pro-real-estate-7-xml-csv-property-listings-import/rapid-addon.php:958
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-pro-real-estate-7-xml-csv-property-listings-import/wp-pro-realestate-7-add-on.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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: import property listings, import real estate, import properties, real estate, import wp pro real estate listings...

wp-pro-real-estate-7-xml-csv-property-listings-import/wp-pro-realestate-7-add-on.php 92% from 13 tests

The main PHP file in "Import Listings into WP Pro Real Estate 7" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-pro-real-estate-7-xml-csv-property-listings-import.php" instead of "wp-pro-realestate-7-add-on.php")

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
There were no executable files found in this plugin1,369 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25001121,369

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected