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
- Install procedure had errors
- > Deprecated in wp-content/plugins/cc-quebec-tax-calculator/cc-income-tax-qc.php+127
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.90ms] Passed 4 tests
An overview of server-side resources used by CC Quebec Income Tax Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.89 ▼37.60 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.71 ▼48.74 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.69 ▼45.39 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.06 ▼95.88 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 9.10 ▼27.47 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_cc_income_tax_qc |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CC Quebec Income Tax Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲131 | 13.76 ▼0.62 | 6.81 ▲4.87 | 39.59 ▼2.35 |
Dashboard /wp-admin | 2,222 ▲34 | 5.06 ▼0.75 | 105.18 ▼5.64 | 43.44 ▼2.58 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.32 ▲0.28 | 38.66 ▲1.99 | 32.28 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 23.37 ▼0.05 | 681.33 ▲2.48 | 37.19 ▼17.27 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.53 ▲0.29 | 117.36 ▼3.84 | 48.28 ▲0.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cc-quebec-tax-calculator/cc-income-tax-qc.php+127
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_cc_income_tax_qc
- 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-quebec-tax-calculator/cc-income-tax-qc.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
No browser issues were found
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
9 plugin tags: sidebar, plugin, taxes, quebec, widget...
cc-quebec-tax-calculator/cc-income-tax-qc.php 92% from 13 tests
This is the main PHP file of "CC Quebec Income Tax Calculator" version 0.2021.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-quebec-tax-calculator.php" instead of "cc-income-tax-qc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected383 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 31 | 195 |
JavaScript | 2 | 27 | 10 | 111 |
CSS | 1 | 13 | 0 | 77 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.69KB | 5.68KB | ▼ 34.66% |
screenshot-4.png | 22.92KB | 10.75KB | ▼ 53.13% |
screenshot-3.png | 10.88KB | 6.45KB | ▼ 40.72% |
screenshot-2.png | 8.98KB | 5.16KB | ▼ 42.53% |