Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.20ms] Passed 4 tests
An overview of server-side resources used by Buy Now for WooCommerce - WooCommerce Buy Now Button free addon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 36.24 ▼10.25 |
Dashboard /wp-admin | 3.45 ▲0.06 | 48.73 ▼18.70 |
Posts /wp-admin/edit.php | 3.56 ▲0.16 | 48.03 ▼3.16 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.10 | 88.13 ▼8.69 |
Media Library /wp-admin/upload.php | 3.37 ▲0.10 | 37.88 ▲1.97 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Buy Now for WooCommerce - WooCommerce Buy Now Button free addon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.73 ▲0.38 | 1.70 ▼0.08 | 39.56 ▼7.80 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.03 | 86.41 ▼14.83 | 42.19 ▼2.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.03 | 36.09 ▼2.86 | 35.11 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.44 ▲0.32 | 653.37 ▲4.23 | 45.99 ▼15.76 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.20 ▼0.01 | 100.93 ▲6.33 | 43.73 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/buy-now-woo/loader.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/buy-now-woo/includes/Admin/Settings.php:8
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI ("paypal.me/wpismylife")
buy-now-woo/buy-now-woo.php 92% from 13 tests
The main PHP file in "Buy Now for WooCommerce - WooCommerce Buy Now Button free addon" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,149 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 282 | 592 | 1,165 |
JavaScript | 1 | 168 | 59 | 801 |
CSS | 1 | 29 | 7 | 182 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 4 | 4.35% |
▷ Public methods | 88 | 95.65% |
▷ Protected methods | 3 | 3.26% |
▷ Private methods | 1 | 1.09% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG files were detected