Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.47MB] [CPU: ▼158.98ms] Passed 4 tests
Analyzing server-side resources used by Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.18 | 25.59 ▲4.06 |
Dashboard /wp-admin | 3.26 ▲0.20 | 32.86 ▼4.42 |
Posts /wp-admin/edit.php | 3.31 ▲0.21 | 30.24 ▼1.51 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.39 | 19.47 ▼632.58 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 25.44 ▲2.58 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, no new options
New tables |
---|
wp_abprotector_abandoned_carts |
Browser metrics Passed 4 tests
A check of browser resources used by Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲111 | 16.24 ▲0.55 | 4.83 ▼0.50 | 89.92 ▲18.53 |
Dashboard /wp-admin | 2,999 ▲106 | 6.13 ▼0.04 | 116.13 ▼14.67 | 48.84 ▼127.98 |
Posts /wp-admin/edit.php | 2,808 ▲65 | 3.26 ▲0.01 | 66.30 ▲0.50 | 45.26 ▼96.20 |
Add New Post /wp-admin/post-new.php | 2,332 ▼1,483 | 15.29 ▼3.57 | 413.57 ▼1.24 | 106.82 ▼49.02 |
Media Library /wp-admin/upload.php | 1,813 ▲64 | 5.57 ▲0.03 | 143.47 ▲1.57 | 140.09 ▼40.16 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/abandonment-protector/uninstall.php+6
Constant ABPROTECTOR_POPUPS_SCRIPTS_KEY already defined
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_abprotector_abandoned_carts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/abandonment-protector/partials/no_woocommerce.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
abandonment-protector/abprotector.php 92% from 13 tests
Analyzing the main PHP file in "Email marketing automation by Abandonment ProtectorAbandoned cart recovery, Newsletters, Popups, Exit intent" version 1.0.9
You should first fix the following items:
- Main file name: The principal 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,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
This is a short overview 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
All PNG images should be compressed to minimize bandwidth usage for end users
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/wordpress1.png | 7.14KB | 3.83KB | ▼ 46.37% |
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% |