78% commercial-real-estate-valuation-calculator

Code Review | Valuation Calculator

WordPress plugin Valuation Calculator scored78%from 54 tests.

About plugin

  • Plugin page: commercial-real-e...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 60
  • Update frequency: every 9.6 days
  • Top authors: reallaunch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,364 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.60ms] Passed 4 tests

Server-side resources used by Valuation Calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.83 ▼15.71
Dashboard /wp-admin3.42 ▲0.1250.57 ▼9.46
Posts /wp-admin/edit.php3.53 ▲0.1846.93 ▼0.92
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.42 ▼3.19
Media Library /wp-admin/upload.php3.34 ▲0.1237.22 ▼2.04
Valuation Calculator /wp-admin/options-general.php?page=valuation-plugin3.3134.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Valuation Calculator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17614.30 ▼0.059.81 ▲7.6640.97 ▼7.84
Dashboard /wp-admin2,230 ▲425.13 ▼0.74109.15 ▼3.0541.26 ▼0.70
Posts /wp-admin/edit.php2,121 ▲352.32 ▲0.2939.07 ▲3.1131.14 ▼2.03
Add New Post /wp-admin/post-new.php1,535 ▲1523.15 ▼0.26644.51 ▼53.5535.54 ▼21.95
Media Library /wp-admin/upload.php1,412 ▲214.54 ▲0.39101.46 ▼1.3241.81 ▼7.69
Valuation Calculator /wp-admin/options-general.php?page=valuation-plugin1,6542.9364.1342.07

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/commercial-real-estate-valuation-calculator/css/style.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/commercial-real-estate-valuation-calculator/includes/valuation-calculator.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commercial-real-estate-valuation-calculator/valuation-calculator.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #5 (banner-772x250.png), #6 (banner-1544x500.png), #7 (icon-128x128.png)
The official readme.txt might help

commercial-real-estate-valuation-calculator/valuation-calculator.php 85% from 13 tests

This is the main PHP file of "Valuation Calculator" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("commercial-real-estate-valuation-calculator.php" instead of "valuation-calculator.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 411 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,109 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS559371,637
SVG100685
PHP37354472
JavaScript58961315

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin