Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.27ms] Passed 4 tests
Server-side resources used by Interest Calculator (LOAN, SIP, FD, BANK)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.17 | 47.38 ▼1.11 |
Dashboard /wp-admin | 3.71 ▲0.08 | 53.97 ▼16.09 |
Posts /wp-admin/edit.php | 3.76 ▲0.08 | 56.79 ▲3.53 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.10 | 94.95 ▼8.47 |
Media Library /wp-admin/upload.php | 3.57 ▲0.08 | 42.95 ▲0.58 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_cicw_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Interest Calculator (LOAN, SIP, FD, BANK)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲193 | 14.13 ▼0.10 | 14.74 ▲12.72 | 47.84 ▲4.50 |
Dashboard /wp-admin | 2,232 ▲55 | 5.80 ▲0.13 | 90.67 ▼13.13 | 40.56 ▼3.57 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.29 ▲0.28 | 38.75 ▲0.39 | 32.44 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,555 ▲24 | 23.29 ▲0.23 | 690.83 ▲11.64 | 37.46 ▼21.58 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.47 ▲0.22 | 101.17 ▼18.97 | 44.79 ▼4.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_cicw_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/inc-compound-interest-calculator/admin/partials/compound-interest-calculator-admin-display.php
- > /wp-content/plugins/inc-compound-interest-calculator/public/partials/compound-interest-calculator-public-display.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/inc-compound-interest-calculator/admin/setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/inc-compound-interest-calculator/public/cicw-widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/inc-compound-interest-calculator/public/class-cicw-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inc-compound-interest-calculator/public/cicw_setting.php:5
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
inc-compound-interest-calculator/compound-interest-calculator.php 85% from 13 tests
"Interest Calculator (LOAN, SIP, FD, BANK)" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("inc-compound-interest-calculator.php" instead of "compound-interest-calculator.php")
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
Good job! No executable or dangerous file extensions detected861 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 151 | 562 | 505 |
CSS | 2 | 27 | 6 | 167 |
JavaScript | 3 | 28 | 29 | 165 |
Markdown | 1 | 10 | 0 | 24 |
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.12 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin