Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.94ms] Passed 4 tests
Analyzing server-side resources used by Buy Now Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.01 ▲3.60 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.98 ▼0.88 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.93 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.20 ▼10.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.49 ▼0.30 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
dirctcheckoutvmi_buttontext |
widget_recent-posts |
dirctcheckoutvmi_bgcolor |
theysaidso_admin_options |
widget_theysaidso_widget |
dirctcheckoutvmi_cartHide |
db_upgraded |
widget_recent-comments |
dirctcheckoutvmi_textcolor |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Buy Now Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.24 ▼0.03 | 1.88 ▲0.05 | 43.11 ▼2.29 |
Dashboard /wp-admin | 2,209 ▲32 | 5.65 ▲0.06 | 95.61 ▼6.80 | 37.80 ▼10.24 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.96 ▼0.03 | 40.45 ▼5.23 | 37.05 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.32 ▼4.68 | 647.52 ▲8.51 | 68.43 ▲14.63 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▲0.05 | 99.91 ▲2.70 | 43.66 ▼0.97 |
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 does not fully uninstall, leaving 11 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- dirctcheckoutvmi_buybtn
- widget_theysaidso_widget
- dirctcheckoutvmi_cartHide
- dirctcheckoutvmi_buttontext
- dirctcheckoutvmi_textcolor
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vmi-direct-checkout/wc-direct-checkout-vmi.php:18
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
vmi-direct-checkout/wc-direct-checkout-vmi.php 85% from 13 tests
"Buy Now Woocommerce" version 3.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vmi-direct-checkout.php" instead of "wc-direct-checkout-vmi.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected347 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 18 | 186 |
CSS | 1 | 4 | 5 | 161 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 44.82KB | 22.79KB | ▼ 49.15% |