Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.66MB] [CPU: ▼141.19ms] Passed 4 tests
This is a short check of server-side resources used by Buy one click WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.65 | 40.09 ▲15.74 |
Dashboard /wp-admin | 3.73 ▲0.67 | 42.46 ▲1.31 |
Posts /wp-admin/edit.php | 3.79 ▲0.68 | 41.52 ▲2.65 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.66 | 79.97 ▼570.88 |
Media Library /wp-admin/upload.php | 3.68 ▲0.67 | 26.91 ▲2.17 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 310 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_coderun_oneclickwoo_orders |
New WordPress options |
---|
wp_coderun_oneclickwoo_db_version |
buyoptions |
coderun_unique_string_today |
buynotification |
Browser metrics Passed 4 tests
An overview of browser requirements for Buy one click WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲92 | 15.61 ▲0.00 | 5.10 ▲0.18 | 76.67 ▲2.62 |
Dashboard /wp-admin | 2,930 ▲34 | 6.11 ▼0.06 | 115.68 ▼11.30 | 163.46 ▼10.47 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.35 ▲0.11 | 61.01 ▼6.18 | 130.03 ▼9.10 |
Add New Post /wp-admin/post-new.php | 3,698 ▼8 | 18.63 ▼0.46 | 449.70 ▲5.19 | 158.49 ▼12.73 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.53 ▲0.09 | 148.50 ▲18.26 | 178.83 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_coderun_oneclickwoo_orders
- This plugin does not fully uninstall, leaving 4 options in the database
- wp_coderun_oneclickwoo_db_version
- coderun_unique_string_today
- buyoptions
- buynotification
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 198× 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/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:25
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buy-one-click-woocommerce/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please a description for screenshot #7 in buy-one-click-woocommerce/assets to your readme.txt
buy-one-click-woocommerce/buycli-index.php 77% from 13 tests
The main file in "Buy one click WooCommerce" v. 1.18.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buy-one-click-woocommerce.php" instead of "buycli-index.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
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
Everything looks great! No dangerous files found in this plugin23,431 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 3,033 | 6,637 | 13,492 |
CSS | 14 | 52 | 20 | 5,706 |
JavaScript | 6 | 625 | 246 | 1,781 |
PO File | 2 | 440 | 437 | 929 |
Markdown | 5 | 190 | 0 | 604 |
JSON | 5 | 0 | 0 | 567 |
SVG | 1 | 0 | 0 | 229 |
YAML | 3 | 31 | 3 | 123 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 9 | |
Traits | 5 | |
Classes | 228 | |
▷ Abstract classes | 9 | 3.95% |
▷ Concrete classes | 219 | 96.05% |
▷ Final classes | 2 | 0.91% |
Methods | 915 | |
▷ Static methods | 85 | 9.29% |
▷ Public methods | 632 | 69.07% |
▷ Protected methods | 215 | 23.50% |
▷ Private methods | 68 | 7.43% |
Functions | 34 | |
▷ Named functions | 4 | 11.76% |
▷ Anonymous functions | 30 | 88.24% |
Constants | 77 | |
▷ Global constants | 3 | 3.90% |
▷ Class constants | 74 | 96.10% |
▷ Public constants | 53 | 71.62% |
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
PNG images were not found in this plugin