84% jimmo-wp-property-finance-budget-calculator

Code Review | JIMMO WP Property Finance Budget Calculator

WordPress plugin JIMMO WP Property Finance Budget Calculator scored84%from 54 tests.

About plugin

  • Plugin page: jimmo-wp-property...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2017
  • Latest release: May 19, 2017
  • Number of updates: 38
  • Update frequency: every 2.6 days
  • Top authors: netjet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,370 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.10MB] [CPU: ▼4.86ms] Passed 4 tests

A check of server-side resources used by JIMMO WP Property Finance Budget Calculator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1046.43 ▲1.89
Dashboard /wp-admin3.41 ▲0.0752.14 ▼9.67
Posts /wp-admin/edit.php3.53 ▲0.1751.71 ▲3.83
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.11 ▼15.48
Media Library /wp-admin/upload.php3.33 ▲0.1142.16 ▲7.49
JWP Budget Calculator /wp-admin/options-general.php?page=jimmo-wp-property-finance-budget-calculator3.3035.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for JIMMO WP Property Finance Budget Calculator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.36 ▲0.011.69 ▼0.0643.79 ▼0.40
Dashboard /wp-admin2,204 ▲245.65 ▲0.0587.97 ▼6.0839.00 ▼3.19
Posts /wp-admin/edit.php2,106 ▲62.02 ▼0.0039.23 ▼1.3337.58 ▼0.77
Add New Post /wp-admin/post-new.php1,531 ▲522.99 ▼0.20699.46 ▲40.7555.74 ▲0.78
Media Library /wp-admin/upload.php1,406 ▲124.32 ▲0.1098.90 ▼8.6044.98 ▼1.70
JWP Budget Calculator /wp-admin/options-general.php?page=jimmo-wp-property-finance-budget-calculator8612.1223.6437.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/jimmo-wp-property-finance-budget-calculator/admin/partials/jimmo-wp-property-finance-budget-calculator-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-property-finance-budget-calculator/public/partials/jimmo-wp-property-finance-budget-calculator-public-display.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-property-finance-budget-calculator/admin/partials/jimmo-wp-property-finance-budget-calculator-welcome-box.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

jimmo-wp-property-finance-budget-calculator/jimmo-wp-property-finance-budget-calculator.php Passed 13 tests

The entry point to "JIMMO WP Property Finance Budget Calculator" version 1.1.0 is a PHP file that has certain tags in its header comment area
50 characters long description:
Plugin to calculate a loan budget for Real Estate.

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
There were no executable files found in this plugin1,775 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13160623578
JavaScript285242366
CSS204319
LESS34111316
PO File168101196

PHP code Passed 2 tests

A brief analysis 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.07
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin