Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.45ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce LHV hire-purchase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.53 ▲1.79 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.96 ▼9.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.13 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.32 ▼27.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.76 ▲1.93 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce LHV hire-purchase
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.30 ▲0.05 | 1.74 ▲0.14 | 43.76 ▲6.65 |
Dashboard /wp-admin | 2,198 ▲24 | 5.52 ▼0.07 | 87.74 ▲2.17 | 37.79 ▼4.28 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.98 ▼0.04 | 34.69 ▼1.81 | 32.17 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 18.36 ▼5.42 | 613.11 ▼73.31 | 75.49 ▲22.32 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.18 ▼0.04 | 94.74 ▼7.30 | 41.88 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 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
The following issues need your attention
- 101× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woo-lhv-hire-purchase/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > 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 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce, lhv, gateway
woo-lhv-hire-purchase/woocommerce-lhv-hire-purchase.php 69% from 13 tests
The main file in "WooCommerce LHV hire-purchase" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-lhv-hire-purchase.php" instead of "woocommerce-lhv-hire-purchase.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,854 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 746 | 1,212 | 4,148 |
Markdown | 4 | 59 | 0 | 276 |
PO File | 1 | 48 | 97 | 145 |
JSON | 3 | 0 | 0 | 133 |
JavaScript | 1 | 24 | 17 | 103 |
YAML | 2 | 7 | 0 | 26 |
XML | 1 | 2 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 110 | |
▷ Abstract classes | 2 | 1.82% |
▷ Concrete classes | 108 | 98.18% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 5 | 2.24% |
▷ Public methods | 167 | 74.89% |
▷ Protected methods | 51 | 22.87% |
▷ Private methods | 5 | 2.24% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/lhv-hire-purchase-badge.png | 15.72KB | 6.81KB | ▼ 56.70% |
assets/img/order-status-pending-icon.png | 3.64KB | 0.50KB | ▼ 86.14% |