Benchmarks
Plugin footprint Passed 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.09MB] [CPU: ▼144.59ms] Passed 4 tests
This is a short check of server-side resources used by Badge Designer Lite For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 33.20 ▲8.81 |
Dashboard /wp-admin | 3.22 ▲0.15 | 41.26 ▲5.13 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 37.24 ▲7.91 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 71.71 ▼595.52 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 25.91 ▲4.13 |
Settings /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-badges-settings | 3.17 | 22.08 |
Check Premium Version /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-premium-wp | 2.87 | 17.05 |
Add Badge /wp-admin/post-new.php?post_type=wobd-badge-designer | 3.29 | 40.75 |
Documentation /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-documentation-wp | 2.87 | 16.53 |
All Badge /wp-admin/edit.php?post_type=wobd-badge-designer | 3.21 | 36.91 |
About The Plugin /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-about-us | 3.14 | 25.35 |
Server storage [IO: ▲6.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 102 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Badge Designer Lite For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,129 ▲528 | 18.42 ▲2.31 | 8.27 ▲3.22 | 76.32 ▼2.67 |
Dashboard /wp-admin | 3,227 ▲332 | 8.40 ▲2.22 | 144.90 ▲13.99 | 168.90 ▲0.60 |
Posts /wp-admin/edit.php | 3,067 ▲324 | 5.26 ▲1.89 | 88.11 ▲24.64 | 133.63 ▼7.25 |
Add New Post /wp-admin/post-new.php | 2,399 ▼1,307 | 19.53 ▲0.43 | 356.13 ▼92.30 | 167.06 ▲4.06 |
Media Library /wp-admin/upload.php | 1,851 ▲99 | 5.97 ▲0.46 | 113.06 ▼26.56 | 186.17 ▼0.55 |
Settings /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-badges-settings | 1,908 | 7.47 | 165.48 | 174.17 |
Check Premium Version /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-premium-wp | 2,134 | 10.42 | 299.23 | 250.67 |
Add Badge /wp-admin/post-new.php?post_type=wobd-badge-designer | 3,607 | 7.02 | 130.72 | 184.63 |
Documentation /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-documentation-wp | 1,435 | 10.75 | 300.33 | 162.32 |
All Badge /wp-admin/edit.php?post_type=wobd-badge-designer | 1,754 | 5.59 | 80.56 | 108.70 |
About The Plugin /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-about-us | 1,970 | 12.13 | 238.13 | 206.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-badges-settings
- > Notice in wp-content/plugins/woo-badge-designer-lite/includes/admin/view/settings/wobd-common-settings.php+89
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 30× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/sale-badge.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-text-background.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/image-background.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/image-template.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/both-template.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/admin/view/wobd-add-setting.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/admin/view/page/more.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/text-background.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/admin/view/wobd-post-action.php
- > /wp-content/plugins/woo-badge-designer-lite/includes/admin/view/page/header.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: span_class in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-text-background.php on line 10
- > PHP Warning
include(WOBD_PATHincludes/frontend/template/both-template.php): failed to open stream: No such file or directory in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 18
- > PHP Notice
Undefined variable: badge_type in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 13
- > PHP Notice
Undefined variable: badge_type in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-text-background.php on line 18
- > PHP Warning
include(): Failed opening 'WOBD_PATHincludes/frontend/template/image-template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 6
- > PHP Warning
Use of undefined constant WOBD_PATH - assumed 'WOBD_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-text-background.php on line 21
- > PHP Warning
Use of undefined constant WOBD_PATH - assumed 'WOBD_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 18
- > PHP Warning
include(): Failed opening 'WOBD_PATHincludes/frontend/template/both-template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-text-background.php on line 21
- > PHP Warning
include(): Failed opening 'WOBD_PATHincludes/frontend/template/both-template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 18
- > PHP Notice
Undefined variable: badge_type in wp-content/plugins/woo-badge-designer-lite/includes/frontend/template/sales/sales-image-background.php on line 15
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-premium-wp
- > Javascript (severe) in unknown
https://accesspressthemes.com/wordpress-plugins/woo-badge-designer/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-documentation-wp
- > Network (severe)
https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/edit.php?post_type=wobd-badge-designer&page=wobd-documentation-wp
- > Javascript (severe) in unknown
https://accesspressthemes.com/documentation/woo-badge-designer-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: A description for screenshot #6 is required in woo-badge-designer-lite/assets to your readme.txt
woo-badge-designer-lite/woo-badge-designer-lite.php 92% from 13 tests
"Badge Designer Lite For WooCommerce" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 374 characters long)
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
Success! There were no dangerous files found in this plugin18,569 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 12 | 7,864 |
CSS | 11 | 1,067 | 137 | 5,843 |
JavaScript | 4 | 35 | 71 | 3,159 |
PHP | 32 | 133 | 119 | 1,665 |
PO File | 1 | 5 | 5 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 2.12MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/theme.png | 52.01KB | 17.38KB | ▼ 66.59% |
images/text-design/1.png | 0.95KB | 0.44KB | ▼ 53.89% |
images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/upgrade-to-pro-feature.png | 664.51KB | 29.74KB | ▼ 95.52% |
images/text-design/5.png | 0.82KB | 0.34KB | ▼ 58.73% |