Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.59ms] Passed 4 tests
A check of server-side resources used by One Click Buy Button For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.40 ▼3.12 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.48 ▲0.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.88 ▲5.82 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.74 ▲0.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.97 ▲0.27 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
one_click_buy_btn_options |
widget_recent-comments |
Browser metrics Passed 4 tests
One Click Buy Button For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.63 ▼1.00 | 1.67 ▼0.04 | 38.50 ▼8.27 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼1.06 | 103.08 ▲3.13 | 42.56 ▲0.61 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.00 | 39.39 ▲2.66 | 35.88 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,518 ▼3 | 23.12 ▲0.32 | 663.16 ▼14.82 | 51.33 ▼7.83 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.33 ▲0.12 | 96.80 ▼9.23 | 45.76 ▼0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/one-click-buy-button-for-woocommerce/includes/one_click_buy_btn-enqueue.php
- > /wp-content/plugins/one-click-buy-button-for-woocommerce/includes/one_click_buy_btn-replace-addCart.php
- > /wp-content/plugins/one-click-buy-button-for-woocommerce/one-click-buy-button-for-woocommerce.php
- > /wp-content/plugins/one-click-buy-button-for-woocommerce/includes/one_click_buy_btn-buy-now.php
- > /wp-content/plugins/one-click-buy-button-for-woocommerce/includes/one_click_buy_btn-setting.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/one-click-buy-button-for-woocommerce/includes/settings/one_click_buy_btn-html.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #3 is missing in one-click-buy-button-for-woocommerce/assets to your readme.txt
one-click-buy-button-for-woocommerce/one-click-buy-button-for-woocommerce.php 92% from 13 tests
The main PHP script in "One Click Buy Button For WooCommerce" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin572 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 62 | 0 | 291 |
PHP | 8 | 50 | 59 | 281 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin