Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼35.39ms] Passed 4 tests
An overview of server-side resources used by After Product Protection Plan
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.97 ▼7.12 |
Dashboard /wp-admin | 3.09 ▼0.22 | 24.53 ▼27.12 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 23.39 ▼27.17 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 24.67 ▼75.46 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 24.39 ▼11.82 |
Bulk Product Update /wp-admin/admin.php?page=Bulk-Product-Update | 3.09 | 27.50 |
Server storage [IO: ▲0.69MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: 7 new tables, 7 new options
New tables |
---|
product_warranty |
quickcover_contract |
warranty_calc |
product_backup |
app_configurations |
quickcover_cron_status |
batchsync_status |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
jal_db_version |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for After Product Protection Plan
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲176 | 14.38 ▼0.01 | 6.38 ▲3.89 | 41.07 ▼11.92 |
Dashboard /wp-admin | 2,247 ▲59 | 5.37 ▼0.51 | 116.02 ▼0.36 | 37.35 ▼8.25 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.44 ▲0.41 | 37.96 ▼7.10 | 28.92 ▼7.23 |
Add New Post /wp-admin/post-new.php | 1,704 ▲190 | 23.01 ▲5.52 | 643.22 ▼39.30 | 33.34 ▼13.85 |
Media Library /wp-admin/upload.php | 1,498 ▲110 | 4.51 ▲0.31 | 101.37 ▲5.24 | 38.36 ▼3.65 |
Settings /wp-admin/admin.php?page=After Plans | 1,222 | 2.10 | 28.81 | 30.54 |
Bulk Product Update /wp-admin/admin.php?page=Bulk-Product-Update | 953 | 1.99 | 31.09 | 27.17 |
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 validation failed for this plugin
- > 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 plugin did not uninstall successfully, leaving 7 tables in the database
- warranty_calc
- quickcover_contract
- quickcover_cron_status
- batchsync_status
- product_warranty
- product_backup
- app_configurations
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- jal_db_version
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 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=Bulk-Product-Update
- > Notice in wp-content/plugins/afterinc-app/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/afterinc-app/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/afterinc-app/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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/afterinc-app/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/afterinc-app/bulkUpdate.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/afterinc-app/form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #5 (Cart edit.)
afterinc-app/Custom_app.php 92% from 13 tests
The main PHP script in "After Product Protection Plan" version 3.7.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("afterinc-app.php" instead of "Custom_app.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,905 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 764 | 151 | 3,043 |
JavaScript | 5 | 99 | 51 | 558 |
CSS | 4 | 40 | 12 | 304 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 366.00 |
▷ Minimum class complexity | 366.00 |
▷ Maximum class complexity | 366.00 |
Average method complexity | 6.89 |
▷ 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 | 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
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% |