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
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.57ms] Passed 4 tests
Server-side resources used by Repayment Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.56 ▼2.45 |
Dashboard /wp-admin | 3.51 ▲0.21 | 50.17 ▼1.13 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 54.30 ▲7.25 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 80.77 ▼9.94 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 43.66 ▲8.18 |
Repayment Calculator /wp-admin/options-general.php?page=repayment-calculator/settings.php | 3.42 | 35.25 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Repayment Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲324 | 15.46 ▲1.09 | 7.20 ▲5.44 | 40.59 ▼5.47 |
Dashboard /wp-admin | 2,371 ▲183 | 6.63 ▲1.76 | 132.14 ▲15.06 | 41.25 ▼5.80 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 3.65 ▲1.64 | 57.73 ▲19.96 | 34.96 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,860 | 28.44 ▲4.91 | 902.42 ▲194.44 | 40.02 ▼20.32 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.27 ▲0.06 | 83.35 ▼30.00 | 41.84 ▼5.76 |
Repayment Calculator /wp-admin/options-general.php?page=repayment-calculator/settings.php | 3,100 | 4.31 | 116.98 | 34.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/repayment-calculator/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/repayment-calculator/repayment-calculator.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
- Contributors: No tags were detected
- Screenshots: Add images for these screenshots: #1 (The repayment calculator), #2 (Credit score settings), #3 (Output settings)
repayment-calculator/repayment-calculator.php 92% from 13 tests
The entry point to "Repayment Calculator" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,307 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 170 | 43 | 715 |
JavaScript | 3 | 129 | 57 | 476 |
CSS | 2 | 17 | 8 | 116 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 53.21KB | 15.41KB | ▼ 71.03% |
screenshot-2.png | 51.22KB | 12.12KB | ▼ 76.33% |
screenshot-3.png | 67.86KB | 18.27KB | ▼ 73.08% |