10% the-real-estate-voice

Code Review | The Real Estate Voice: Content and Social Media Auto Posting

WordPress plugin The Real Estate Voice: Content and Social Media Auto Posting scored10%from 54 tests.

About plugin

  • Plugin page: the-real-estate-v...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 47
  • Update frequency: every 11.0 days
  • Top authors: therealestatevoice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,672 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/the-real-estate-voice/includes/custom-functions.php+1345
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.93MB] [CPU: ▼43.91ms] Passed 4 tests

This is a short check of server-side resources used by The Real Estate Voice: Content and Social Media Auto Posting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.05 ▼0.4110.92 ▼30.44
Dashboard /wp-admin3.08 ▼0.2314.19 ▼33.38
Posts /wp-admin/edit.php3.08 ▼0.2812.59 ▼33.58
Add New Post /wp-admin/post-new.php3.08 ▼2.8111.58 ▼78.25
Media Library /wp-admin/upload.php3.08 ▼0.1514.56 ▼19.49
The Real Estate Voice /wp-admin/options-general.php?page=trev-csmap-settings3.0812.67

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 13 new options
New WordPress options
auto_social_option_name
fb_pages_ids
auto_post_option_name
widget_recent-posts
revcp_settings_option_name
widget_theysaidso_widget
fb_user_id
rev_api_token
db_upgraded
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Real Estate Voice: Content and Social Media Auto Posting
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10014.67 ▲0.272.24 ▲0.0942.37 ▼2.35
Dashboard /wp-admin2,208 ▲305.59 ▼0.1086.12 ▼29.9738.44 ▼10.13
Posts /wp-admin/edit.php2,110 ▲101.96 ▼0.0035.22 ▼0.6934.60 ▼1.62
Add New Post /wp-admin/post-new.php1,535 ▲923.51 ▲0.42657.61 ▼10.8660.60 ▲1.73
Media Library /wp-admin/upload.php1,410 ▲74.21 ▲0.02108.82 ▲3.9245.12 ▲1.20
The Real Estate Voice /wp-admin/options-general.php?page=trev-csmap-settings2,0692.0326.8826.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/the-real-estate-voice/includes/custom-functions.php+1345
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 13 options in the database
    • fb_user_id
    • auto_social_option_name
    • auto_post_option_name
    • widget_recent-comments
    • rev_api_token
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • get_pro_url
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=trev-csmap-settings
    • > Notice in wp-content/plugins/the-real-estate-voice/includes/custom-functions.php+1345
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trev_csmap_get_fb_pages() in wp-content/plugins/the-real-estate-voice/includes/revoice-facebook-insight.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/the-real-estate-voice/includes/revoice-instagram-insight.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/the-real-estate-voice/includes/my-content-tab.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/the-real-estate-voice/includes/revoice-social-graph.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/the-real-estate-voice/includes/advance-functions.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/the-real-estate-voice/includes/trev-csmap-automation-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: You can look at the official readme.txt

the-real-estate-voice/the-real-estate-voice.php 85% from 13 tests

Analyzing the main PHP file in "The Real Estate Voice: Content and Social Media Auto Posting" version 1.3.3
The following require your attention:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin14,865 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP262,2608706,385
JavaScript68206105,555
CSS3474842,925

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity58.25
▷ Minimum class complexity12.00
▷ Maximum class complexity145.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods58
▷ Static methods00.00%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants43
▷ Global constants43100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.30MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/calendar.png5.90KB3.44KB▼ 41.68%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.09KB0.14KB0.00%
images/re-connect-small.png0.85KB0.74KB▼ 12.57%
css/images/ui-icons_2e83ff_256x240.png4.49KB4.18KB▼ 6.89%
css/images/ui-icons_454545_256x240.png6.91KB4.18KB▼ 39.44%