84% realty-portal-nearby-places

Code Review | Realty Portal - Nearby Places

WordPress plugin Realty Portal - Nearby Places scored84%from 54 tests.

About plugin

  • Plugin page: realty-portal-nea...
  • Plugin version: 0.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: Mar 22, 2019
  • Number of updates: 13
  • Update frequency: every 45.4 days
  • Top authors: nootheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Realty Portal - Nearby Places
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.61 ▼6.61
Dashboard /wp-admin3.31 ▲0.0149.17 ▼0.31
Posts /wp-admin/edit.php3.36 ▲0.0046.77 ▼1.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.27 ▲4.10
Media Library /wp-admin/upload.php3.23 ▲0.0034.51 ▼0.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Realty Portal - Nearby Places
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.44 ▲0.141.93 ▲0.1543.20 ▼5.42
Dashboard /wp-admin2,209 ▲244.86 ▼0.04100.29 ▼12.9042.52 ▲0.81
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0139.63 ▲3.3334.03 ▼0.17
Add New Post /wp-admin/post-new.php1,536 ▲323.22 ▼0.11618.37 ▼60.4347.89 ▼4.15
Media Library /wp-admin/upload.php1,385 ▼34.32 ▲0.1593.49 ▼12.5543.05 ▼3.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Realty_Portal' not found in wp-content/plugins/realty-portal-nearby-places/realty-portal-nearby-places-functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: agent, real-estate, property management, property, listings...

realty-portal-nearby-places/realty-portal-nearby-places.php Passed 13 tests

The main PHP file in "Realty Portal - Nearby Places" ver. 0.3.9 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Quickly display places nearby the property. Get data from Walkscore and Yelp. Work with any theme.

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
No dangerous file extensions were detected2,205 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1710193868
PHP311695549
Markdown31260315
CSS32737258
LESS140123
JSON30092

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods872.73%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
assets/images/yelp-logo.png2.31KB1.72KB▼ 25.33%