68% rex-sync

Code Review | Rex Sync Listings

WordPress plugin Rex Sync Listings scored68%from 54 tests.

About plugin

  • Plugin page: rex-sync
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Oct 7, 2023
  • Number of updates: 54
  • Update frequency: every 12.2 days
  • Top authors: svincoll4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /772 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.12ms] Passed 4 tests

A check of server-side resources used by Rex Sync Listings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.35 ▼2.93
Dashboard /wp-admin3.40 ▲0.0955.17 ▲1.16
Posts /wp-admin/edit.php3.51 ▲0.1552.50 ▲0.30
Add New Post /wp-admin/post-new.php6.20 ▲0.3191.42 ▼27.02
Media Library /wp-admin/upload.php3.32 ▲0.0943.39 ▲4.11
Logs /wp-admin/admin.php?page=rex-sync-logs3.3137.07
Listings /wp-admin/edit.php?post_type=listing3.3640.28
Add New /wp-admin/post-new.php?post_type=listing_agent6.1887.01
Listing States /wp-admin/edit-tags.php?taxonomy=listing_state&post_type=listing3.3138.04
Queues /wp-admin/admin.php?page=rex-sync-queues3.3637.32
Settings /wp-admin/admin.php?page=rex-sync-settings3.3634.05
Listing Agents /wp-admin/edit.php?post_type=listing_agent3.3640.08
Manual Sync /wp-admin/admin.php?page=rex-sync-manual3.3329.97
Listing Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=listing3.3137.18
Add New /wp-admin/post-new.php?post_type=listing6.1985.36

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Rex Sync Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16414.17 ▼0.492.05 ▲0.4743.99 ▲5.37
Dashboard /wp-admin2,300 ▲1205.57 ▼0.1196.03 ▲4.1342.50 ▲1.97
Posts /wp-admin/edit.php2,205 ▲1052.00 ▲0.0534.68 ▼0.9236.09 ▲1.17
Add New Post /wp-admin/post-new.php1,613 ▲8523.12 ▲0.31669.34 ▲22.0258.31 ▼10.82
Media Library /wp-admin/upload.php1,505 ▲1024.20 ▲0.0497.77 ▼7.0541.97 ▼3.23
Logs /wp-admin/admin.php?page=rex-sync-logs8842.0424.5624.56
Listings /wp-admin/edit.php?post_type=listing1,1931.9933.9433.28
Add New /wp-admin/post-new.php?post_type=listing_agent6,27318.90840.1132.96
Listing States /wp-admin/edit-tags.php?taxonomy=listing_state&post_type=listing1,3482.2528.3233.62
Queues /wp-admin/admin.php?page=rex-sync-queues1,0242.0626.3331.14
Settings /wp-admin/admin.php?page=rex-sync-settings1,1942.0426.9231.36
Listing Agents /wp-admin/edit.php?post_type=listing_agent1,1691.9431.2631.66
Manual Sync /wp-admin/admin.php?page=rex-sync-manual9282.0024.7527.43
Listing Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=listing1,3762.1226.2029.47
Add New /wp-admin/post-new.php?post_type=listing1,71416.81731.7835.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_rsc_queues
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/meta-box-agent-custom-fields.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Logger' not found in wp-content/plugins/rex-sync/templates/admin-logs.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/meta-box-listing-custom-fields.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/admin-mapping.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/admin-manual-sync.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Rex\\Sync\\Loader' not found in wp-content/plugins/rex-sync/templates/admin-queues.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=listing
    • > Intervention (severe) in unknown
    /wp-admin/admin.php?page=rex-sync-manual - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rexsoftware, listing, rex, realestate, property

rex-sync/rex-sync.php Passed 13 tests

The main file in "Rex Sync Listings" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Providing tool to sync all listings, listing agents from Rex Software to WordPress

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 plugin3,367 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP22551522,318
JSON200972
CSS35173
JavaScript2114

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.79
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods104
▷ Static methods8581.73%
▷ Public methods8985.58%
▷ Protected methods43.85%
▷ Private methods1110.58%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
PNG images were not found in this plugin