Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/cc-ontario-tax-calculator/cc-income-tax-on.php+127
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼47.79ms] Passed 4 tests
A check of server-side resources used by CC Ontario Income Tax Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.80 ▼28.29 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.76 ▼37.75 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.58 ▼39.36 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.17 ▼85.75 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.57 ▼26.64 |
Server storage [IO: ▲0.08MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_cc_income_tax_on |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CC Ontario Income Tax Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲167 | 13.72 ▼0.63 | 6.31 ▲4.57 | 41.43 ▲0.29 |
Dashboard /wp-admin | 2,225 ▲37 | 5.04 ▼0.85 | 103.58 ▼16.39 | 40.26 ▼3.72 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.29 ▲0.28 | 40.17 ▲4.28 | 31.91 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.44 ▲0.05 | 596.33 ▼108.35 | 33.13 ▼32.60 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.45 ▲0.28 | 97.39 ▲2.45 | 42.68 ▲1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/cc-ontario-tax-calculator/cc-income-tax-on.php+127
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_cc_income_tax_on
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-ontario-tax-calculator/cc-income-tax-on.php:29
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: financial, calculator, plugin, income tax calculator, canada...
cc-ontario-tax-calculator/cc-income-tax-on.php 92% from 13 tests
"CC Ontario Income Tax Calculator" version 0.2021.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-ontario-tax-calculator.php" instead of "cc-income-tax-on.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin403 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 31 | 195 |
JavaScript | 2 | 26 | 8 | 131 |
CSS | 1 | 13 | 0 | 77 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ 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 | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.87KB | 6.87KB | ▼ 42.12% |
screenshot-4.png | 20.46KB | 9.52KB | ▼ 53.50% |
screenshot-2.png | 9.51KB | 5.69KB | ▼ 40.14% |
screenshot-1.png | 17.33KB | 8.09KB | ▼ 53.30% |