Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/cc-savings-calculator/cc-savings.php+123
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.01ms] Passed 4 tests
Server-side resources used by CC Savings Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.08 ▼39.65 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.73 ▼42.82 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.75 ▼45.76 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.79 ▼91.79 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.23 ▼27.57 |
Server storage [IO: ▲0.02MB] [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: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_cc_savings |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for CC Savings Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 14.29 ▼0.40 | 5.81 ▲3.90 | 43.76 ▼5.07 |
Dashboard /wp-admin | 2,222 ▲31 | 5.06 ▲0.12 | 105.77 ▲6.53 | 39.99 ▼5.99 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.28 ▲0.27 | 41.36 ▲0.08 | 35.54 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.67 ▲0.42 | 651.83 ▲56.75 | 38.73 ▼24.90 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.54 ▲0.31 | 98.37 ▼2.94 | 43.47 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/cc-savings-calculator/cc-savings.php+123
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_cc_savings
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-savings-calculator/cc-savings.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: interest, financial, plugin, calculator, savings...
cc-savings-calculator/cc-savings.php 92% from 13 tests
The primary PHP file in "CC Savings Calculator" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-savings-calculator.php" instead of "cc-savings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected321 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 31 | 155 |
JavaScript | 2 | 26 | 5 | 84 |
CSS | 1 | 13 | 0 | 82 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
No PNG files were detected