84% ere-similar-properties

Code Review | ERE Similar Properties - Essential Real Estate Add-On

WordPress plugin ERE Similar Properties - Essential Real Estate Add-On scored84%from 54 tests.

About plugin

  • Plugin page: ere-similar-prope...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Dec 2, 2020
  • Number of updates: 8
  • Update frequency: every 105.0 days
  • Top authors: g5theme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /24,562 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.76ms] Passed 4 tests

Analyzing server-side resources used by ERE Similar Properties - Essential Real Estate Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0353.60 ▲5.40
Dashboard /wp-admin3.34 ▲0.0350.46 ▼7.80
Posts /wp-admin/edit.php3.39 ▲0.0354.99 ▲1.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.74 ▼21.46
Media Library /wp-admin/upload.php3.26 ▲0.0340.72 ▲4.76

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ERE Similar Properties - Essential Real Estate Add-On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.90 ▼0.2542.42 ▼7.48
Dashboard /wp-admin2,192 ▲125.62 ▼0.0285.09 ▼6.2541.40 ▼2.49
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0137.03 ▲0.1131.47 ▼4.35
Add New Post /wp-admin/post-new.php1,527 ▲123.39 ▲0.40692.34 ▲12.4652.99 ▲3.68
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.03101.50 ▼8.1942.65 ▼4.58

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ere-similar-properties/ere-similar-properties.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ere-similar-properties === )
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in ere-similar-properties/assets to your readme.txt
You can look at the official readme.txt

ere-similar-properties/ere-similar-properties.php Passed 13 tests

"ERE Similar Properties - Essential Real Estate Add-On" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
113 characters long description:
ERE Similar Properties displays a list of properties that are similar or related to the current property listing.

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
Everything looks great! No dangerous files found in this plugin140 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1725132
Markdown1308

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin