84% reales-wp-xml-csv-property-listings-import

Code Review | Import Properties into the Reales WP Theme

WordPress plugin Import Properties into the Reales WP Theme scored 84% from 54 tests.

About plugin

  • Plugin page: reales-wp-xml-csv...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 4, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 45
  • Update frequency: every 65.8 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 5,342 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.08MB] [CPU: ▼6.04ms] Passed 4 tests

Server-side resources used by Import Properties into the Reales WP Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.49 ▲2.60
Dashboard /wp-admin3.38 ▲0.0847.52 ▼5.00
Posts /wp-admin/edit.php3.49 ▲0.1450.03 ▼2.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.99 ▼19.13
Media Library /wp-admin/upload.php3.30 ▲0.0838.13 ▲6.62

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Import Properties into the Reales WP Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.72 ▼0.961.88 ▼0.5838.24 ▼1.57
Dashboard /wp-admin2,232 ▲415.85 ▲0.96103.65 ▼5.9539.82 ▼8.22
Posts /wp-admin/edit.php2,112 ▲202.07 ▲0.0540.71 ▼0.7336.47 ▼2.79
Add New Post /wp-admin/post-new.php1,552 ▲1023.56 ▲5.28608.16 ▲0.6052.34 ▲4.93
Media Library /wp-admin/upload.php1,411 ▲234.22 ▼0.0296.26 ▼5.2941.15 ▼3.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reales-wp-xml-csv-property-listings-import/rapid-addon.php:958

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: import reales wp listings, reales wp, import real estate listings, import reales wp properties, import property listings...

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

The primary PHP file in "Import Properties into the Reales WP Theme" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("reales-wp-xml-csv-property-listings-import.php" instead of "reales-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,395 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25561311,392
Markdown1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin