84% realty-portal-advanced-search

Code Review | Realty Portal - Advanced Search

WordPress plugin Realty Portal - Advanced Search scored84%from 54 tests.

About plugin

  • Plugin page: realty-portal-adv...
  • Plugin version: 0.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.2
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Mar 22, 2019
  • Number of updates: 16
  • Update frequency: every 42.1 days
  • Top authors: nootheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.31ms] Passed 4 tests

An overview of server-side resources used by Realty Portal - Advanced Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.94 ▼0.99
Dashboard /wp-admin3.37 ▲0.0750.67 ▼1.04
Posts /wp-admin/edit.php3.42 ▲0.0745.32 ▼5.07
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.05 ▼7.71
Media Library /wp-admin/upload.php3.29 ▲0.0732.95 ▼3.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Realty Portal - Advanced Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.07 ▼0.191.73 ▲0.0244.95 ▼0.40
Dashboard /wp-admin2,198 ▲215.62 ▼0.0790.98 ▲2.0440.87 ▼2.36
Posts /wp-admin/edit.php2,079 ▼32.01 ▼0.0233.06 ▼2.0432.59 ▼3.82
Add New Post /wp-admin/post-new.php1,526 ▼023.55 ▲0.46659.62 ▼30.1556.41 ▲2.76
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0193.07 ▼3.2644.20 ▼2.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-advanced-search/includes/class-advanced-search-shortcode.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/realty-portal-advanced-search/includes/class-advanced-search-widgets.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Property Listings), #2 (Property Detail), #3 (Agent Listings), #4 (Agent Detail), #5 (Property Map)
You can take inspiration from this readme.txt

realty-portal-advanced-search/realty-portal-advanced-search.php Passed 13 tests

The entry point to "Realty Portal - Advanced Search" version 0.3.9 is a PHP file that has certain tags in its header comment area
137 characters long description:
A forward-thinking solution for every Real Estate website. Easy to update and customize elements of Search function. Work with any theme!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,738 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP61362231,009
LESS2409728
CSS1011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1359.09%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin