10% realty-portal-agent-dashboard

Code Review | Realty Portal - Agent Dashboard

WordPress plugin Realty Portal - Agent Dashboard scored10%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: 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

90+ active /2,415 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/realty-portal-agent-dashboard/realty-portal-agent-dashboard.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: ▼3.48ms] Passed 4 tests

A check of server-side resources used by Realty Portal - Agent Dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.62 ▲6.83
Dashboard /wp-admin3.31 ▲0.0044.53 ▼1.49
Posts /wp-admin/edit.php3.36 ▲0.0052.15 ▲5.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.39 ▼15.91
Media Library /wp-admin/upload.php3.23 ▲0.0035.02 ▼2.14

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

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

Browser metrics Passed 4 tests

Realty Portal - Agent Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.56 ▼0.571.85 ▼0.0339.58 ▼3.92
Dashboard /wp-admin2,206 ▲215.85 ▼0.03101.94 ▼1.0639.38 ▲0.22
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0440.71 ▼1.5836.73 ▲0.56
Add New Post /wp-admin/post-new.php1,542 ▲1318.48 ▲0.49646.76 ▲10.7662.86 ▲10.71
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.06102.56 ▲2.0445.54 ▲0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'RP_Shortcodes' not found in wp-content/plugins/realty-portal-agent-dashboard/includes/class-agent-dashboard-shortcode.php:12

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Property Listings), #2 (Property Detail), #3 (Agent Listings), #4 (Agent Detail), #5 (Property Map)
You can look at the official readme.txt

realty-portal-agent-dashboard/realty-portal-agent-dashboard.php Passed 13 tests

The main file in "Realty Portal - Agent Dashboard" v. 0.3.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
An add-on helps to Add, Edit or Delete properties in the front-end. Work with any theme!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected327 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP480153327

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin