Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.99ms] Passed 4 tests
An overview of server-side resources used by Buy Now Button - Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.68 ▼3.17 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.38 ▼1.98 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.31 ▲3.37 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 88.47 ▼10.12 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.19 ▲3.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Buy Now Button - Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,476 ▼285 | 14.15 ▼0.20 | 0.77 ▼1.01 | 13.23 ▼40.89 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.03 | 95.57 ▼0.73 | 42.02 ▼2.52 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.01 | 40.37 ▲3.11 | 36.64 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 21.49 ▼1.52 | 710.20 ▲76.00 | 63.48 ▲11.94 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.01 | 98.61 ▼2.37 | 44.71 ▼0.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/buy-now-for-woocommerce/includes/customize-settings.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: skip to checkout, buy now button, buy now
buy-now-for-woocommerce/buy-now-button.php 69% from 13 tests
The main PHP script in "Buy Now Button - Woocommerce" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buy-now-for-woocommerce.php" instead of "buy-now-button.php")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.3" instead of "7.2")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "5.2")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin522 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 257 | 87 | 514 |
CSS | 1 | 1 | 5 | 6 |
JavaScript | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin