Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.41MB] [CPU: ▼30.45ms] Passed 4 tests
A check of server-side resources used by PermaPlate Furniture Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 45.25 ▲1.46 |
Dashboard /wp-admin | 3.53 ▲0.23 | 27.43 ▼25.60 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 25.90 ▼16.54 |
Add New Post /wp-admin/post-new.php | 3.53 ▼2.35 | 26.41 ▼75.34 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 29.85 ▼4.31 |
Settings /wp-admin/admin.php?page=Permaplate | 3.53 | 25.38 |
Server storage [IO: ▲0.70MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 7 new tables, 7 new options
New tables |
---|
quickcover_cron_status |
batchsync_status |
quickcover_contract |
product_warranty |
app_configurations |
product_backup |
warranty_calc |
New WordPress options |
---|
jal_db_version |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PermaPlate Furniture Protection
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 13.90 ▼0.34 | 6.88 ▲4.90 | 44.32 ▲0.62 |
Dashboard /wp-admin | 2,247 ▲59 | 5.33 ▲0.22 | 102.42 ▼14.42 | 32.82 ▼9.90 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.44 ▲0.44 | 36.31 ▼3.37 | 27.62 ▼9.82 |
Add New Post /wp-admin/post-new.php | 1,703 ▲169 | 23.05 ▼0.12 | 598.63 ▼3.17 | 27.00 ▼21.88 |
Media Library /wp-admin/upload.php | 1,498 ▲107 | 4.59 ▲0.42 | 97.58 ▲0.97 | 38.65 ▼3.99 |
Settings /wp-admin/admin.php?page=Permaplate | 1,219 | 2.10 | 29.23 | 31.17 |
Bulk Product Update /wp-admin/admin.php?page=Bulk Product Update | 956 | 2.00 | 27.37 | 26.08 |
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.)
- The uninstall procedure failed, leaving 7 tables in the database
- app_configurations
- product_backup
- quickcover_cron_status
- batchsync_status
- warranty_calc
- product_warranty
- quickcover_contract
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- jal_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Permaplate
- > 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=Permaplate
- > Notice in wp-content/plugins/permaplate-furniture-protection/form.php+237
Undefined variable: getTotal_batch
- > GET request to /wp-admin/admin.php?page=Permaplate
- > Notice in wp-content/plugins/permaplate-furniture-protection/form.php+173
Undefined variable: getSuccess_batch
- > GET request to /wp-admin/admin.php?page=Permaplate
- > Notice in wp-content/plugins/permaplate-furniture-protection/form.php+174
Undefined variable: getFailed_batch
- > GET request to /wp-admin/admin.php?page=Permaplate
- > Notice in wp-content/plugins/permaplate-furniture-protection/form.php+175
Undefined variable: get_Latestdate
- > GET request to /wp-admin/admin.php?page=Permaplate
- > Notice in wp-content/plugins/permaplate-furniture-protection/form.php+182
Undefined variable: counProduct
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 items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/permaplate-furniture-protection/Custom_app.php:31
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/permaplate-furniture-protection/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/permaplate-furniture-protection/bulkUpdate.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/permaplate-furniture-protection/uninstall.php:4
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #7 in permaplate-furniture-protection/assets to your readme.txt
permaplate-furniture-protection/Custom_app.php 92% from 13 tests
"PermaPlate Furniture Protection" version 3.7.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("permaplate-furniture-protection.php" instead of "Custom_app.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 plugin3,932 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 724 | 165 | 3,046 |
JavaScript | 5 | 90 | 56 | 561 |
CSS | 4 | 44 | 14 | 325 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 364.00 |
▷ Minimum class complexity | 364.00 |
▷ Maximum class complexity | 364.00 |
Average method complexity | 6.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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 | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB 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/src2.PNG | 40.81KB | 18.39KB | ▼ 54.93% |
assets/images/logo.png | 8.32KB | 3.95KB | ▼ 52.50% |