Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.36ms] Passed 4 tests
Server-side resources used by bLoyal: Loyalty & Promotions by bLoyal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.96 ▼6.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.35 ▼2.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.44 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.17 ▲0.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.16 ▼0.42 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for bLoyal: Loyalty & Promotions by bLoyal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.47 | 4.21 ▲2.38 | 44.11 ▼5.55 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.01 | 98.58 ▼9.65 | 37.32 ▼2.30 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.01 | 40.95 ▲6.66 | 35.19 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 18.49 ▼4.40 | 609.24 ▼64.53 | 47.46 ▼7.35 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▲0.01 | 95.73 ▼23.13 | 43.08 ▼3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 10× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bloyal/app/controller/custom_tax_class_controller.php
- > /wp-content/plugins/bloyal/app/controller/loyalty_dollar_tender_controller.php
- > /wp-content/plugins/bloyal/app/controller/gift_card_tender_controller.php
- > /wp-content/plugins/bloyal/app/controller/class-alertpopupcontroller.php
- > /wp-content/plugins/bloyal/app/controller/bloyal_loyalty_dollar_payment_controller.php
- > /wp-content/plugins/bloyal/app/controller/class-bloyalstoredpaymentmethod.php
- > /wp-content/plugins/bloyal/app/controller/shipping_controller.php
- > /wp-content/plugins/bloyal/app/controller/class-paymentalertcontroller.php
- > /wp-content/plugins/bloyal/app/controller/bloyal_snippets_payment.php
- > /wp-content/plugins/bloyal/app/controller/bloyal_payment_controller.php
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant BLOYAL_DIR - assumed 'BLOYAL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bloyal/app/view/bloyal_snippets_view.php on line 4
- > PHP Warning
require_once(BLOYAL_DIR/app/view/bloyal_view.php): failed to open stream: No such file or directory in wp-content/plugins/bloyal/app/view/bloyal_snippets_view.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'BLOYAL_DIR/app/controller/class-alertpopupcontroller.php' (include_path='.:/usr/share/php') in wp-content/plugins/bloyal/app/controller/promotion_class_controller.php on line 3
- > PHP Warning
Use of undefined constant BLOYAL_DIR - assumed 'BLOYAL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bloyal/app/controller/bloyal_resubmit_order_controller.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/bloyal/bloyal.php:12
- > PHP Warning
Use of undefined constant BLOYAL_DIR - assumed 'BLOYAL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bloyal/app/controller/promotion_class_controller.php on line 3
- > PHP Warning
require_once(BLOYAL_DIR/app/controller/class-bloyalcontroller.php): failed to open stream: No such file or directory in wp-content/plugins/bloyal/app/controller/class-add-payment-methods.php on line 2
- > PHP Warning
Use of undefined constant BLOYAL_DIR - assumed 'BLOYAL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bloyal/app/controller/class-add-payment-methods.php on line 2
- > PHP Warning
require_once(BLOYAL_DIR/app/view/bloyal_view.php): failed to open stream: No such file or directory in wp-content/plugins/bloyal/app/controller/class-bloyalcontroller.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'BLOYAL_DIR/app/controller/class-bloyalcontroller.php' (include_path='.:/usr/share/php') in wp-content/plugins/bloyal/app/controller/bloyal_inventory_locations.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
bloyal/bloyal.php Passed 13 tests
This is the main PHP file of "bLoyal: Loyalty & Promotions by bLoyal" version 3.1.611.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
bLoyal provides real-time customer loyalty and omni-channel order processing to your WooCommerce web store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12,617 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 740 | 874 | 10,702 |
JavaScript | 5 | 155 | 23 | 1,751 |
CSS | 3 | 13 | 2 | 123 |
SVG | 2 | 0 | 1 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 44.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 381.00 |
Average method complexity | 6.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 2 | 1.09% |
▷ Public methods | 172 | 93.99% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 6.01% |
Functions | 158 | |
▷ Named functions | 157 | 99.37% |
▷ Anonymous functions | 1 | 0.63% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bloyal_logo_16x16.png | 0.57KB | 0.72KB | 0.00% |
assets/images/bloyal_logo_12x12.png | 0.39KB | 0.50KB | 0.00% |
assets/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/images/bloyal_logo_20x20.png | 0.67KB | 0.75KB | 0.00% |
assets/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |