84% ratemyagent-official

Code Review | RateMyAgent Official

WordPress plugin RateMyAgent Official scored84%from 54 tests.

About plugin

  • Plugin page: ratemyagent-official
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Oct 9, 2023
  • Number of updates: 14
  • Update frequency: every 27.9 days
  • Top authors: ratemyagent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,221 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.37MB] [CPU: ▼4.69ms] Passed 4 tests

An overview of server-side resources used by RateMyAgent Official
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3540.52 ▲2.87
Dashboard /wp-admin3.68 ▲0.3844.62 ▼3.29
Posts /wp-admin/edit.php3.73 ▲0.3844.46 ▲0.14
Add New Post /wp-admin/post-new.php6.30 ▲0.4183.02 ▼12.13
Media Library /wp-admin/upload.php3.61 ▲0.3834.10 ▼3.46
Setup Wizard /wp-admin/admin.php?page=rma-settings-wizard3.6639.83
Get Started /wp-admin/admin.php?page=rma-settings3.6232.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RateMyAgent Official
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲12013.39 ▼1.365.25 ▲3.5550.98 ▲1.53
Dashboard /wp-admin2,255 ▲675.80 ▲0.9398.33 ▼6.6635.72 ▼9.17
Posts /wp-admin/edit.php2,135 ▲492.06 ▲0.0837.18 ▼1.3331.78 ▼4.61
Add New Post /wp-admin/post-new.php6,231 ▲4,71221.72 ▲0.69870.48 ▲120.5352.46 ▼3.90
Media Library /wp-admin/upload.php1,431 ▲464.34 ▲0.1594.23 ▼24.6340.95 ▼18.78
Setup Wizard /wp-admin/admin.php?page=rma-settings-wizard8592.0624.0730.57
Get Started /wp-admin/admin.php?page=rma-settings9142.0226.0329.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • rma-plugin-settings
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
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
Almost there! Just fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ratemyagent-official/blocks/ReviewCarousel/Shortcode/partials/full-review-template.partial.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/ratemyagent-official/admin/Settings/General/AdvancedTab/partial.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/ratemyagent-official/blocks/ReviewCarousel/Shortcode/partials/multi-card-template.partial.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/ratemyagent-official/admin/SetupWizard/partial.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ratemyagent-official/admin/Settings/Theme/partial.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/ratemyagent-official/admin/Settings/General/SettingsTab/partial.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ratemyagent-official/admin/Settings/General/partial.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/ratemyagent-official/admin/Settings/GetStarted/partial.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/ratemyagent-official/blocks/ListingCarousel/Shortcode/partials/multi-card-template.partial.php:86

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: real estate, reviews

ratemyagent-official/rma-wordpress.php 92% from 13 tests

The main PHP script in "RateMyAgent Official" version 1.3.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ratemyagent-official.php" instead of "rma-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,329 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP626153242,932
CSS9174666
PO File2210260634
JSON20082
SVG40010
JavaScript5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.77
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces27
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes00.00%
Methods214
▷ Static methods9845.79%
▷ Public methods15170.56%
▷ Protected methods00.00%
▷ Private methods6329.44%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants433.33%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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