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.66MB] [CPU: ▼12.84ms] Passed 4 tests
A check of server-side resources used by Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.27 ▲6.89 |
Dashboard /wp-admin | 3.34 ▲0.03 | 54.72 ▲4.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.65 ▲0.29 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 37.82 ▼54.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.55 ▼1.38 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_abprotector_abandoned_carts |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.36 ▲0.01 | 1.69 ▼0.10 | 45.17 ▲4.70 |
Dashboard /wp-admin | 2,257 ▲87 | 5.71 ▲0.10 | 90.00 ▼9.07 | 34.15 ▼3.34 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.01 ▲0.02 | 37.74 ▲0.63 | 30.39 ▼6.28 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.38 ▲5.23 | 667.95 ▲44.44 | 56.36 ▼14.12 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.21 ▼0.01 | 110.30 ▼7.40 | 43.48 ▼7.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/abandonment-protector/uninstall.php+6
Constant ABPROTECTOR_POPUPS_SCRIPTS_KEY already defined
- Zombie tables detected upon uninstall: 1 table
- wp_abprotector_abandoned_carts
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/abandonment-protector/partials/no_woocommerce.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/abandonment-protector/partials/top_header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/abandonment-protector/partials/top_header.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/abandonment-protector/classes/abprotector-woo-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/abandonment-protector/partials/top_header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/abandonment-protector/abprotector.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
abandonment-protector/abprotector.php 92% from 13 tests
The primary PHP file in "Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent" version 1.0.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("abandonment-protector.php" instead of "abprotector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,059 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 470 | 201 | 1,667 |
CSS | 1 | 56 | 6 | 223 |
JavaScript | 3 | 32 | 4 | 169 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 8 | 6.25% |
▷ Public methods | 123 | 96.09% |
▷ Protected methods | 1 | 0.78% |
▷ Private methods | 4 | 3.12% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/abandonment_protector_logo.png | 8.68KB | 4.23KB | ▼ 51.29% |
resources/images/logo-abandonment.png | 4.12KB | 2.88KB | ▼ 30.01% |
resources/images/wordpress2.png | 10.54KB | 6.43KB | ▼ 39.02% |
resources/images/wordpress1.png | 7.14KB | 3.83KB | ▼ 46.37% |