Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.76ms] Passed 4 tests
This is a short check of server-side resources used by Quick Buy Now Button for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.50 ▲0.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.04 ▼2.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.54 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.13 ▼17.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.46 ▼1.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Quick Buy Now Button for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.17 ▼1.26 | 1.72 ▼0.00 | 44.03 ▲2.63 |
Dashboard /wp-admin | 2,218 ▲36 | 4.86 ▼1.00 | 111.78 ▲0.40 | 43.10 ▲2.45 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.06 ▼0.00 | 34.63 ▼4.86 | 32.78 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.11 ▲0.02 | 634.21 ▲11.04 | 51.97 ▼1.88 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.21 ▲0.02 | 100.45 ▼2.05 | 43.79 ▼3.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/quick-buy-now-button-for-woocommerce/includes/themes-support.php
- > /wp-content/plugins/quick-buy-now-button-for-woocommerce/quick-buy-now-button-for-woocommerce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: buy now button, woocommerce direct checkout, quick buy, buy now, woocommerce quick buy
quick-buy-now-button-for-woocommerce/quick-buy-now-button-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Quick Buy Now Button for WooCommerce" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,199 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 230 | 154 | 1,171 |
JavaScript | 1 | 3 | 4 | 23 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.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 | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 41 | 80.39% |
▷ Protected methods | 10 | 19.61% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin