78% realty-workstation

Code Review | Realty Workstation

WordPress plugin Realty Workstation scored 78% from 54 tests.

About plugin

  • Plugin page: realty-workstation
  • Plugin version: 1.0.45
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2022
  • Latest release: Apr 6, 2023
  • Number of updates: 45
  • Update frequency: every 8.7 days
  • Top authors: realtyworkstation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.64ms] Passed 4 tests

An overview of server-side resources used by Realty Workstation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.17 ▼8.38
Dashboard /wp-admin3.39 ▲0.0845.02 ▼4.30
Posts /wp-admin/edit.php3.44 ▲0.0847.68 ▲4.67
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.32 ▲1.46
Media Library /wp-admin/upload.php3.31 ▲0.0838.31 ▲5.12
Settings /wp-admin/admin.php?page=realty-workstation-general-settings3.3336.76
Agents /wp-admin/admin.php?page=realty-workstation-settings3.3233.30
Backup and Restore /wp-admin/admin.php?page=realty-workstation-backup-and-restore-settings3.3031.36
Agent Transactions /wp-admin/admin.php?page=realty-workstation-agent-transactions-settings3.3432.81
Broker Transactions /wp-admin/admin.php?page=realty-workstation-broker-transactions-settings3.3431.21
Contracts /wp-admin/admin.php?page=realty-workstation-contracts-settings3.3030.60
Leads /wp-admin/admin.php?page=realty-workstation-leads-settings3.3032.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
rw_webpage

Browser metrics Passed 4 tests

A check of browser resources used by Realty Workstation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,975 ▲24014.53 ▲0.265.80 ▲3.7541.98 ▼6.43
Dashboard /wp-admin2,261 ▲765.43 ▼0.46112.10 ▼1.4284.20 ▲36.13
Posts /wp-admin/edit.php2,159 ▲732.69 ▲0.6555.71 ▲19.4938.15 ▲5.39
Add New Post /wp-admin/post-new.php1,574 ▲3223.45 ▲5.13600.46 ▼58.8234.62 ▼17.53
Media Library /wp-admin/upload.php1,455 ▲644.69 ▲0.40104.74 ▲6.3280.89 ▲35.82
Settings /wp-admin/admin.php?page=realty-workstation-general-settings9972.1243.0332.73
Agents /wp-admin/admin.php?page=realty-workstation-settings9872.7951.5139.13
Backup and Restore /wp-admin/admin.php?page=realty-workstation-backup-and-restore-settings8682.2438.7826.14
Agent Transactions /wp-admin/admin.php?page=realty-workstation-agent-transactions-settings1,0062.7351.0836.14
Broker Transactions /wp-admin/admin.php?page=realty-workstation-broker-transactions-settings9982.7551.8032.96
Contracts /wp-admin/admin.php?page=realty-workstation-contracts-settings8652.2439.0626.91
Leads /wp-admin/admin.php?page=realty-workstation-leads-settings8682.2338.8628.41

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/realty-workstation/public/partials/welcome.php
    • > /wp-content/plugins/realty-workstation/admin/partials/realty-workstation-admin-display.php
    • > /wp-content/plugins/realty-workstation/public/partials/realty-workstation-public-display.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/realty-workstation/public/partials/login.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/realty-workstation/admin/partials/realty-workstation-edit-agent-transaction-display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_users() in wp-content/plugins/realty-workstation/public/partials/agents-new.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/realty-workstation/public/partials/broker-transactions-new.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/realty-workstation/public/partials/agents-edit.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/realty-workstation/admin/partials/realty-workstation-leads-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/realty-workstation/admin/partials/realty-workstation-edit-broker-transaction-display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/realty-workstation/admin/partials/realty-workstation-backup-and-restore-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/realty-workstation/admin/partials/realty-workstation-contracts-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/realty-workstation/public/partials/agent-transactions-edit.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots do not have images: #1 (Agents), #2 (Client), #3 (Commission), #4 (Documents), #5 (Settings), #6 (Transaction)
Please take inspiration from this readme.txt

realty-workstation/realty-workstation.php 92% from 13 tests

This is the main PHP file of "Realty Workstation" version 1.0.45, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,660 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PHP381615513,993
CSS86382,731
SVG1002,671
Sass1434341,768
LESS1434441,758
JavaScript8561011,739

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.46
Average class complexity11.14
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/icons/icon.png160.08KB79.89KB▼ 50.09%