84% simplify-mortgage-calculation

Code Review | Plugin Name: Simplify Mortgage Calculation

WordPress plugin Plugin Name: Simplify Mortgage Calculation scored84%from 54 tests.

About plugin

  • Plugin page: simplify-mortgage...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2013
  • Latest release: Oct 17, 2014
  • Number of updates: 12
  • Update frequency: every 32.5 days
  • Top authors: souravmondal10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.08ms] Passed 4 tests

Analyzing server-side resources used by Plugin Name: Simplify Mortgage Calculation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.32 ▲4.76
Dashboard /wp-admin3.33 ▲0.0248.03 ▲3.47
Posts /wp-admin/edit.php3.38 ▲0.0242.43 ▼4.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.58 ▼20.75
Media Library /wp-admin/upload.php3.25 ▲0.0234.85 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
widget_mortgage_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Name: Simplify Mortgage Calculation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲11113.81 ▼0.818.97 ▲7.0247.51 ▲5.08
Dashboard /wp-admin2,192 ▲125.62 ▲0.0094.81 ▲6.1542.56 ▲2.36
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0035.66 ▲0.5533.83 ▼0.94
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▼0.21675.82 ▼22.5655.03 ▼0.84
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0895.53 ▼12.2641.81 ▼4.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_mortgage_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simplify-mortgage-calculation/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Plugin Name: Simplify Mortgage Calculation === )
The official readme.txt is a good inspiration

simplify-mortgage-calculation/index.php 92% from 13 tests

Analyzing the main PHP file in "Plugin Name: Simplify Mortgage Calculation" version 2.0.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplify-mortgage-calculation.php" instead of "index.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 plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141289
CSS13646
JavaScript12429

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin