84% realtyna-core

Code Review | Realtyna Core

WordPress plugin Realtyna Core scored84%from 54 tests.

About plugin

  • Plugin page: realtyna-core
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Mar 1, 2022
  • Number of updates: 10
  • Update frequency: every 106.8 days
  • Top authors: realtyna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /8,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▲1.97ms] Passed 4 tests

This is a short check of server-side resources used by Realtyna Core
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2247.24 ▲3.64
Dashboard /wp-admin3.52 ▲0.2252.50 ▲3.74
Posts /wp-admin/edit.php3.57 ▲0.2263.15 ▲7.21
Add New Post /wp-admin/post-new.php6.04 ▲0.1699.16 ▼1.83
Media Library /wp-admin/upload.php3.39 ▲0.1641.64 ▲2.34
Testimonials /wp-admin/edit.php?post_type=rtcore-testimonial3.4340.18
Sidebars /wp-admin/edit-tags.php?taxonomy=realtyna-core-sidebars3.3837.42
Add New /wp-admin/post-new.php?post_type=rtcore-testimonial3.5952.34

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
sesame_copytime
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Realtyna Core
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.28 ▼1.281.87 ▼0.1842.54 ▼4.37
Dashboard /wp-admin2,234 ▲435.78 ▼0.0396.39 ▼11.5838.53 ▼4.10
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0939.59 ▲1.6737.74 ▲3.45
Add New Post /wp-admin/post-new.php1,568 ▲17018.39 ▲0.42606.99 ▼26.5156.25 ▲3.51
Media Library /wp-admin/upload.php1,422 ▲374.19 ▼0.06102.33 ▼11.2942.06 ▼8.88
Testimonials /wp-admin/edit.php?post_type=rtcore-testimonial1,1261.9332.6832.59
Sidebars /wp-admin/edit-tags.php?taxonomy=realtyna-core-sidebars1,2172.2829.4330.36
Add New /wp-admin/post-new.php?post_type=rtcore-testimonial2,6587.97170.6468.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • sesame_copytime
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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)
Everything seems fine, however 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
The following issues need your attention
  • 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/realtyna-core/html/frontend/property_show/layout2.php
    • > /wp-content/plugins/realtyna-core/html/sesame/frontend/property_show/default_k1.php
    • > /wp-content/plugins/realtyna-core/html/widgets/carousel/list.php
    • > /wp-content/plugins/realtyna-core/html/activities/agent_info/default.php
    • > /wp-content/plugins/realtyna-core/html/sesame/widgets/carousel/multi_images.php
    • > /wp-content/plugins/realtyna-core/html/frontend/property_show/default_k1.php
    • > /wp-content/plugins/realtyna-core/html/sesame/activities/agent_info/default.php
    • > /wp-content/plugins/realtyna-core/html/widgets/search/default.php
    • > /wp-content/plugins/realtyna-core/html/sesame/frontend/property_show/layout2.php
    • > /wp-content/plugins/realtyna-core/html/frontend/property_show/default.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: realtyna, real estate, wpl

realtyna-core/realtyna-core.php Passed 13 tests

The primary PHP file in "Realtyna Core" version 1.4.0 is used by WordPress to initiate all plugin functionality
75 characters long description:
This is Realtyna core plugin for Realtyna Themes such as Sesame, Listy, ...

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
Good job! No executable or dangerous file extensions detected9,048 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
XML2124345,292
PHP285864953,600
PO File16898155
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods104
▷ Static methods1514.42%
▷ Public methods9389.42%
▷ Protected methods87.69%
▷ Private methods32.88%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin