78% my-idx-home-search

Code Review | My IDX Home Search

WordPress plugin My IDX Home Search scored78%from 54 tests.

About plugin

  • Plugin page: my-idx-home-search
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2020
  • Latest release: Mar 17, 2023
  • Number of updates: 14
  • Update frequency: every 71.0 days
  • Top authors: homeasap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.36ms] Passed 4 tests

An overview of server-side resources used by My IDX Home Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.21 ▲4.60
Dashboard /wp-admin3.36 ▲0.0245.81 ▼11.93
Posts /wp-admin/edit.php3.48 ▲0.1241.25 ▼9.12
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.17 ▼15.51
Media Library /wp-admin/upload.php3.29 ▲0.0635.98 ▼0.86
My IDX Home Search /wp-admin/options-general.php?page=homeasap-search3.2829.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for My IDX Home Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16714.01 ▼0.3610.02 ▲8.3437.53 ▼2.65
Dashboard /wp-admin2,205 ▲285.68 ▲0.0688.32 ▼9.0536.98 ▼5.87
Posts /wp-admin/edit.php2,110 ▲102.07 ▲0.0936.66 ▼0.3428.78 ▼7.82
Add New Post /wp-admin/post-new.php1,539 ▲1323.27 ▲0.18593.53 ▼11.0535.08 ▼51.66
Media Library /wp-admin/upload.php1,421 ▲214.20 ▼0.0190.80 ▼14.3941.82 ▼0.68
My IDX Home Search /wp-admin/options-general.php?page=homeasap-search1,1102.2637.0747.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/my-idx-home-search/public/partials/homeasap-search-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/my-idx-home-search/admin/partials/homeasap-search-admin-display.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: idx, home asap, property listings, real estate, mls...

my-idx-home-search/homeasap-search.php 85% from 13 tests

This is the main PHP file of "My IDX Home Search" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("my-idx-home-search.php" instead of "homeasap-search.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,412 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS214768911
PHP12133558315
JavaScript2172158
YAML12028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods414.29%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 compressed PNG files occupy 0.23MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/IDX_PLUGIN-new_tab.png81.04KB85.64KB0.00%
admin/images/IDX_PLUGIN-popup.png59.06KB62.68KB0.00%
admin/images/IDX_PLUGIN-searchbox.png22.80KB25.21KB0.00%
admin/images/IDX_PLUGIN-landing_page.png73.24KB78.08KB0.00%