78% wp-real-estate-sync

Code Review | WP Real Estate Sync

WordPress plugin WP Real Estate Sync scored78%from 54 tests.

About plugin

  • Plugin page: wp-real-estate-sync
  • Plugin version: 0.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Aug 5, 2014
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: studionet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.65ms] Passed 4 tests

A check of server-side resources used by WP Real Estate Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.47 ▼0.44
Dashboard /wp-admin3.31 ▼0.0447.87 ▼23.20
Posts /wp-admin/edit.php3.36 ▲0.0047.61 ▼6.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.50 ▼14.83
Media Library /wp-admin/upload.php3.23 ▲0.0037.30 ▼1.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Real Estate Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲6713.56 ▼0.822.05 ▲0.0745.20 ▼0.12
Dashboard /wp-admin2,220 ▲324.85 ▼1.01105.47 ▼6.9242.81 ▲1.83
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0336.91 ▼2.8937.82 ▼3.07
Add New Post /wp-admin/post-new.php1,371 ▼17120.75 ▲2.34600.99 ▼14.5830.81 ▼19.53
Media Library /wp-admin/upload.php1,399 ▲144.17 ▼0.0997.62 ▼15.7144.90 ▼2.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-real-estate-sync/wp-realestate-sync.php
    • > /wp-content/plugins/wp-real-estate-sync/synchronizers/RealtoSync.class.php
    • > /wp-content/plugins/wp-real-estate-sync/GenericSync.class.php
    • > /wp-content/plugins/wp-real-estate-sync/synchronizers/WpCasaSync.class.php
    • > /wp-content/plugins/wp-real-estate-sync/synchronizers/DecorumSync.class.php
    • > /wp-content/plugins/wp-real-estate-sync/WpRealEstateSync.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-real-estate-sync/widgets/WpReSyncWidget.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-real-estate-sync/widgets/WpReSyncWidget.class.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-real-estate-sync/templates/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-real-estate-sync/templates/plugin-activated-notice.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WpReSyncWidget' not found in wp-content/plugins/wp-real-estate-sync/widgets/wpcasa/WpReSyncDpe.class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: properties, synchronization, realestate, immobilier

wp-real-estate-sync/wp-realestate-sync.php 85% from 13 tests

Analyzing the main PHP file in "WP Real Estate Sync" version 0.2.10
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-real-estate-sync.php" instead of "wp-realestate-sync.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,940 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP127851,2941,736
PO File161144171
CSS111033

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.38
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods54
▷ Static methods11.85%
▷ Public methods4074.07%
▷ Protected methods00.00%
▷ Private methods1425.93%
Functions39
▷ Named functions3794.87%
▷ Anonymous functions25.13%
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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/gedeon-logo.png18.32KB7.12KB▼ 61.13%
img/bullet_blue.png0.31KB0.23KB▼ 25.55%