Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.67ms] Passed 4 tests
An overview of server-side resources used by Small business loan calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.21 ▼4.96 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.37 ▼3.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.56 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.87 ▼11.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.66 ▲1.54 |
Small Business Loan Calculator /wp-admin/options-general.php?page=small-business-loan-calculator/wc_small_business_calculator.php | 3.21 | 31.64 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Small business loan calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.35 ▼1.02 | 1.96 ▼0.13 | 37.41 ▼10.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▼1.01 | 97.03 ▼16.99 | 38.49 ▼6.11 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.04 | 35.52 ▼1.14 | 31.98 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.17 ▲5.64 | 669.94 ▼21.71 | 57.78 ▼1.45 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.23 ▲0.09 | 95.92 ▼0.44 | 42.00 ▼2.86 |
Small Business Loan Calculator /wp-admin/options-general.php?page=small-business-loan-calculator/wc_small_business_calculator.php | 778 | 2.01 | 24.50 | 25.19 |
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
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/small-business-loan-calculator/wc_small_business_calculator.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/small-business-loan-calculator/wc_small_business_calculator.php:33
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #0 in small-business-loan-calculator/assets to your readme.txt
- Screenshots: Screenshot #1 (Here's a screenshot of it in action.) image required
small-business-loan-calculator/wc_small_business_calculator.php 85% from 13 tests
This is the main PHP file of "Small business loan calculator" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 528 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("small-business-loan-calculator.php" instead of "wc_small_business_calculator.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
Good job! No executable or dangerous file extensions detected150 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1 | 1 | 79 |
PHP | 1 | 8 | 21 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/btn.png | 6.60KB | 2.50KB | ▼ 62.03% |
images/main_banner.png | 72.65KB | 25.48KB | ▼ 64.92% |
screenshot-1.png | 117.56KB | 38.48KB | ▼ 67.27% |