Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.74ms] Passed 4 tests
A check of server-side resources used by JIMMO WP Loan Repayment Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.87 ▼5.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.12 ▼3.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.58 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.05 ▼7.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.62 ▲3.86 |
JWP Repayment Calculator /wp-admin/options-general.php?page=jimmo-wp-loan-repayment-calculator | 3.26 | 32.49 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for JIMMO WP Loan Repayment Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.25 ▼1.50 | 1.63 ▼0.34 | 37.55 ▼10.97 |
Dashboard /wp-admin | 2,212 ▲24 | 5.90 ▼0.00 | 107.03 ▲4.01 | 37.98 ▼5.63 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.97 ▲0.00 | 39.41 ▼4.82 | 35.38 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,542 ▼4 | 18.36 ▲0.31 | 622.88 ▲15.97 | 58.13 ▼5.61 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.03 | 97.77 ▼1.74 | 42.04 ▼5.21 |
JWP Repayment Calculator /wp-admin/options-general.php?page=jimmo-wp-loan-repayment-calculator | 850 | 2.02 | 22.15 | 34.73 |
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
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 | 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/admin/partials/jimmo-wp-loan-repayment-calculator-welcome-box.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/public/partials/jimmo-wp-loan-repayment-calculator-public-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/admin/partials/jimmo-wp-loan-repayment-calculator-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: loan repayment, annuity loan repayment, loan repayment calculator, annuity loan, loan...
jimmo-wp-loan-repayment-calculator/jimmo-wp-loan-repayment-calculator.php Passed 13 tests
Analyzing the main PHP file in "JIMMO WP Loan Repayment Calculator" version 1.1.0
48 characters long description:
Plugin to calculate a repayment plan for a loan.
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
Everything looks great! No dangerous files found in this plugin1,793 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 162 | 615 | 544 |
JavaScript | 2 | 100 | 267 | 437 |
CSS | 2 | 0 | 0 | 319 |
LESS | 3 | 40 | 7 | 316 |
PO File | 1 | 59 | 86 | 177 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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 images were found in this plugin