Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cc-mortgage-calculator/cc-mortgage.php+145
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼189.22ms] Passed 4 tests
An overview of server-side resources used by CC Mortgage Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼1.03 | 9.10 ▼20.99 |
Dashboard /wp-admin | 1.83 ▼1.23 | 5.98 ▼43.62 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 5.54 ▼36.97 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.61 | 6.14 ▼647.88 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.35 ▼28.39 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_cc_mortgage |
Browser metrics Passed 4 tests
CC Mortgage Calculator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲221 | 17.07 ▲1.78 | 15.69 ▲3.31 | 49.09 ▲6.13 |
Dashboard /wp-admin | 2,998 ▲67 | 6.62 ▲0.58 | 153.99 ▼7.27 | 114.77 ▲8.09 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 3.01 ▲0.29 | 66.61 ▼0.40 | 83.21 ▼5.98 |
Add New Post /wp-admin/post-new.php | 1,543 ▼140 | 18.63 ▲0.01 | 391.44 ▼3.15 | 107.38 ▲1.56 |
Media Library /wp-admin/upload.php | 1,776 ▼31 | 5.39 ▲0.34 | 172.33 ▲20.60 | 115.55 ▲0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cc-mortgage-calculator/cc-mortgage.php+145
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_cc_mortgage
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-mortgage-calculator/cc-mortgage.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: mortgage, mortgage calculator, financial, widget, plugin...
cc-mortgage-calculator/cc-mortgage.php 92% from 13 tests
The main PHP script in "CC Mortgage Calculator" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cc-mortgage-calculator.php" instead of "cc-mortgage.php")
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
Success! There were no dangerous files found in this plugin382 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 37 | 196 |
JavaScript | 2 | 38 | 5 | 104 |
CSS | 1 | 13 | 0 | 82 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Named functions | 5 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected