Benchmarks
Plugin footprint 48% 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.01MB] [CPU: ▼5.01ms] Passed 4 tests
An overview of server-side resources used by Beans · Loyalty and Rewards programs for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.29 ▼3.35 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.93 ▼20.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.28 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 124.33 ▲24.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.92 ▲3.81 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Beans · Loyalty and Rewards programs for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▼0.05 | 1.83 ▼0.25 | 38.33 ▼5.50 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.07 | 84.42 ▼5.03 | 39.60 ▼3.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 35.60 ▼2.87 | 32.19 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.19 ▲0.09 | 691.66 ▲37.79 | 60.08 ▲5.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.07 | 100.79 ▲1.07 | 44.09 ▼0.56 |
Uninstaller [IO: ▲0.64MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attentionThe uninstall procedure has failed, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/beans-woocommerce-loyalty-rewards/uninstall.php+14
Uncaught Error: Class 'BeansWoo\Helper' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/uninstall.php:14
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 52 files (0.64MB) in the plugin directory
- (new file) admin/Connect/connector-settings.html.php
- (new file) admin/Inspector/inspector-debug.html.php
- (new file) assets/css/beans-admin.css
- (new file) admin/Connect/connector-connect.html.php
- (new file) assets/css/beans-storefront.css
- (new file) admin/Router.php
- (new file) .gitignore
- (new file) admin/init.php
- (new file) admin/Connect/Connector.php
- (new file) admin/Inspector/Inspector.php
- ...
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'BeansWoo\\StoreFront\\LianaObserver' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/storefront/liana/Observer/LianaSubscriptionObserver.php:15
- > PHP Fatal error
Uncaught Error: Class 'BeansWoo\\StoreFront\\LianaObserver' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/storefront/liana/Observer/LianaCartObserver.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/server/Api.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/server/Api.php:8
- > PHP Fatal error
Uncaught Error: Class 'BeansWoo\\StoreFront\\LianaObserver' not found in wp-content/plugins/beans-woocommerce-loyalty-rewards/storefront/liana/Observer/LianaProductObserver.php:7
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 44 tag instead of maximum 10
beans-woocommerce-loyalty-rewards/beans-woocommerce.php 85% from 13 tests
The main PHP file in "Beans · Loyalty and Rewards programs for Woocommerce" ver. 3.6.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("beans-woocommerce-loyalty-rewards.php" instead of "beans-woocommerce.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,651 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 563 | 555 | 2,962 |
SVG | 10 | 0 | 0 | 1,183 |
CSS | 2 | 93 | 57 | 450 |
PO File | 1 | 23 | 28 | 56 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 117 | 84.78% |
▷ Public methods | 122 | 88.41% |
▷ Protected methods | 4 | 2.90% |
▷ Private methods | 12 | 8.70% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 20 | |
▷ Global constants | 4 | 20.00% |
▷ Class constants | 16 | 80.00% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/admin/onboarding/foxx-hero.png | 65.47KB | 24.57KB | ▼ 62.48% |
assets/img/connector/beans-review-logo.png | 2.23KB | 0.99KB | ▼ 55.52% |
assets/img/admin/onboarding/snow-hero.png | 44.52KB | 21.04KB | ▼ 52.73% |