10% realty-portal-agent-profile

Code Review | Realty Portal - Agent Profile

WordPress plugin Realty Portal - Agent Profile scored 10% from 54 tests.

About plugin

  • Plugin page: realty-portal-age...
  • Plugin version: 0.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 5.8.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

200+ active / 1,976 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/realty-portal-agent-profile/realty-portal-agent-profile.php+99
    Use of undefined constant REALTY_PORTAL - assumed 'REALTY_PORTAL' (this will throw an Error in a future version of PHP)

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

This is a short check of server-side resources used by Realty Portal - Agent Profile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.99 ▲15.68
Dashboard /wp-admin3.06 ▲0.0050.63 ▲4.82
Posts /wp-admin/edit.php3.11 ▲0.0055.79 ▼0.35
Add New Post /wp-admin/post-new.php5.42 ▼0.02103.80 ▼572.41
Media Library /wp-admin/upload.php3.01 ▲0.0038.89 ▲0.14

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Realty Portal - Agent Profile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.91 ▲0.3311.46 ▲1.1555.24 ▲4.91
Dashboard /wp-admin2,970 ▲365.91 ▲0.02160.60 ▼4.18141.75 ▲19.12
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0180.61 ▼1.8597.94 ▲2.04
Add New Post /wp-admin/post-new.php1,615 ▼021.50 ▲0.04326.18 ▼15.47125.70 ▼9.07
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01185.79 ▲12.32137.77 ▼5.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-agent-profile/includes/class-agent-profile-shortcode.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #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-agent-profile/realty-portal-agent-profile.php Passed 13 tests

The entry point to "Realty Portal - Agent Profile" version 0.3.9 is a PHP file that has certain tags in its header comment area
118 characters long description:
The add-on to help agents manage all personal information. Edit information anytime in front-end. Work with any theme!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin299 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP474148299

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1477.78%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin