Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.41MB] [CPU: ▼33.55ms] Passed 4 tests
Analyzing server-side resources used by Canon CarePAK Plus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 54.39 ▲15.59 |
Dashboard /wp-admin | 3.55 ▲0.20 | 29.62 ▼34.71 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 31.11 ▼19.49 |
Add New Post /wp-admin/post-new.php | 3.55 ▼2.34 | 30.13 ▼76.20 |
Media Library /wp-admin/upload.php | 3.55 ▲0.31 | 31.26 ▼3.79 |
Settings /wp-admin/admin.php?page=CanonCarePak | 3.55 | 24.96 |
Bulk Product Update /wp-admin/admin.php?page=Bulk-Product-Update | 3.55 | 25.57 |
Server storage [IO: ▲0.69MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: 7 new tables, 7 new options
New tables |
---|
product_backup |
batchsync_status |
app_configurations |
quickcover_contract |
quickcover_cron_status |
warranty_calc |
product_warranty |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
jal_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Canon CarePAK Plus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲226 | 13.76 ▼0.83 | 11.48 ▲9.73 | 43.59 ▲2.73 |
Dashboard /wp-admin | 2,239 ▲65 | 5.07 ▼0.63 | 98.13 ▲0.93 | 31.92 ▼9.10 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.43 ▲0.37 | 42.55 ▲0.95 | 33.01 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,715 ▲184 | 23.04 ▼0.17 | 684.45 ▼4.95 | 35.56 ▼27.80 |
Media Library /wp-admin/upload.php | 1,510 ▲116 | 4.50 ▲0.29 | 105.28 ▼0.92 | 39.56 ▼8.35 |
Settings /wp-admin/admin.php?page=CanonCarePak | 1,233 | 2.11 | 31.73 | 34.24 |
Bulk Product Update /wp-admin/admin.php?page=Bulk-Product-Update | 976 | 2.01 | 30.11 | 26.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 7 tables in the database
- quickcover_cron_status
- quickcover_contract
- app_configurations
- warranty_calc
- batchsync_status
- product_backup
- product_warranty
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- jal_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Bulk-Product-Update
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=CanonCarePak
- > Notice in wp-content/plugins/canon-carepak-plus/form.php+239
Undefined variable: getTotal_batch
- > GET request to /wp-admin/admin.php?page=CanonCarePak
- > Notice in wp-content/plugins/canon-carepak-plus/form.php+175
Undefined variable: getSuccess_batch
- > GET request to /wp-admin/admin.php?page=CanonCarePak
- > Notice in wp-content/plugins/canon-carepak-plus/form.php+176
Undefined variable: getFailed_batch
- > GET request to /wp-admin/admin.php?page=CanonCarePak
- > Notice in wp-content/plugins/canon-carepak-plus/form.php+177
Undefined variable: get_Latestdate
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Bulk-Product-Update
- > Notice in wp-content/plugins/canon-carepak-plus/bulkUpdate.php+20
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Bulk-Product-Update
- > Notice in wp-content/plugins/canon-carepak-plus/bulkUpdate.php+20
Trying to get property 'name' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Bulk-Product-Update
- > Notice in wp-content/plugins/canon-carepak-plus/bulkUpdate.php+20
Trying to get property 'count' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/canon-carepak-plus/Custom_app.php:36
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/canon-carepak-plus/form.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/canon-carepak-plus/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/canon-carepak-plus/bulkUpdate.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: checkout, e-commerce, sales, woo, shop...
canon-carepak-plus/Custom_app.php 92% from 13 tests
"Canon CarePAK Plus" version 2.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("canon-carepak-plus.php" instead of "Custom_app.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,988 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 769 | 170 | 3,113 |
JavaScript | 5 | 93 | 17 | 553 |
CSS | 4 | 40 | 14 | 322 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 369.00 |
▷ Minimum class complexity | 369.00 |
▷ Maximum class complexity | 369.00 |
Average method complexity | 6.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/scr1.PNG | 43.33KB | 25.00KB | ▼ 42.30% |
assets/images/logo.png | 8.32KB | 3.95KB | ▼ 52.50% |
assets/scr2.PNG | 35.83KB | 15.72KB | ▼ 56.12% |