Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.08ms] Passed 4 tests
An overview of server-side resources used by LetsRecover WooCommerce Abandoned Cart Recovery Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 58.71 ▲5.15 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.70 ▼0.08 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.39 ▼12.97 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.48 ▼1,187.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 27.39 ▲0.14 |
Server storage [IO: ▲4.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 462 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for LetsRecover WooCommerce Abandoned Cart Recovery Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲36 | 16.18 ▲0.39 | 6.90 ▲1.18 | 3.03 ▲0.32 |
Dashboard /wp-admin | 2,892 ▲32 | 6.14 ▲0.01 | 166.22 ▲35.37 | 162.90 ▲1.10 |
Posts /wp-admin/edit.php | 2,685 ▼0 | 3.22 ▼0.01 | 64.87 ▲3.29 | 146.30 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,781 ▲120 | 17.78 ▲2.13 | 453.91 ▲36.65 | 193.75 ▼18.51 |
Media Library /wp-admin/upload.php | 1,692 ▼0 | 5.51 ▼0.01 | 161.53 ▲0.52 | 229.09 ▲10.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/page-menu.php
- 241× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: stats in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/pages/dashboard.php on line 37
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/web-token/jwt-signature-algorithm-ecdsa/Tests/ECDSAFromRFC7520Test.php:32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/pages/dashboard.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\OctetString' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/fgrosse/phpasn1/lib/ASN1/Universal/BitString.php:18
- > PHP Fatal error
Uncaught Error: Class 'Jose\\Component\\Signature\\Algorithm\\ECDSA' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/web-token/jwt-signature-algorithm-ecdsa/ES384.php:16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/pages/dashboard.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/fgrosse/phpasn1/lib/ASN1/Universal/IA5String.php:21
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/fgrosse/phpasn1/lib/ASN1/AbstractTime.php:18
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
letsrecover-woocommerce-abandoned-cart/letsrecover.php 77% from 13 tests
This is the main PHP file of "LetsRecover WooCommerce Abandoned Cart Recovery Notifications" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("letsrecover-woocommerce-abandoned-cart.php" instead of "letsrecover.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/letsrecover-woocommerce-abandoned-cart/include/libraries/push/vendor/web-token/jwt-key-mgmt/Tests/Chain/google.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 310 | 5,744 | 12,160 | 24,160 |
Markdown | 24 | 1,170 | 0 | 3,573 |
JavaScript | 9 | 359 | 221 | 1,901 |
JSON | 18 | 1 | 0 | 1,727 |
CSS | 4 | 55 | 8 | 1,176 |
XML | 3 | 12 | 1 | 112 |
make | 1 | 4 | 0 | 9 |
YAML | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 33 | |
Traits | 3 | |
Classes | 241 | |
▷ Abstract classes | 11 | 4.56% |
▷ Concrete classes | 230 | 95.44% |
▷ Final classes | 39 | 16.96% |
Methods | 1,900 | |
▷ Static methods | 305 | 16.05% |
▷ Public methods | 1,557 | 81.95% |
▷ Protected methods | 94 | 4.95% |
▷ Private methods | 249 | 13.11% |
Functions | 182 | |
▷ Named functions | 67 | 36.81% |
▷ Anonymous functions | 115 | 63.19% |
Constants | 171 | |
▷ Global constants | 5 | 2.92% |
▷ Class constants | 166 | 97.08% |
▷ Public constants | 156 | 93.98% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bell.png | 1.71KB | 1.60KB | ▼ 6.62% |
assets/images/native-prompt.png | 38.94KB | 13.05KB | ▼ 66.47% |