89% rotem-mortgage-calculator

Code Review | Rotem Mortgage Calculator

WordPress plugin Rotem Mortgage Calculator scored89%from 54 tests.

About plugin

  • Plugin page: rotem-mortgage-ca...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jun 15, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: yortem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Rotem Mortgage Calculator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.14 ▲0.55
Dashboard /wp-admin3.31 ▼0.0348.89 ▼17.03
Posts /wp-admin/edit.php3.36 ▲0.0151.36 ▼2.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.39 ▼13.12
Media Library /wp-admin/upload.php3.23 ▲0.0137.26 ▲0.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Rotem Mortgage Calculator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5913.29 ▼0.871.76 ▼0.0244.02 ▲2.93
Dashboard /wp-admin2,220 ▲205.81 ▼0.0597.96 ▼1.6538.73 ▼7.10
Posts /wp-admin/edit.php2,105 ▲52.03 ▼0.0138.85 ▲0.2836.32 ▼0.85
Add New Post /wp-admin/post-new.php1,545 ▼323.08 ▼0.24641.74 ▲42.7649.28 ▼6.02
Media Library /wp-admin/upload.php1,408 ▲114.17 ▲0.0197.45 ▼2.7246.76 ▲1.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === rotem-mortgage-calculator === )
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in rotem-mortgage-calculator/assets to your readme.txt
The official readme.txt might help

rotem-mortgage-calculator/rotem-mortgage-calculator.php 92% from 13 tests

The entry point to "Rotem Mortgage Calculator" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected239 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP671225219
Markdown18020
JavaScript1130

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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 were not PNG files found in your plugin