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 gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.29ms] Passed 4 tests
An overview of server-side resources used by FC's Loan Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.14 | 41.95 ▼0.08 |
Dashboard /wp-admin | 3.49 ▲0.10 | 46.22 ▼17.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 51.69 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.14 | 86.42 ▼14.31 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 39.88 ▲5.84 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fcloancalc_plugin |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for FC's Loan Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.74 ▲0.63 | 1.62 ▲0.03 | 42.44 ▲1.78 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.07 | 91.17 ▲5.42 | 42.86 ▲3.63 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.04 | 40.09 ▲1.09 | 36.76 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.89 ▼0.23 | 669.62 ▼12.51 | 56.77 ▼2.94 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.05 | 100.79 ▼2.02 | 43.24 ▼1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- fcloancalc_plugin
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: currency in wp-content/plugins/fc-loan-calculator/en/calculator.gui.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fc-loan-calculator/fc-loan-calculator.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fc-loan-calculator/en/calculator.gui.php:22
- > PHP Notice
Undefined variable: date_mask in wp-content/plugins/fc-loan-calculator/en/calculator.gui.php on line 4
- > PHP Notice
Undefined variable: brand_name in wp-content/plugins/fc-loan-calculator/en/calculator.gui.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
fc-loan-calculator/fc-loan-calculator.php 92% from 13 tests
"FC's Loan Calculator" version 1.5.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 219 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin14,742 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 2,114 | 2,338 | 5,342 |
JavaScript | 13 | 804 | 1,121 | 3,476 |
JSON | 14 | 0 | 0 | 3,024 |
CSS | 7 | 339 | 128 | 1,874 |
PHP | 2 | 253 | 188 | 1,023 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected