Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.28ms] Passed 4 tests
Server-side resources used by AI Mortgage Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.42 ▲2.89 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.55 ▼11.71 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.63 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.42 ▼12.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.63 ▲2.34 |
AI Mortgage Calculator /wp-admin/options-general.php?page=ai-mortgage-calculator | 3.28 | 31.48 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
aimc_settings_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AI Mortgage Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.34 ▲0.39 | 10.17 ▲8.61 | 45.29 ▲6.64 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▼0.06 | 82.29 ▼3.61 | 39.15 ▼4.27 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.00 | 33.52 ▼6.20 | 36.41 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.05 ▼0.43 | 680.67 ▼8.01 | 58.25 ▲4.84 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▼0.00 | 97.00 ▼0.42 | 43.22 ▼1.62 |
AI Mortgage Calculator /wp-admin/options-general.php?page=ai-mortgage-calculator | 893 | 2.15 | 21.54 | 31.27 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-mortgage-calculator/calculators/default.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ai-mortgage-calculator/includes/options-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'AI_Mortgage_Calculator' not found in wp-content/plugins/ai-mortgage-calculator/calculators/refinance.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ai-mortgage-calculator/aimortgagecalculator.php 92% from 13 tests
The principal PHP file in "AI Mortgage Calculator" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ai-mortgage-calculator.php" instead of "aimortgagecalculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin439 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 125 | 46 | 437 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin