Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/loan-calculator-pro/loan-calc-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; loan_calculator has a deprecated constructor
Server metrics [RAM: ▼1.97MB] [CPU: ▼57.51ms] Passed 4 tests
An overview of server-side resources used by Loan Calculator Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.43 | 4.67 ▼34.32 |
Dashboard /wp-admin | 2.09 ▼1.29 | 6.22 ▼58.71 |
Posts /wp-admin/edit.php | 2.09 ▼1.30 | 5.74 ▼47.44 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.84 | 5.48 ▼89.55 |
Media Library /wp-admin/upload.php | 2.09 ▼1.18 | 6.38 ▼34.29 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_loan_calculator |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Loan Calculator Pro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲188 | 13.75 ▼0.98 | 9.31 ▲7.54 | 45.78 ▼6.49 |
Dashboard /wp-admin | 2,215 ▲38 | 5.78 ▲0.16 | 89.08 ▼1.02 | 79.53 ▲35.29 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 2.26 ▲0.23 | 36.38 ▼2.71 | 33.92 ▼6.00 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.38 ▼0.26 | 699.12 ▼22.04 | 55.40 ▼2.94 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.57 ▲0.40 | 100.69 ▼0.88 | 66.80 ▲21.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/loan-calculator-pro/loan-calc-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; loan_calculator has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_loan_calculator
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/loan-calculator-pro/loan-calc.php
- > /wp-content/plugins/loan-calculator-pro/loan-calc-admin.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Division by zero in wp-content/plugins/loan-calculator-pro/loan-calc.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/loan-calculator-pro/loan-calc-main.php:13
- > PHP Notice
Undefined index: advanced_mortgage_calc_years in wp-content/plugins/loan-calculator-pro/loan-calc.php on line 5
- > PHP Notice
Undefined index: advanced_mortgage_calc_loan in wp-content/plugins/loan-calculator-pro/loan-calc.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/loan-calculator-pro/loan-calc-widget.php:2
- > PHP Notice
Undefined index: advanced_mortgage_calc_rate in wp-content/plugins/loan-calculator-pro/loan-calc.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is required in loan-calculator-pro/assets to your readme.txt
loan-calculator-pro/loan-calc-main.php 92% from 13 tests
"Loan Calculator Pro" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("loan-calculator-pro.php" instead of "loan-calc-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,299 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 141 | 103 | 969 |
PHP | 5 | 51 | 34 | 238 |
CSS | 1 | 6 | 0 | 51 |
HTML | 1 | 5 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
loan-calc.png | 1.00KB | 1.20KB | 0.00% |