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

Code Review | Import Properties into Real Places Theme

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

About plugin

  • Plugin page: realplaces-xml-cs...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 36
  • Update frequency: every 79.5 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.90ms] Passed 4 tests

A check of server-side resources used by Import Properties into Real Places Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.57 ▼1.73
Dashboard /wp-admin3.39 ▲0.0951.18 ▼1.29
Posts /wp-admin/edit.php3.51 ▲0.1546.77 ▼1.28
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.46 ▼11.30
Media Library /wp-admin/upload.php3.32 ▲0.0936.34 ▲2.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Import Properties into Real Places Theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.30 ▼1.494.69 ▲2.3444.88 ▲1.77
Dashboard /wp-admin2,223 ▲355.84 ▲0.9899.09 ▼19.7540.81 ▼6.10
Posts /wp-admin/edit.php2,109 ▲231.98 ▼0.0437.63 ▼0.0134.26 ▼1.64
Add New Post /wp-admin/post-new.php1,548 ▲1023.23 ▲2.10648.01 ▼64.3257.78 ▲4.33
Media Library /wp-admin/upload.php1,411 ▲234.20 ▼0.0798.64 ▼15.7942.31 ▼5.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/realplaces-xml-csv-property-listings-import/rapid-addon.php:958

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main PHP script in "Import Properties into Real Places Theme" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("realplaces-xml-csv-property-listings-import.php" instead of "realplaces-add-on.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
Success! There were no dangerous files found in this plugin1,237 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23991081,237

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.72
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin