78% optima-express

Code Review | Optima Express + MarketBoost IDX Plugin

WordPress plugin Optima Express + MarketBoost IDX Plugin scored78%from 54 tests.

About plugin

  • Plugin page: optima-express
  • Plugin version: 7.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Aug 26, 2011
  • Latest release: Aug 9, 2023
  • Number of updates: 313
  • Update frequency: every 14.0 days
  • Top authors: ihomefinder (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10,000+ active /299,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▲22.88ms] Passed 4 tests

An overview of server-side resources used by Optima Express + MarketBoost IDX Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.481,014.20 ▲973.13
Dashboard /wp-admin3.88 ▲0.5881.71 ▲30.76
Posts /wp-admin/edit.php3.99 ▲0.6368.05 ▲17.47
Add New Post /wp-admin/post-new.php6.47 ▲0.58104.97 ▲14.10
Media Library /wp-admin/upload.php3.77 ▲0.5564.35 ▲29.20
Social Widget /wp-admin/admin.php?page=ihf-social-page3.7459.41
Configuration /wp-admin/admin.php?page=ihf-config-page3.7447.97
Information /wp-admin/admin.php?page=ihf-information3.7451.65
Bio Widget /wp-admin/admin.php?page=ihf-bio-page3.8258.50
IDX Pages /wp-admin/admin.php?page=ihf-option-pages3.7855.48
Email Branding /wp-admin/admin.php?page=ihf-email-branding-page3.8462.67
Register /wp-admin/admin.php?page=ihf-option-activate3.7454.62
Shortcodes /wp-admin/admin.php?page=ihf-shortcodes3.75422.20

Server storage [IO: ▲0.74MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 16 new options
New WordPress options
widget_ihomefindersocialwidget
theysaidso_admin_options
can_compress_scripts
ihf_version_option
widget_ihomefinderagentbiowidget
widget_ihomefindersearchbyaddresswidget
ihf_database_cache_test
widget_recent-comments
ihf-css-override
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Optima Express + MarketBoost IDX Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲18313.62 ▼0.678.27 ▲6.2141.40 ▼3.07
Dashboard /wp-admin2,261 ▲695.88 ▲0.97103.42 ▼6.5343.01 ▼3.11
Posts /wp-admin/edit.php2,170 ▲812.31 ▲0.3148.09 ▲9.9238.21 ▲1.48
Add New Post /wp-admin/post-new.php1,570 ▲4221.12 ▲2.84571.73 ▼47.7135.28 ▼7.45
Media Library /wp-admin/upload.php1,458 ▲704.32 ▲0.14117.67 ▲14.4946.51 ▲1.57
Social Widget /wp-admin/admin.php?page=ihf-social-page1,0972.1028.0432.36
Configuration /wp-admin/admin.php?page=ihf-config-page9302.1031.1931.96
Information /wp-admin/admin.php?page=ihf-information9162.0328.8728.51
Bio Widget /wp-admin/admin.php?page=ihf-bio-page1,6126.32113.4756.99
IDX Pages /wp-admin/admin.php?page=ihf-option-pages1,0902.5139.1830.01
Email Branding /wp-admin/admin.php?page=ihf-email-branding-page1,8677.40132.7532.26
Register /wp-admin/admin.php?page=ihf-option-activate8952.0227.9632.85
Shortcodes /wp-admin/admin.php?page=ihf-shortcodes3,0521.9331.8843.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 16 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_ihomefindersearchbylistingidwidget
    • ihf-css-override
    • widget_ihomefinderagentbiowidget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_ihomefindersocialwidget
    • ihf_database_cache_test
    • ...

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ihf-option-pages
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% 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 fix the following items
  • 75× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderMlsPortalBoardOfficeSearchVirtualPageImpl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAdminAbstractPage' not found in wp-content/plugins/optima-express/adminPage/iHomefinderAdminInformation.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAdminAbstractPage' not found in wp-content/plugins/optima-express/adminPage/iHomefinderAdminBio.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderOfficeListVirtualPageImpl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractPropertyOrganizerVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderOrganizerEditSubscriberVirtualPageImpl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderAdvancedSearchFormVirtualPageImpl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderWidget' not found in wp-content/plugins/optima-express/widget/iHomefinderSearchByListingIdWidget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderDefaultVirtualPageImpl.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderAbstractPropertyOrganizerVirtualPage.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'iHomefinderAbstractVirtualPage' not found in wp-content/plugins/optima-express/virtualPage/iHomefinderFeaturedSearchVirtualPageImpl.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
8 plugin tags: multiple listing service, mls, real estate, idx solutions, idx...

optima-express/iHomefinder.php 85% from 13 tests

The main file in "Optima Express + MarketBoost IDX Plugin" v. 7.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("optima-express.php" instead of "iHomefinder.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 248 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin18,090 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP1061,41757511,723
CSS21185,809
JavaScript74591558

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.45
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes102
▷ Abstract classes32.94%
▷ Concrete classes9997.06%
▷ Final classes00.00%
Methods941
▷ Static methods919.67%
▷ Public methods80185.12%
▷ Protected methods272.87%
▷ Private methods11312.01%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants295
▷ Global constants10.34%
▷ Class constants29499.66%
▷ Public constants294100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/instagram-icon-white-nobg.png0.58KB0.75KB0.00%
images/youtube-icon.png2.24KB1.34KB▼ 40.34%
images/twitter-icon.png0.82KB0.71KB▼ 14.01%
images/yelp-icon.png1.07KB0.73KB▼ 32.06%
images/pinterest-icon.png1.84KB0.77KB▼ 58.37%