Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/canadian-gst-calculator/cc-canada-gst-calculator.php+132
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼49.62ms] Passed 4 tests
This is a short check of server-side resources used by CC Canadian GST Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.11 ▼33.72 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.50 ▼41.60 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.14 ▼38.85 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.50 ▼84.29 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.64 ▼27.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_cc_canada_gst_calculator |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for CC Canadian GST Calculator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲131 | 13.84 ▼0.75 | 5.34 ▲3.60 | 40.25 ▼1.46 |
Dashboard /wp-admin | 2,225 ▲34 | 5.08 ▲0.20 | 112.19 ▲7.35 | 42.56 ▲1.33 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.33 ▲0.32 | 42.32 ▲3.89 | 34.59 ▲4.49 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.58 ▼4.64 | 620.80 ▼35.37 | 33.63 ▼18.22 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.57 ▲0.25 | 100.11 ▼0.11 | 44.03 ▼0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/canadian-gst-calculator/cc-canada-gst-calculator.php+132
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_cc_canada_gst_calculator
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/canadian-gst-calculator/cc-canada-gst-calculator.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: canada, gst calculator, calculator, plugin, financial...
canadian-gst-calculator/cc-canada-gst-calculator.php 92% from 13 tests
Analyzing the main PHP file in "CC Canadian GST Calculator" version 0.2.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("canadian-gst-calculator.php" instead of "cc-canada-gst-calculator.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
There were no executable files found in this plugin357 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 37 | 153 |
JavaScript | 2 | 33 | 9 | 109 |
CSS | 1 | 18 | 1 | 95 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin