84% realty-portal-floor-plan

Code Review | Realty Portal - Floor Plan

WordPress plugin Realty Portal - Floor Plan scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,359 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
Install script ran successfully

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

A check of server-side resources used by Realty Portal - Floor Plan
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.06 ▼0.75
Dashboard /wp-admin3.35 ▲0.0148.68 ▼12.17
Posts /wp-admin/edit.php3.40 ▲0.0448.77 ▼1.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.98 ▼19.46
Media Library /wp-admin/upload.php3.27 ▲0.0434.29 ▲1.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Realty Portal - Floor Plan: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.86 ▼0.0342.87 ▲2.57
Dashboard /wp-admin2,206 ▲145.77 ▲0.8596.70 ▼11.1738.71 ▼5.53
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0140.31 ▼2.8034.92 ▼0.66
Add New Post /wp-admin/post-new.php1,519 ▼1723.02 ▲0.05686.34 ▲29.9559.75 ▲5.92
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0393.81 ▼18.6040.69 ▼4.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/realty-portal-floor-plan/templates/floor-plan.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/realty-portal-floor-plan/realty-portal-floor-plan-functions.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rp_add_custom_field_type() in wp-content/plugins/realty-portal-floor-plan/fields/floor_plans/floor_plans.php:114

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #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-floor-plan/realty-portal-floor-plan.php Passed 13 tests

This is the main PHP file of "Realty Portal - Floor Plan" version 0.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
An add-on to display detailed information of properties. Easy to add as many plans as you want. Work with any theme!

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
Good job! No executable or dangerous file extensions detected657 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5100117500
JavaScript14315157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1076.92%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin