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.01MB] [CPU: ▼142.18ms] Passed 4 tests
An overview of server-side resources used by Mortgage Calculator Free
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 35.35 ▲1.00 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.69 ▲1.98 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 42.00 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 91.35 ▼564.95 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.07 ▼3.81 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_mortgage_calculator_plugin |
Browser metrics Passed 4 tests
Mortgage Calculator Free: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲219 | 16.32 ▲0.77 | 13.19 ▲2.85 | 52.23 ▲5.15 |
Dashboard /wp-admin | 2,972 ▲35 | 5.93 ▲0.00 | 146.83 ▲5.79 | 118.37 ▼2.69 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.01 | 58.18 ▼8.00 | 91.27 ▲5.19 |
Add New Post /wp-admin/post-new.php | 1,872 ▼0 | 19.09 ▼0.10 | 368.77 ▼1.02 | 113.94 ▲2.75 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.00 | 143.52 ▲0.45 | 122.96 ▲5.01 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_mortgage_calculator_plugin
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
mortgage-calculator-free/mortgage-calculator-plugin.php 85% from 13 tests
The main PHP file in "Mortgage Calculator Free" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mortgage-calculator-free.php" instead of "mortgage-calculator-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected836 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 25 | 43 | 485 |
PHP | 2 | 31 | 44 | 177 |
JavaScript | 1 | 16 | 6 | 100 |
PO File | 1 | 25 | 25 | 74 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.66MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 18.30KB | 5.28KB | ▼ 71.14% |
assets/banner-1544x500.png | 292.57KB | 135.62KB | ▼ 53.65% |
assets/screenshot-5.png | 57.85KB | 15.48KB | ▼ 73.24% |
assets/icon-256x256.png | 37.51KB | 12.36KB | ▼ 67.06% |
assets/icon-128-128.png | 15.27KB | 5.14KB | ▼ 66.33% |