84% wp-residence-add-on-for-wp-all-import

Code Review | Import Property Listings into WP Residence

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

About plugin

  • Plugin page: wp-residence-add-...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 65
  • Update frequency: every 45.6 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /14,606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▲0.06ms] Passed 4 tests

A check of server-side resources used by Import Property Listings into WP Residence
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5245.52 ▲2.91
Dashboard /wp-admin3.82 ▲0.5154.77 ▲0.97
Posts /wp-admin/edit.php3.87 ▲0.5158.76 ▲10.37
Add New Post /wp-admin/post-new.php6.34 ▲0.45101.00 ▼8.47
Media Library /wp-admin/upload.php3.68 ▲0.4541.85 ▲4.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Property Listings into WP Residence
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.25 ▼0.121.93 ▲0.2138.01 ▼2.50
Dashboard /wp-admin2,227 ▲505.62 ▲0.0292.69 ▼0.9346.17 ▼1.74
Posts /wp-admin/edit.php2,133 ▲331.99 ▼0.0243.65 ▲9.0250.64 ▲14.91
Add New Post /wp-admin/post-new.php1,402 ▼12621.41 ▼1.72578.23 ▼132.3935.90 ▼22.34
Media Library /wp-admin/upload.php1,429 ▲294.22 ▼0.0099.91 ▼9.2444.42 ▲0.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-residence-add-on-for-wp-all-import/wp-residence-add-on.php:119
    • > PHP Fatal error
      Uncaught Error: Class 'WPAI_WP_Residence_Property_Importer' not found in wp-content/plugins/wp-residence-add-on-for-wp-all-import/classes/class-importer-location.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPAI_WP_Residence_Add_On_Importer' not found in wp-content/plugins/wp-residence-add-on-for-wp-all-import/classes/class-importer-agents.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPAI_WP_Residence_Add_On_Importer' not found in wp-content/plugins/wp-residence-add-on-for-wp-all-import/classes/class-importer-properties.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: wpresidence, import wpresidence, real estate, import property listings, import real estate listings...

wp-residence-add-on-for-wp-all-import/wp-residence-add-on.php 92% from 13 tests

The entry point to "Import Property Listings into WP Residence" version 1.3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-residence-add-on-for-wp-all-import.php" instead of "wp-residence-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,430 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP96911892,428
Markdown1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity49.33
▷ Minimum class complexity3.00
▷ Maximum class complexity211.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods105
▷ Static methods10.95%
▷ Public methods10499.05%
▷ Protected methods10.95%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants4
▷ Global constants4100.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