Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/speedy-loan-calculator/plugin.php+258
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.72ms] Passed 4 tests
Server-side resources used by Speedy Loan Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.08 ▼35.89 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.62 ▼43.15 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.18 ▼36.91 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.96 ▼94.94 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.86 ▼23.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_loan-calculator |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Speedy Loan Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲157 | 14.06 ▼0.67 | 6.38 ▲3.81 | 41.50 ▼13.85 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 120.48 ▲4.82 | 48.23 ▲0.50 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 36.14 ▲0.84 | 32.11 ▼5.48 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.30 ▲0.25 | 727.16 ▲28.71 | 79.91 ▲18.69 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.03 | 116.21 ▲17.39 | 47.26 ▲1.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/speedy-loan-calculator/plugin.php+258
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_loan-calculator
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/speedy-loan-calculator/views/widget.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/speedy-loan-calculator/views/admin.php:3
- > PHP Notice
Undefined variable: title in wp-content/plugins/speedy-loan-calculator/views/widget.php on line 1
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: calculator, car loan, auto
speedy-loan-calculator/plugin.php 92% from 13 tests
The main file in "Speedy Loan Calculator" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("speedy-loan-calculator.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,342 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 164 | 134 | 1,140 |
PHP | 3 | 64 | 108 | 125 |
CSS | 1 | 10 | 0 | 60 |
PO File | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin