Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.09MB] [CPU: ▲1.48ms] Passed 4 tests
Server-side resources used by Loan Repayment Calculator and Application Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 44.63 ▲8.44 |
Dashboard /wp-admin | 4.58 ▲1.28 | 51.69 ▲2.57 |
Posts /wp-admin/edit.php | 4.63 ▲1.28 | 51.14 ▲2.71 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 87.51 ▼7.79 |
Media Library /wp-admin/upload.php | 4.44 ▲1.22 | 50.19 ▲16.82 |
Loan Calculator /wp-admin/options-general.php?page=quick-interest-slider/settings.php | 4.47 | 41.71 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Loan Repayment Calculator and Application Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲216 | 14.00 ▼0.57 | 13.50 ▲11.95 | 41.56 ▲0.97 |
Dashboard /wp-admin | 2,214 ▲34 | 5.55 ▼0.07 | 82.19 ▼3.73 | 38.16 ▼3.09 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.00 ▲0.05 | 34.33 ▼1.96 | 33.86 ▼5.16 |
Add New Post /wp-admin/post-new.php | 6,153 ▲4,625 | 24.53 ▲1.25 | 852.45 ▲191.88 | 56.10 ▲3.23 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.15 ▼0.07 | 94.67 ▼1.13 | 41.45 ▼2.06 |
Loan Calculator /wp-admin/options-general.php?page=quick-interest-slider/settings.php | 1,687 | 3.44 | 48.88 | 35.02 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-interest-slider/quick-interest-slider.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-interest-slider/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quick-interest-slider/messages.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The repayment calculator), #2 (An example application form), #3 (Some of the settings), #4 (A bespoke version of the plugin)
- Contributors: Please add at least on tag
- Contributors: Plugin contributors not specified
quick-interest-slider/quick-interest-slider.php Passed 13 tests
"Loan Repayment Calculator and Application Form" version 2.9.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
Interest calculator with slider and multiple display options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,608 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,087 | 166 | 5,951 |
PO File | 3 | 956 | 959 | 2,064 |
JavaScript | 3 | 355 | 129 | 1,289 |
CSS | 2 | 65 | 37 | 304 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.52MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 1.38KB | 1.13KB | ▼ 18.06% |
screenshot-2.png | 113.44KB | 28.89KB | ▼ 74.54% |
img/doc.png | 3.57KB | 1.61KB | ▼ 54.95% |
img/pdf.png | 3.38KB | 1.56KB | ▼ 53.89% |
img/files.png | 2.32KB | 0.93KB | ▼ 59.96% |