10% fs-real-estate-plugin

Code Review | FireStorm Professional Real Estate Plugin

WordPress plugin FireStorm Professional Real Estate Plugin scored10%from 54 tests.

About plugin

  • Plugin page: fs-real-estate-pl...
  • Plugin version: 2.7.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Sep 8, 2011
  • Latest release: Jan 9, 2014
  • Number of updates: 365
  • Update frequency: every 2.4 days
  • Top authors: wfernley (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10+ active /42,753 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/fs-real-estate-plugin/widget_local.php+79
    Function create_function() is deprecated

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests

This is a short check of server-side resources used by FireStorm Professional Real Estate Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.00 ▼6.35
Dashboard /wp-admin3.31 ▲0.0047.20 ▼4.83
Posts /wp-admin/edit.php3.36 ▲0.0045.91 ▼5.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.92 ▲1.42
Media Library /wp-admin/upload.php3.23 ▲0.0037.76 ▲6.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for FireStorm Professional Real Estate Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.112.25 ▲0.3547.76 ▲4.25
Dashboard /wp-admin2,195 ▲185.64 ▲0.0286.23 ▼13.9144.30 ▲1.92
Posts /wp-admin/edit.php2,103 ▼02.05 ▲0.0137.04 ▲0.7239.36 ▲5.44
Add New Post /wp-admin/post-new.php1,531 ▲523.13 ▲5.49662.31 ▼17.2851.21 ▲0.85
Media Library /wp-admin/upload.php1,403 ▼04.23 ▼0.03100.02 ▼6.6846.47 ▼0.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/fs-real-estate-plugin/js/ajax.php
    • > /wp-content/plugins/fs-real-estate-plugin/includes/._admin_listings_basic_form.php
  • 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fsrep_listing_url_gen() in wp-content/plugins/fs-real-estate-plugin/themes/default/listings_horizontal.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/fs-real-estate-plugin/xml/marker_listings.php:71
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fs-real-estate-plugin/includes/cityprov.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fsrep_text_translator() in wp-content/plugins/fs-real-estate-plugin/includes/newsbar.php:10
    • > PHP Notice
      Undefined variable: Listings in wp-content/plugins/fs-real-estate-plugin/themes/default/listings_horizontal.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fs-real-estate-plugin/themes/default/listings_horizontal.php on line 9
    • > PHP Notice
      Undefined variable: FSREPconfig in wp-content/plugins/fs-real-estate-plugin/includes/search_page.php on line 3
    • > PHP Notice
      Undefined variable: PageContent in wp-content/plugins/fs-real-estate-plugin/themes/default/listings_horizontal.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fsrep_listing_url_gen() in wp-content/plugins/fs-real-estate-plugin/themes/default/listings_vertical.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fsrep_text_translator() in wp-content/plugins/fs-real-estate-plugin/includes/admin_settings_general.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg), #6 (screenshot-6.jpg), #7 (screenshot-7.jpg), #8 (screenshot-8.jpg), #9 (screenshot-9.jpg), #10 (screenshot-10.jpg)
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
Please take inspiration from this readme.txt

fs-real-estate-plugin/main.php 92% from 13 tests

Analyzing the main PHP file in "FireStorm Professional Real Estate Plugin" version 2.7.11
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("fs-real-estate-plugin.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin22,598 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113,6782,10817,124
PHP365272655,086
CSS35617388

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions102
▷ Named functions102100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/cart-x.png0.44KB0.31KB▼ 30.99%